[FFmpeg-user] difference in timing (instead of record duration in seconds) ...
Moritz Barsnick
barsnick at gmx.net
Tue Apr 28 17:42:54 CEST 2015
> On Sat, Apr 25, 2015 at 11:54 PM, Albretch Mueller <lbrtchx at gmail.com>
> wrote:
> > avconv has just an option for recording duration not time difference
Recording duration and time difference is the same thing to me, both
expressed by ffmpeg's "-t" option. (And avconf is not supported here,
wrong tool.)
> > Say, you need just a segment of a video from after the first five
> > minutes and a half ("00:05:30") for an hour fifteen minutes and
> > twenty seconds from time 0 (not after start of desired segment)
> > have passed ("01:15:20")
So you want to specify the end point of time, _not_ the difference to
the beginning?
> > How can you do that?
ffmpeg hase the "-to" option, which _should_ do the right thing. It
calculates the difference (which you would need to pass to "-t"
otherwise) itself.
$ ffmpeg -ss 00:05:30 -i input -to 01:15:20
(I - myself - had a problem though: My impression was that the "-to"
option doesn't look at the file position (as "-ss" does), but rather at
the timestamp in the video stream or something else. And in my files,
that is often totally different. It would be so very practical for me
if it did work! I checked the source code though. It should work
correctly.)
On Tue, Apr 28, 2015 at 19:25:27 +0530, prashantha S wrote:
> Can you try with "-ss " option and "-t" options
No, that is time difference, and not what I think Albretch meant.
Moritz
More information about the ffmpeg-user
mailing list