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.
- Is there an efficient way to seek accurately without re-encoding, on most files?
- 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:
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.mp4Not 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