FG
💻 Software

ffmpeg: images to 29.97fps mpeg2, audio not sync

Fresh5 days ago
Mar 15, 20266349 views
Confidence Score0%
0%

Problem

I have spent a lot of time on this issue. Hope someone can help. I want to convert 3147 images + ac3 audio file into an mpeg2 video at 29.97fps (about 1m45s). My command: However, the audio file ends before the frame sequence. Which means the video is slower then audio. I checked the output file wi…

Error Output

~/ffmpeg/ffmpeg/ffmpeg -loop_input \
  -t 105 -i v%4d.tga -i final.ac3 \
  -vcodec mpeg2video -qscale 1 -s 400x400 -r 30000/1001 \
  -acodec copy -y …

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: ffmpeg: images to 29.97fps mpeg2, audio not sync

Low Risk

Finally, I found the solution. Very simple. Sync problem happened because the input stream of images is considered 25fps by default (even if I specified output frame rate is 29.97fps), so duplicates frames to match from 25fps to 29.97fps. To force i…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment