FFmpeg loudnorm in filter_complex causes audio-video sync drift, fix available
A known bug in FFmpeg 8.1.2 causes audio to desync from video when the loudnorm filter is used inside a -filter_complex graph. The issue stems from loudnorm's internal analysis running at 192kHz, which corrupts downstream presentation timestamps and results in the encoded audio track carrying roughly 2.5 times more samples than its declared duration. This misleads players, extractors, and transcription tools in varying ways. The recommended fix is to run loudnorm as a separate standalone audio pass and then remux the normalized audio with the video, rather than processing it within the filter graph. Developers can verify correct output by checking that nb_frames multiplied by 1024 divided by sample rate approximately equals the duration reported by ffprobe.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in