On Fri, Sep 29, 2023 at 2:51 PM Mark Filipak <markfilipak.i...@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.heitmuel...@ltnglobal.com _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".