[FFmpeg-user] Understanding the behavior of "-ss/-t" option
nitishsprabhu at gmail.com
Fri Sep 8 09:23:41 EEST 2017
On Fri, Sep 8, 2017 at 11:13 AM, Gyan <gyandoshi at gmail.com> wrote:
> You'll want to use the seek_timestamp option.
> As it says in the docs,
> "-seek_timestamp (*input*)
I tried using "-seek_timestamp" prior to posting this, but was not
really sure if this works on MP4 files. I used ffprobe to get the
first pts of the offset stream and used this with "-ss" option.
Following is the output of ffprobe for the first frame of
"input_clip_x264_offset.mp4", the clip where offset was introduced:
Following is the command that I used to seek with timestamp value:
$ ffmpeg -seek_timestamp 1 -ss 60.021029 -t 10 -i
input_clip_x264_offset.mp4 -copyts -filter:v
"select=between(t\,60.000\,70.000)" -c:v libx264 offset_extract.mp4
I do not see any change in the behavior with the above command. It
does not seek to the required timestamp.
More information about the ffmpeg-user