A very annoying situation...
I have an MPG2 video that is at the framerate of 29.97, yet when converting to MP4 frames are duplicated.

That command (straight conversion, no options):
ffmpeg -i ~/Desktop/file.mpg ~/Desktop/file.mp4
causes duplicated frames...

While setting the framerate with:
ffmpeg -i ~/Desktop/file.mpg -framerate 29.97 ~/Desktop/file.mp4
Doesn't work either!

Leading me to try:
ffmpeg -i ~/Desktop/file.mpg -r 29.97 ~/Desktop/file.mp4
Still with duplicated frames!

Finally I tried ffmpeg's 3rd framerate option!:
ffmpeg -i ~/Desktop/file.mpg -vf fps=fps=29.97 ~/Desktop/file.mp4

Except, when it outputted, the audio/video was out of sync!

Which FPS option should I use?


ffmpeg -i ~/Desktop/file.mpg -vsync 0 ~/Desktop/file.mp4

This skips duplication.

  • This sounds like it might work, but I get innumerable errors! – Henry7720 Oct 3 '17 at 22:39
  • DTS errors? You can ignore those if the file plays correctly. Show the full log. – Gyan Oct 4 '17 at 5:22

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.