matthiasbock / gstreamer

Raspberry Pi gstreamer with UVC H.264 and OpenMAX plugins
26 stars 7 forks source link

Invalid type name 'GstOMXMPEG2VideoDec' for element 'omxmpeg2videodec' #1

Closed matthiasbock closed 11 years ago

matthiasbock commented 11 years ago

An error occurs, when a self-compiled version of gstreamer-0.10 is launched to use a gst-omx:

$ gst-launch-0.10 -v udpsrc port=9078 ! 'application/x-rtp,payload=96,encoding-name=H264' ! rtph264depay ! h264parse ! omxh264dec ! dfbvideosink
0:00:00.265876373  2027  0x192ab20 ERROR                    omx gstomx.c:2072:plugin_init: Invalid type name 'GstOMXMPEG2VideoDec' for element 'omxmpeg2videodec'
0:00:00.268505238  2027  0x192ab20 ERROR                    omx gstomx.c:2072:plugin_init: Invalid type name 'GstOMXTheoraDec' for element 'omxtheoradec'
0:00:00.269944164  2027  0x192ab20 ERROR                    omx gstomx.c:2072:plugin_init: Invalid type name 'GstOMXVP8Dec' for element 'omxvp8dec'
0:00:00.271526083  2027  0x192ab20 ERROR                    omx gstomx.c:2072:plugin_init: Invalid type name 'GstOMXMJPEGDec' for element 'omxmjpegdec'
Setting pipeline to PAUSED ...
0:00:00.640585167  2027  0x192ab20 ERROR                    omx gstomx.c:87:gst_omx_core_acquire: Failed to initialize core '/opt/vc/lib/libopenmaxil.so': 0x80001009
ERROR: Pipeline doesn't want to pause.
matthiasbock commented 11 years ago

Surprisingly a similar error occurs, when I try a self-compiled gstreamer-1.0:

$ gst-launch-1.0 -v udpsrc port=9078 ! 'application/x-rtp,payload=96,encoding-name=H264' ! rtph264depay ! h264parse ! omxh264dec ! autovideosink
0:00:02.457352729 20242  0x12a78c0 ERROR                    omx gstomx.c:2767:plugin_init: Invalid type name 'GstOMXTheoraDec' for element 'omxtheoradec'
0:00:02.459191634 20242  0x12a78c0 ERROR                    omx gstomx.c:2767:plugin_init: Invalid type name 'GstOMXVP8Dec' for element 'omxvp8dec'
0:00:04.462074718 20241   0x8ddc20 ERROR                    omx gstomx.c:2767:plugin_init: Invalid type name 'GstOMXTheoraDec' for element 'omxtheoradec'
0:00:04.463885625 20241   0x8ddc20 ERROR                    omx gstomx.c:2767:plugin_init: Invalid type name 'GstOMXVP8Dec' for element 'omxvp8dec'

Suggests that the error may not be gst-omx related, but to be some kind of misconfiguration maybe ...

matthiasbock commented 11 years ago

Maybe I need to compile gst-plugins-base with theora and gst-plugins-good with VP8 support

apt-get install libmpeg2-4-dev libtheora-dev libvpx-dev
matthiasbock commented 11 years ago

No, that didn't solve it.

matthiasbock commented 11 years ago

Turns out, the error messages are outputted from gstomx itself, while reading the config. The problem disappears, when removing all sections except H264 encode/decode from /etc/xdg/gstomx.conf.