0

I have a number of .mpeg files that I only want to use the last 10 seconds of (kind of like a replay)

Is ffmpeg or MEncoder able to do this and if so can someone please help me out with the command line syntax?

2 Answers2

3

You can easily do this with the latest version of ffmpeg:

-sseof time_off     set the start time offset relative to EOF

Example:

ffmpeg -i input.mpg -c copy -map 0 -sseof 10 output.mpg
Tyler Liu
  • 19,552
  • 11
  • 100
  • 84
3

Not exactly sure when it changed, but the example from Tyler does not work anymore (at least for me).

Here is what worked for me:

ffmpeg -sseof -10 -i input.avi -c copy output.avi
Stef
  • 644
  • 1
  • 8
  • 25