Full HD with gst-omx on Raspberry Pi?

Matthew Waters ystreet00 at gmail.com
Tue Oct 18 10:49:44 UTC 2016


On 18/10/16 19:18, munezbn.dev wrote:
> Stuart Axon wrote
>> Ah, just got into work + had a go on our setup.
>> Tried big buck bunny 30fps andyour right it does seem to be missing some
>> frames / be a little juddery in places.
>>
>> A video of this demo
>> https://www.youtube.com/watch?v=km6TXwo1Z-Q
>>
>> Seemed to far way worse and was barely watchable at 1080p... though I've
>> just noticed that is 60fps.
> So I am not alone.  I had tried with 30fps  and behaviour is same. I have
> two videos which almost have HD resolution (1280 x 5xx) And bot of them play
> fine without any frame drops. But once you play actual HD content (
> 1280x720) it starts dropping frames and FULL HD , like you mentioned, it is
> unwatchable.

I've just tried with 1080p and 720p videos and everything works fine
here, no frame drops at all.

A couple of things to note:
1. Make sure you have an updated rpi userland - there have been bugs here
2. You need gst-plugins-bad 1.9.90 configured for dispmanx, egl and
gles2 and pointing to the videocore opengl libraries.
i.e. I configure gst-plugins-bad with:
CPPFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads
-I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/IL"
LIBS="-L/opt/vc/lib"
./configure --disable-x11 --disable-opengl --disable-glx --enable-gles2
--disable-wayland --with-gles2-module-name=/opt/vc/lib/libGLESv2.so
--with-egl-module-name=/opt/vc/lib/libEGL.so

3. You need gst-omx 1.9.90.

When running applications for zerocopy, the omx decoder must output
memory:GLMemory caps:
$ gst-launch-1.0 playbin uri=file:///home/matt/test3.mp4 -v | grep omx
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstOMXH264Dec-omxh264dec:omxh264dec-omxh264dec0.GstPad:src:
caps = video/x-raw(memory:GLMemory), format=(string)RGBA,
width=(int)1920, height=(int)1080, interlace-mode=(string)progressive,
pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)sRGB,
framerate=(fraction)30/1

and the sink should be glimagesink.

Hope that helps
-Matt

> I am totally new to OpenMax so not sure if i can do something here :( .. So
> we have left with omxplayer  now ..


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 484 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161018/81dabe4f/attachment.sig>


More information about the gstreamer-devel mailing list