[FFmpeg-devel] [PATCH] avformat/dv: fix timestamps of audio packets in case of dropped corrupt audio frames

Carl Eugen Hoyos ceffmpeg at gmail.com
Sat Oct 31 21:20:48 EET 2020


Am Sa., 31. Okt. 2020 um 19:43 Uhr schrieb Dave Rice <dave at dericed.com>:
>
> Hi Marton,
>
> > On Oct 31, 2020, at 12:56 PM, Marton Balint <cus at passwd.hu> wrote:
> >
> > Fixes out of sync timestamps in ticket #8762.
>
> Although Michael’s recent patch does address the issue documented in 8762, I haven’t found this patch to fix the issue. I tried with -c:a copy and with -c:a pcm_s16le with some sample files that exhibit this issue but each output was out of sync. I put an output at https://gist.github.com/dericed/659bd843bd38b6f24a60198b5e345795. That output notes that 3597 packages of video are read and 3586 packets of audio. In the resulting file, at the end of the timeline the audio is 9 frames out of sync and my output video stream is 00:02:00.020 and output audio stream is 00:01:59.653.
>
> Beyond copying or encoding the audio, are there other options I should use to test this?

Maybe I misunderstand the issue but if audio is missing and you don't
re-encode (and
force the missing audio to be inserted), you will always run into
issues because of how
audio is generally interpreted in multimedia files.

Carl Eugen


More information about the ffmpeg-devel mailing list