-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audio shift using LWLibavAudioCodec #72
Comments
Discussion: https://forum.doom9.org/showthread.php?p=2006887 |
At the indexing stage: - previous and current PTS are checked for discontinuity; - if any, the length of the discontinuity is stored to the index file as package with `POS=-1` and the relevants stats. At the fetching audio stage: - check if the requested audio samples are before, after or within the gap and adjust the offset for the decoding audio; - fill the gap with silence.
Try the attached version. There is additional parameter |
Edit: Did you also fix the 32000Hz problem? Suddenly LWLibavAudioSource started reading my DV files correctly. |
Can you share sample of this file? This screenshot tells nothing. Nothing fixed that's related directly to the audio frequencies. |
https://files.fm/u/v92x7ec359 (uploading) 3 files. Everything is in the avs file. Frames 932062-end. The mp4 file is VFR. |
I have an audio problem with a 4h MP4 file (H265 VFR + AAC) from a standalone recorder.
I open it in MPC-HC and at 4:00:59.500 I have synchronized video and audio. It looks and sounds OK. VLC too.
I open it in AviSynth using LWLibavVideoCodec:
And here is the problem, because the audio track is sped up and what was in 4:00:59.500 moves to approx. 4:00:49.180
In ffms2 it is the same.
(This is not a linear shift, because at time 0:13:00.000 I have only 1 frame of shift.)
If, however, in VirtualDub, load the same MP4 file as an audio track (Audio->Audio from another file), everything is perfectly synchronized.
The text was updated successfully, but these errors were encountered: