[FFmpeg-user] Using ffmpeg to remove commercials from video file

Werner Robitza werner.robitza at gmail.com
Tue Aug 20 10:47:48 CEST 2013


On Tue, Aug 20, 2013 at 9:54 AM, Jesper Lund Stocholm
<4a4553504552 at gmail.com> wrote:
> So the commands I use are these:
>
> ffmpeg -ss "00:00:00.000" -i "movie.m4v" -to "00:15:18" -c:v copy -c:a copy
> "result.pt1.m4v"
> ffmpeg -ss "00:22:29.500" -i "movie.m4v" -to "00:18:58" -c:v copy -c:a copy
> "result.pt2.m4v"
> ffmpeg -ss "00:50:24.500" -i "movie.m4v" -to "00:16:12" -c:v copy -c:a copy
> "result.pt3.m4v"
> ffmpeg -ss "01:14:48.500" -i "movie.m4v" -to "00:18:44" -c:v copy -c:a copy
> "result.pt4.m4v"
> ffmpeg -ss "01:41:35.000" -i "movie.m4v" -to "00:18:08" -c:v copy -c:a copy
> "result.pt5.m4v"

I see now.

Note that -ss specifies the start time and -to the end time.
You cannot start at 22:29 and end at 18:58. Unless you expect ffmpeg
to travel back in time :)

If you want it to start at 22:29 and encode for 18 minutes and 58
seconds, you need -t, not -to.


More information about the ffmpeg-user mailing list