Full HD with gst-omx on Raspberry Pi?

Matthew Waters ystreet00 at gmail.com
Wed Oct 19 10:39:06 UTC 2016


On 19/10/16 20:04, munez bn wrote:
> Hi Matt,
>
> After searching both for omx and GLMem and the output was like below.
> So little confused now because glupload element uses GLMemory.
> regarding other requirements, I have cross checked everything excepet
> latest rpi-userland and there are no issues. Only thing which I have
> try now is using latest rpi-userland, I didn't try it because with
> same firmware omxplayer works fine. Second point which I need to
> verify is config.txt  .. Since I am buildroot

Yes, glupload is uploading the system memory from the decoder when the
decoder should be producing memory:GLMemory buffers for zerocopy.  This
download/reupload across the memory bus is what is killing your performance.

Cheers
-Matt

>  gst-launch-1.0 playbin uri=file:/mnt/tears_of_steel_1080p.mov -v
> video-sink=glimagesink | grep "omx\|GLMem" 
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstOMXH264Dec-omxh264dec:omxh264dec-omxh264dec0.GstPad:sink:
> caps = video/x-h264, stream-format=(string)byte-stream,
> alignment=(string)au, level=(string)4, profile=(string)main,
> width=(int)1920, height=(int)800, framerate=(fraction)24/1,
> pixel-aspect-ratio=(fraction)1/1, parsed=(boolean)true 
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstOMXH264Dec-omxh264dec:omxh264dec-omxh264dec0.GstPad:src:
> caps = video/x-raw, format=(string)I420, width=(int)1920,
> height=(int)800, interlace-mode=(string)progressive,
> pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2,
> colorimetry=(string)bt709, framerate=(fraction)24/1 
> /GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:vbin/GstGLImageSinkBin:glimagesinkbin0/GstGLUploadElement:gluploadelement0.GstPad:src:
> caps = video/x-raw(memory:GLMemory), format=(string)I420,
> width=(int)1920, height=(int)800, interlace-mode=(string)progressive,
> pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2,
> colorimetry=(string)bt709, framerate=(fraction)24/1,
> texture-target=(string)2D 
> /GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:vbin/GstGLImageSinkBin:glimagesinkbin0/GstGLColorConvertElement:glcolorconvertelement0.GstPad:src:
> caps = video/x-raw(memory:GLMemory), format=(string)RGBA,
> width=(int)1920, height=(int)800, interlace-mode=(string)progressive,
> pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)24/1,
> texture-target=(string)2D 
> /GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:vbin/GstGLImageSinkBin:glimagesinkbin0/GstGLColorBalance:glcolorbalance0.GstPad:src:
> caps = video/x-raw(memory:GLMemory), format=(string)RGBA,
> width=(int)1920, height=(int)800, interlace-mode=(string)progressive,
> pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)24/1,
> texture-target=(string)2D 
> /GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:vbin/GstGLImageSinkBin:glimagesinkbin0/GstGLImageSink:sink.GstPad:sink:
> caps = video/x-raw(memory:GLMemory), format=(string)RGBA,
> width=(int)1920, height=(int)800, interlace-mode=(string)progressive,
> pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)24/1,
> texture-target=(string)2D 
> /GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:vbin/GstGLImageSinkBin:glimagesinkbin0/GstGLColorBalance:glcolorbalance0.GstPad:sink:
> caps = video/x-raw(memory:GLMemory), format=(string)RGBA,
> width=(int)1920, height=(int)800, interlace-mode=(string)progressive,
> pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)24/1,
> texture-target=(string)2D 
> /GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:vbin/GstGLImageSinkBin:glimagesinkbin0/GstGLColorConvertElement:glcolorconvertelement0.GstPad:sink:
> caps = video/x-raw(memory:GLMemory), format=(string)I420,
> width=(int)1920, height=(int)800, interlace-mode=(string)progressive,
> pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2,
> colorimetry=(string)bt709, framerate=(fraction)24/1,
> texture-target=(string)2D 
>
>
> Thanks & Regards
> munez
>
> On Wed, Oct 19, 2016 at 12:41 PM, Matthew Waters <ystreet00 at gmail.com
> <mailto:ystreet00 at gmail.com>> wrote:
>
>     On 19/10/16 12:10, munezbn.dev wrote:
>     > Ahh i think i is not using GLmemory copy .. What could be the
>     issue ?
>
>     Double check that you meet the requirements set out earlier, otherwise
>     look through the GStreamer debug logs for why it's not negotiating
>     memory:GLMemory.
>
>     Cheers
>     -Matt
>
>     > # gst-launch-1.0 playbin uri=file:/mnt/tears_of_steel_1080p.mov
>     -v | grep
>     > omx
>     >
>     /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstOMXH264Dec-omxh264dec:omxh264dec-omxh264dec0.GstPad:sink:
>     > caps = video/x-h264, stream-format=(string)byte-stream,
>     > alignment=(string)au, level=(string)4, profile=(string)main,
>     > width=(int)1920, height=(int)800, framerate=(fraction)24/1,
>     > pixel-aspect-ratio=(fraction)1/1, parsed=(boolean)true
>     >
>     /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstOMXH264Dec-omxh264dec:omxh264dec-omxh264dec0.GstPad:src:
>     > caps = video/x-raw, format=(string)I420, width=(int)1920,
>     height=(int)800,
>     > interlace-mode=(string)progressive,
>     pixel-aspect-ratio=(fraction)1/1,
>     > chroma-site=(string)mpeg2, colorimetry=(string)bt709,
>     > framerate=(fraction)24/1
>     >
>     >
>     >
>     >
>     >
>     > --
>     > View this message in context:
>     http://gstreamer-devel.966125.n4.nabble.com/Full-HD-with-gst-omx-on-Raspberry-Pi-tp4667414p4680110.html
>     <http://gstreamer-devel.966125.n4.nabble.com/Full-HD-with-gst-omx-on-Raspberry-Pi-tp4667414p4680110.html>
>     > Sent from the GStreamer-devel mailing list archive at Nabble.com.
>     >
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161019/8d9738a0/attachment-0001.html>
-------------- 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/20161019/8d9738a0/attachment-0001.sig>


More information about the gstreamer-devel mailing list