How to skip until first key frame without decoding

Nicolas Dufresne nicolas at ndufresne.ca
Wed Sep 6 17:39:21 UTC 2023


Le mardi 05 septembre 2023 à 17:33 +0900, geysee via gstreamer-devel a écrit :
> Hello,
> 
> 
> I tried the following pipeline with C++ coding (Properties are omitted).
> 
> 
>      pipeline1 : splitmuxsrc ! h264parse ! queue ! qtmux ! filesink
> 
> 
> When I seek range "start", I would like to skip frame until first key frame
> without decoding.
> 
> Would you give me how to do it anyone?

If you issue a seek, qtdemux will send picture from the previous keyframe.
Using GST_SEEK_FLAG_KEY_UNIT | GST_SEEK_FLAG_SNAP_AFTER should instead give you
frames from the next keyframe (for supported demuxers).

Nicolas

> 
> Best regards,
> Kamiya

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230906/11c9b573/attachment.htm>


More information about the gstreamer-devel mailing list