Hi,
I'm trying to render a mjpeg stream using gstreamer on DM8148 EVM.
First, I enter following command ,and it can work success.
root@dm814x-evm:~#gst-launch -v v4l2src ! image/jpeg,width=640,height=480 ! jpegdec
! ffmpegcolorspace ! omx_scaler ! omx_ctrl display-mode=OMX_DC_MODE_1080P_60 ! omx_videosink
sync=false
Then ,I exec the command "gst-inspect omx_mjpegdec",and show the following:
Factory Details:
Long name: OpenMAX IL JPEG/MJPEG decoder
Class: Codec/Decoder/Video
Description: Decodes video/images in MJPEG/JPEG format with OpenMAX IL
Author(s): Felipe Contreras
Rank: primary (256)
It means that omx_mjpegdec can decode the jpeg format picture.
So I want to use omx_mjpegdec substitute jpegdec,
root@dm814x-evm:~# gst-launch -v v4l2src ! image/jpeg,width=640,height=480 ! omx_mjpegdec !
omx_scaler ! omx_ctrl display-mode=OMX_DC_MODE_1080P_60 ! omx_videosink sync=false
But it error:
Setting pipeline to PAUSED ...
Mode set is 0
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = image/jpeg, width=(int)640,
height=(int)480, framerate=(fraction)24/1
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
N
..........
/GstPipeline:pipeline0/GstOmxMJPEGDec:omxmjpegdec0.GstPad:sink: caps = image/jpeg, width=
(int)640, height=(int)480, framerate=(fraction)24/1
/GstPipeline:pipeline0/GstOmxMJPEGDec:omxmjpegdec0.GstPad:src: caps = video/x-raw-yuv-strided,
width=(int)640, height=(int)480, format=(fourcc)NV12, rowstride=(int)640, framerate=
(fraction)24/1, interlaced=(boolean)false
unrecoverable error: There were insufficient resources to perform the requested operation
(0x80001000)
ERROR: from element /GstPipeline:pipeline0/GstOmxMJPEGDec:omxmjpegdec0: GStreamer encountered
a general stream error.
Additional debug info:
gstomx_base_filter.c(659): pad_chain (): /GstPipeline:pipeline0/GstOmxMJPEGDec:omxmjpegdec0:
Error from OpenMAX component
Execution ended after 217246400 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Recieved EOS event, press <CTRL+C> to terminate pipeline.
Recieved EOS event, press <CTRL+C> to terminate pipeline.
/GstPipeline:pipeline0/GstOmxMJPEGDec:omxmjpegdec0.GstPad:src: caps = NULL
/GstPipeline:pipeline0/GstOmxMJPEGDec:omxmjpegdec0.GstPad:sink: caps = NULL
....
Setting pipeline to NULL ...
Freeing pipeline ...
Could anyone tell me the error reason and how I can use omx_mjpegdec success.
Thanks !