Fast decode h264 stream, keyframes only.

Krutskikh Ivan stein.hak at gmail.com
Tue Mar 14 07:37:22 UTC 2017


Thanks a lot!

Can someone provide a quick example of subj in python or c? Just for
performance tests.

2017-03-13 21:37 GMT+03:00 Olivier Crête <olivier.crete at collabora.com>:

> On Sat, 2017-03-11 at 19:44 +0000, Tim Müller wrote:
> > On Sat, 2017-03-11 at 11:20 -0500, Nicolas Dufresne wrote:
> >
> > > > Can gstreamer fast decode h264/5 steam and return only keyframes?
> > > > That would be usefull for opencv processing  of live streams.
> > >
> > > I believe this should work in recent version with the
> > > GST_SEEK_FLAG_KEY_UNIT. Pause you streamr, and then operate a
> > > flushing seek with this flag set.
> >
> > You probably meant GST_SEEK_FLAG_TRICKMODE_KEY_UNITS ? :)
> >
> > Question is, what does one do when seeking is not supported? In that
> > case one would have to add a pad probe on the decoder sink pad or
> > parser src pad or so and drop all frames that are flagged as delta
> > units via the buffer flags or such.
>
> You could also add the identity element before the decoder and set the
> "drop-buffer-flags" property to GST_BUFFER_FLAG_DELTA_UNIT
>
> --
> Olivier Crête
> olivier.crete at collabora.com
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170314/b8ec5787/attachment.html>


More information about the gstreamer-devel mailing list