1080p on rpi2 - omxvideodec: Frame is too late, dropping

Sergey Anuchin sergunich at gmail.com
Fri Nov 20 08:19:58 PST 2015


Hi!

I have problem with playback of 1080p on rpi2(archlinuxarm).

##Prelude - how I compiled gstreamer##
I compiled gstreamer, gst-plugins-base, gst-plugins-good, gst-plugins-bad
version 1.6.1 from tarbals from here: http://gstreamer.freedesktop.org/src/.
Here is build scripts that I use:
https://gist.github.com/sergunich/1010791aaf59c97a9a23
Main part is build() functions, where I call configure and disable a lot
redundant plugins.

I got gst-omx version 1.2.0 from precompiled archlinluxarm packages, here
is building script:
https://github.com/archlinuxarm/PKGBUILDs/blob/master/alarm/gst-omx-rpi/PKGBUILD

All compiles successfully and passes tests.

##Main part##
I use this video for testing:
http://download.openbricks.org/sample/H264/big_buck_bunny_1080p_H264_AAC_25fps_7200K_short.MP4
Here is result of gst-discoverer-1.0 for this video:
https://gist.github.com/sergunich/ba10bb832b4996c31fad

I use this command to launch playback:
gst-launch-1.0 -ve filesrc
location=./big_buck_bunny_1080p_H264_AAC_25fps_7200K_short.MP4 ! queue
name=demux ! qtdemux ! queue name=parse ! h264parse ! queue name=decode !
omxh264dec ! queue name=sink ! glimagesink

Playback is laggish. Output to console:
https://gist.github.com/sergunich/8aa410ee527d642ddcba
Main message from this output:
""""
WARNING: from element
/GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0/GstGLImageSink:sink:
A lot of buffers are being dropped.
Additional debug info:
gstbasesink.c(2846): gst_base_sink_is_too_late ():
/GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0/GstGLImageSink:sink:
There may be a timestamping problem, or this computer is too slow.
"""""

Here is full debug log with GST_DEBUG=6:
https://copy.com/PzLQ4jQlLRhGCoQE/gst.log?download=1
And here most relevant parts(as seems to me):
https://gist.github.com/sergunich/94990944f46fe5aa0a68

##Hardware resources##
Here is 'top' snapshots of processes with threads during playback:
https://gist.github.com/sergunich/e13889e33bf05a43156d
In /boot/config.txt: gpu_mem=512


##Questions##
So... any idea why playback is laggish?)
How can I investigate this problem further?


##P.S.##
If I set glimagesink sync=false - playback is like slowmotion.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151120/9828c5e0/attachment-0001.html>


More information about the gstreamer-devel mailing list