Raspbian. gstreamer-1.0 flips the video when I play it using the GPU. Videoflip gives error

I've read this StackOverflow question and it was very helpful to me. At least I can play HD from my filesystem. But. When I use software decoder

$ gst-launch-1.0 filesrc location=./test720p3kbps.mp4 ! qtdemux ! h264parse ! avdec_h264 ! eglglessink

I have a normal picture on the screen while it is very slow.

Using omxplayer gives me a brilliant picture. It's fast and correct.

And my own purpose

$ gst-launch-1.0 filesrc location=./test720p3kbps.mp4 ! qtdemux ! h264parse ! omxh264dec ! eglglessink

      

also plays smoothly. But it turns the image upside down!: '(

I have tried omxh263dec

and omxmjpegdec

with the same result. decodebin

and playbin

also failed.

I could use videoflip

, but it dumps my pipe as stable as the AK-74:

*** glibc detected *** gst-launch-1.0: free(): invalid pointer: 0x004aaf50 ***
Aborted

      

My gpu_mem in config.txt is set to 256

$ gst-launch-1.0 --version
gst-launch-1.0 version 1.2.0
GStreamer 1.2.0
http://packages.qa.debian.org/gstreamer1.0

      

I installed it using apt-get install.

Thanks in advance!

+3


source to share


1 answer


The video is actually playing "correctly", it is an inverted OpenGL coordinate system.
I had success with this question adding format string

as a workaround.



gst-launch-1.0 filesrc location=./test720p3kbps.mp4 ! qtdemux ! h264parse ! avdec_h264 ! "video/x-raw, format=(string)I420"  ! eglglessink

      

0


source







All Articles