omxmjpegdec not working on Raspi 4?

rookie1 sascha.prueter at gmail.com
Mon Aug 26 16:45:12 UTC 2019


I'm trying to use GStreamer on a Raspberry Pi 4 to capture a MJPEG stream
from a USB webcam.
When I use jpegdec everything works fine but I'd like to use the hardware
accelerated OMX omxmjpegdec and I run into an error there.

My GStreamer pipeline:
gst-launch-1.0 --gst-debug=4 v4l2src device=/dev/video0 !
"image/jpeg,width=1280,height=720,framerate=60/1" ! omxmjpegdec ! omxh264enc
target-bitrate=1000000 control-rate=variable ! fakesink

Results in an error, looking into the debug output I find this:
<-snip->

0:00:01.150753342 1884 0x4792c0 INFO v4l2src
gstv4l2src.c:957:gst_v4l2src_create:<v4l2src0> sync to 0:00:00.016666666 out
ts 0:00:00.870066565
0:00:01.150931526 1884 0x4792c0 INFO GST_EVENT
gstevent.c:895:gst_event_new_segment: creating segment event time segment
start=0:00:00.000000000, offset=0:00:00.000000000, stop=99:99:99.999999999,
rate=1.000000, applied_rate=1.000000, flags=0x00, time=0:00:00.000000000,
base=0:00:00.000000000, position 0:00:00.000000000, duration
99:99:99.999999999
0:00:01.151945091 1884 0x4792c0 ERROR omx
gstomx.c:1154:gst_omx_component_set_parameter:<omxmjpegdec-omxmjpegdec0> Set
video_decode parameter at index 0x02000001: Bad parameter (0x80001005)
0:00:01.152286051 1884 0x4792c0 ERROR omx
gstomx.c:1333:gst_omx_port_update_port_definition:<omxmjpegdec-omxmjpegdec0>
Updated video_decode port 130 definition: Bad parameter (0x80001005)
0:00:01.152419550 1884 0x4792c0 WARN videodecoder
gstvideodecoder.c:732:gst_video_decoder_setcaps:<omxmjpegdec-omxmjpegdec0>
Subclass refused caps
0:00:01.152534234 1884 0x4792c0 INFO basesrc
gstbasesrc.c:2945:gst_base_src_loop:<v4l2src0> marking pending DISCONT
0:00:01.153421541 1884 0x4792c0 ERROR omx
gstomx.c:1154:gst_omx_component_set_parameter:<omxmjpegdec-omxmjpegdec0> Set
video_decode parameter at index 0x02000001: Bad parameter (0x80001005)
0:00:01.153780686 1884 0x4792c0 ERROR omx
gstomx.c:1333:gst_omx_port_update_port_definition:<omxmjpegdec-omxmjpegdec0>
Updated video_decode port 130 definition: Bad parameter (0x80001005)
0:00:01.153882407 1884 0x4792c0 WARN videodecoder
gstvideodecoder.c:732:gst_video_decoder_setcaps:<omxmjpegdec-omxmjpegdec0>
Subclass refused caps

<-snip->
Does anyone know why OMX fails to set the video decode parameters with "Bad
parameter"?

If I use the very same pipeline but use jpegdec it works just fine (with
high CPU load though).



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list