Re: How to skip until first key frame without decoding

Nicolas Dufresne via gstreamer-devel <[email protected]>
Newsgroups gmane.comp.video.gstreamer.devel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.