Hello,
When restoring video files, I often encounter files whose footage was 24 or 25 fps, but which were carelessly placed in a 30 (or 29.97) timeline. This results in every 5th or 6th frame being a duplicate.
This causes unpleasant jitter.
It's especially bad when trying to create slow motion, etc.
If you remove these fake frames with decimate—which works perfectly, using the cycle=6 option even with 25 fps footage, you always end up with out-of-sync audio.
So far, I've been working around this by decoupled the audio track in DaVinci Resolve, then sped it up to 100.10%, and then recoupled it.
This worked perfectly, but it's annoying in the long run.
The error stems from the analog video era, when NTSC, the color format, was introduced and slowed down from 30 fps to 29.97 fps.
(This is due to coupling the color subcarrier with the line frequency...)
Over 45 minutes, it's about 2.5 seconds (not measured precisely).
Isn't there an option in FFmpeg decimate to prevent this error from occurring in the first place?
kind regards seifenchef
+ Reply to Thread
Results 1 to 2 of 2
-
-
You can try to adjust the audio speed in ffmpeg, for example for speeding it up by 0.1% add something like:
Edit:Code:-filter:a "atempo=1.001"
Alternatively you can try to slow down the video by 0.1% like
Code:-filter:v "setpts=0.999*PTS"
Last edited by Sharc; 1st Dec 2025 at 04:28.
Similar Threads
-
Using ffmpeg to record m3u8 link results in out-of-sync audio/video
By thestormarchive in forum Video Streaming DownloadingReplies: 1Last Post: 9th Dec 2023, 18:56 -
[ffmpeg] Output out of sync when speeding up
By yetanotherlogin in forum EditingReplies: 2Last Post: 9th May 2023, 12:42 -
24 to 23.976 by decimating
By doctorm in forum RestorationReplies: 9Last Post: 3rd Jan 2023, 17:38 -
audio .wav non in sync from ffmpeg, why?
By marcorocchini in forum Newbie / General discussionsReplies: 13Last Post: 25th Aug 2022, 10:12 -
Audio out of sync when using ffmpeg, adelay, and amix
By AspiringVideoProcessor in forum Video ConversionReplies: 7Last Post: 1st Feb 2021, 08:40


Quote