Article 4R037 [SOLVED] ffmpeg and -t / -to switches

[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 version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers
ffmpeg -h: Quote:
-t duration record or transcode "duration" seconds of audio/video
-to time_stop record or transcode stop time
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:
ffmpeg -y -ss 10 -i taking.mp4 -to 0:15.0 -strict -2 taking-10to20.mp4
actually cuts 15 seconds worth of video - I expected five seconds i.e. from 10s to 15s Quote:
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
Any idea's folks, does the -to option only work with certin types of video files maybe?latest?d=yIl2AUoC8zA latest?i=p3bxhPwtriU:aUoL6dkHIik:F7zBnMy latest?i=p3bxhPwtriU:aUoL6dkHIik:V_sGLiP latest?d=qj6IDK7rITs latest?i=p3bxhPwtriU:aUoL6dkHIik:gIN9vFwp3bxhPwtriU
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments