[FFmpeg-user] 'forcing output' //523971 times

Devin Heitmueller devin.heitmueller at ltnglobal.com
Fri Sep 29 22:20:00 EEST 2023


On Fri, Sep 29, 2023 at 2:51 PM Mark Filipak <markfilipak.imdb at gmail.com> wrote:
>
> Audio is way out of sync. Video freezes.
> Kindly look at the log (attached due to webmail size limit) and tell
> me what I did wrong.
> Note: Previous snipping did not snip the chapters. Ignore that for now.

You generally can't set the audio PTS in that manner, as it blindly
assumes that an audio packet will contain exactly 2000 samples (which
it very likely will not, depending on the codec).

Basically you're assigning arbitrary timestamps to the audio packets
that are irrespective of what the actual audio timing is on the input
stream.  Over time the delta between audio/video grows and you'll
start to see errors spewed to the console within a few seconds once
the delta exceeds a threshold (as well as you'll quickly fall out of
A/V sync)

Devin

-- 
Devin Heitmueller, Senior Software Engineer
LTN Global Communications
o: +1 (301) 363-1001
w: https://ltnglobal.com  e: devin.heitmueller at ltnglobal.com


More information about the ffmpeg-user mailing list