Changes between Initial Version and Version 1 of Ticket #960, comment 5


Ignore:
Timestamp:
Feb 1, 2012, 7:48:31 PM (4 years ago)
Author:
mjs973
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #960, comment 5

    initial v1  
    33The 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: 
    44 
    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:v 5000000 -acodec copy out.ts 
    66 
    77You 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.