<span style=" font-size:10pt;font-family:sans-serif">Hi, Mr.Nicolas.</span>
<br>
<br><span style=" font-size:10pt;font-family:sans-serif">Thank you for
your information.</span>
<br><span style=" font-size:10pt;font-family:sans-serif">I did not notice
this specification. So it's helpful for me.</span>
<br>
<br><span style=" font-size:10pt;font-family:sans-serif">I tried GST_SEEK_FLAG_SNAP_AFTER
and I noticed the following.</span>
<br>
<br><span style=" font-size:10pt;font-family:sans-serif">If I generate
a movie by seeking with GST_SEEK_FLAG_SNAP_AFTER and GST_SEEK_FLAG_FLASH,
</span>
<br><span style=" font-size:10pt;font-family:sans-serif">it will appear
distorted green for the first few seconds when I play with gst-play.</span>
<br>
<br><span style=" font-size:10pt;font-family:sans-serif">If you know the
reason, could you tell me it?</span>
<br>
<br><span style=" font-size:10pt;font-family:sans-serif">My purpose is
that the beginning of the movie becomes a key frame.</span>
<br><span style=" font-size:10pt;font-family:sans-serif">So for the time
being, I would like to select one of the following.</span>
<br>
<br><span style=" font-size:10pt;font-family:sans-serif">1. GST_SEEK_FLAG_SNAP_AFTER
without GST_SEEK_FLAG_FLASH</span>
<br><span style=" font-size:10pt;font-family:sans-serif">2. GST_SEEK_FLAG_SNAP_BEFORE
 with GST_SEEK_FLAG_FLASH</span>
<br><span style=" font-size:10pt;font-family:sans-serif">3. GST_SEEK_FLAG_SNAP_NEAREST
 with GST_SEEK_FLAG_FLASH</span>
<br>
<br><span style=" font-size:10pt;font-family:sans-serif">I think GST_SEEK_FLAG_SNAP_BEFORE
is also fine.</span>
<br><span style=" font-size:10pt;font-family:sans-serif">Because I confirmed
that If I use GST_SEEK_FLAG_SNAP_BEFORE and there is no previous key frame,
it seeks to the next key frame.<br>
<br>
Best regards,<br>
Kamiya.</span>
<br>
<br>
<br><tt><span style=" font-size:10pt">"Nicolas Dufresne" <nicolas@ndufresne.ca>
wrote on 2023/09/07 02:39:21:</span></tt>
<br><tt><span style=" font-size:10pt">> <br>
> Le mardi 05 septembre 2023 à 17:33 +0900, geysee via gstreamer-devela
écrit :<br>
> > Hello,<br>
> ><br>
> ><br>
> > I tried the following pipeline with C++ coding (Properties are
omitted).<br>
> ><br>
> ><br>
> >      pipeline1 : splitmuxsrc ! h264parse ! queue
! qtmux ! filesink<br>
> ><br>
> ><br>
> > When I seek range "start", I would like to skip frame
until first key frame<br>
> > without decoding.<br>
> ><br>
> > Would you give me how to do it anyone?<br>
</span></tt>
<br><tt><span style=" font-size:10pt">> If you issue a seek, qtdemux
will send picture from the previous keyframe.<br>
> Using GST_SEEK_FLAG_KEY_UNIT | GST_SEEK_FLAG_SNAP_AFTER
should <br>
> instead give you<br>
> frames from the next keyframe (for supported demuxers).<br>
</span></tt>
<br><tt><span style=" font-size:10pt">> Nicolas<br>
</span></tt>
<br><tt><span style=" font-size:10pt">> ><br>
> > Best regards,<br>
> > Kamiya<br>
</span></tt>
<br><tt><span style=" font-size:10pt">> [$BE:IU%U%!%$%k(B "C.htm"
$B$O(B $B?@C+(B $BLP<#(B/TOA $B$,:o=|$7$^$7$?(B] </span></tt>