Raspi 4: omxdec to EGLImage decoding

Peel70 enrico.pelo at fastwebnet.it
Fri Aug 30 20:08:43 UTC 2019


Hi,
I think that with the new VC and enabled it in the config.txt (is default
activated), you have to use kmssink instead of glimagesink

You have to install gstreamer plugins bad's kms and you don't need to export
DISPLAY=:0.0

this also should work
gst-launch-1.0 videotestsrc ! kmssink
gst-launch-1.0 videotestsrc ! kmssink plane-properties=s,rotation=4

I was able to use the below pipelines in Burster light, but I'm using
Bitbake Poky to build an image without X11, for the moment the only pipeline
that I was able to work with are these:

I was able to play accelerated in GPU with this pipeline:

gst-launch-1.0 -e -vvv filesrc location=big_buck_bunny_720p_h264.mov !
qtdemux ! queue ! h264parse ! v4l2h264dec capture-io-mode=4 ! kmssink

I was able to convert mp4 to mkv with this command
gst-launch-1.0 -v filesrc location="/home/root/test.mp4" ! parsebin
name="demux" ! h264parse ! queue ! matroskamux name="mux" ! filesink
location="1.mkv" demux. ! aacparse ! queue ! mux.

I was able ti play mp4 with this command but is a sw render (I've installed
gstreamer-1.0-libav):
gst-launch-1.0 -e -vvv filesrc location="/home/root/test.mp4" ! qtdemux !
h264parse ! avdec_h264 ! kmssink

but
GST_DEBUG="omx:2" gst-launch-1.0 -e -vvv filesrc
location=bbb_sunflower_1080p_30fps_normal.mp4 ! qtdemux ! h264parse !
omxh264dec ! videoconvert ! kmssink

I give this error:
ยก0:00:00.332141903 634 0x1430d20 ERROR omx
gstomx.c:1892:gst_omx_component_set_parameter: Set video_decode parameter at
index 0x02000001: Bad parameter (0x80001005)
0:00:00.332392237 634 0x1430d20 ERROR omx
gstomx.c:2072:gst_omx_port_update_port_definition: Updated video_decode port
130 definition: Bad parameter (0x80001005)`

Please try and give me a feedback because I'm interested in a potential fix

PI4 have h265 encoder/decoder HW to it will be possible to play mkv HEVC inm
GPU but at the moment I was not able to give it working.

have a good test 



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


More information about the gstreamer-devel mailing list