[FFmpeg-user] '-t' versus '-to'

Mark Filipak markfilipak.imdb at gmail.com
Sat Jan 13 22:50:48 EET 2024


What's the difference?

-t duration (input/output)
     When used as an input option (before -i), limit the duration of data read from the input file.
     When used as an output option (before an output url),
     stop writing the output after its duration reaches duration.
     duration must be a time duration specification, see
     (ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual.
     -to and -t are mutually exclusive and -t has priority.

-to position (input/output)
     Stop writing the output or reading the input at position.
     position must be a time duration specification, see
     (ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual.
     -to and -t are mutually exclusive and -t has priority.

'duration' and 'position' seem to both be duration. What's the difference?

--Mark.


More information about the ffmpeg-user mailing list