appsrc flushing, or decoder flushing

Nicolas Dufresne nicolas.dufresne at gmail.com
Tue Mar 22 23:52:43 UTC 2016


Le mardi 22 mars 2016 à 16:08 -0700, Ash 20001 a écrit :
> gst-launch-1.0 -v filesrc location=out.264 ! h264parse ! decodebin !
> xvimagesink
> 
> I have converted this pipeline into C++ code using appsrc as the
> source. The pipeline requires several frames before it actually start
> to output (around 7 frames by my calculations, depending on content).
> So if my appsrc is a live source, I can never seem to render the most
> up to date frame because it is always 7 frames behind. Is there a way
> to set something on the pipeline or flush the pipeline for live
> sources?

H264 decoder element should expose their latency in order to work
properly in live mode. Did you verify that OMX decoder do that ? You
can always manually force a latency to get going. See
gst_pipeline_set_latency().

Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160322/2991d81a/attachment.sig>


More information about the gstreamer-devel mailing list