omxmjpegdec not working on Raspi 4?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

omxmjpegdec not working on Raspi 4?

rookie1
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/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: omxmjpegdec not working on Raspi 4?

rookie1
Just in case this is important, here are my gstreamer package versions on the
Raspi 4:

pi@raspberrypi:~ $ dpkg -l | grep gstreamer
ii  gir1.2-gstreamer-1.0:armhf           1.14.4-1                            
armhf        GObject introspection data for the GStreamer library
ii  gstreamer1.0-gl:armhf                1.14.4-2                            
armhf        GStreamer plugins for GL
ii  gstreamer1.0-omx                     1.14.4-1+rpt1                        
armhf        GStreamer OpenMAX plugins
ii  gstreamer1.0-omx-rpi                 1.14.4-1+rpt1                        
armhf        OpenMax plugins for GStreamer
ii  gstreamer1.0-omx-rpi-config          1.14.4-1+rpt1                        
armhf        OpenMax plugins for GStreamer
ii  gstreamer1.0-plugins-bad:armhf       1.14.4-1+b1                          
armhf        GStreamer plugins from the "bad" set
ii  gstreamer1.0-plugins-base:armhf      1.14.4-2                            
armhf        GStreamer plugins from the "base" set
ii  gstreamer1.0-plugins-good:armhf      1.14.4-1+rpt1                        
armhf        GStreamer plugins from the "good" set
ii  gstreamer1.0-plugins-ugly:armhf      1.14.4-1                            
armhf        GStreamer plugins from the "ugly" set
ii  gstreamer1.0-tools                   1.14.4-1                            
armhf        Tools for use with GStreamer
ii  gstreamer1.0-x:armhf                 1.14.4-2                            
armhf        GStreamer plugins for X11 and Pango
ii  libgstreamer-gl1.0-0:armhf           1.14.4-2                            
armhf        GStreamer GL libraries
ii  libgstreamer-plugins-bad1.0-0:armhf  1.14.4-1+b1                          
armhf        GStreamer libraries from the "bad" set
ii  libgstreamer-plugins-base1.0-0:armhf 1.14.4-2                            
armhf        GStreamer libraries from the "base" set
ii  libgstreamer1.0-0:armhf              1.14.4-1                            
armhf        Core GStreamer libraries and elements
ii  libgstreamer1.0-dev:armhf            1.14.4-1                            
armhf        GStreamer core development files



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel