0

I'm trying to trim a video from a given initial point in time and a duration. However, after researching, it seems that ffmpeg's seek accuracy is not sufficient most of the times, unless the video stream is re-encoded.

  1. Is there an efficient way to seek accurately without re-encoding, on most files?
  2. It seems odd since Windows Media Player succeeds in this task most of the time.

What are they implementing differently?

Edit:

For example, given sample.mp4 5 seconds long:

  1. Working (with transcoding)

     ffmpeg -ss 00:00:03 -t 1 -i sample.mp4 -c:v libx264 -movflags +faststart -c:a aac -strict -2 -b:a 192k out.mp4
    
  2. Not working (without transcoding) - Will produce a video from the start of the file.

     ffmpeg -ss 00:00:03 -t 1 -i sample.mp4 -c:v copy -c:a copy out.mp4
    

ffmpeg version used: 2.8.4

Shlomi Uziel
  • 101
  • 3

0 Answers0