[SOLVED] ffmpeg and -t / -to switches
by GPGAgent from LinuxQuestions.org on (#4R037)
I cannot see why -to does not work with ffmpeg - Linux Mint 19.1 64 bit with
I know it's a valid option from ffmpeg -h
Here are the details:
ffmpeg version: Quote:
ffmpeg -h: Quote:
When I use -to it doesn't stop at the time specified - it treats the switch as tho' its a duration, i.e. -t
So this command: Quote:
actually cuts 15 seconds worth of video - I expected five seconds i.e. from 10s to 15s Quote:
Any idea's folks, does the -to option only work with certin types of video files maybe?


I know it's a valid option from ffmpeg -h
Here are the details:
ffmpeg version: Quote:
| ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers |
| -t duration record or transcode "duration" seconds of audio/video -to time_stop record or transcode stop time |
So this command: Quote:
| ffmpeg -y -ss 10 -i taking.mp4 -to 0:15.0 -strict -2 taking-10to20.mp4 |
| Press [q] to stop, [?] for help frame= 450 fps= 79 q=-1.0 Lsize= 3669kB time=00:00:15.00 bitrate=2002.6kbits/s dup=0 drop=57 |