Changes between Initial Version and Version 1 of Ticket #960, comment 5
- Feb 1, 2012, 7:48:31 PM (5 years ago)
initial v1 3 3 The only way to (maybe) fix this *with ffmpeg* is to re-encode the video, which will generate new timestamps as a side-effect. Even then, you may discover that audio sync gets more and more wrong as you play the file (I didn't check). For example: 4 4 5 ./ffmpeg -vsync 0 -i sample-non-monotonic-dts_cut.ts -vcodec mpeg2video -b 5000000 -acodec copy out.ts 5 ./ffmpeg -vsync 0 -i sample-non-monotonic-dts_cut.ts -vcodec mpeg2video -b 5000000 -acodec copy out.ts 6 6 7 7 You need the '-vsync 0' option because the input video has field pictures, not frame pictures, and ffmpeg gets the input frame rate wrong. This bug has existed forever.