-
Notifications
You must be signed in to change notification settings - Fork 333
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 sync issues on long videos #37
Comments
After testing out some contrived audio + frames with FFmpeg, the sync seems fine even for very long audio, which leads me to believe the problem is with Going to try extracting the raw PCM data and manually getting the samples to see whether that fixes the alignment. |
Another test confirms the drift is coming from |
Tried this with raw PCM data, skipping |
0.1s after a few minutes would certainly be perfectly ok, that's much better than what we have now. I don't think that further optimization is required beyond that. |
The A few notes:
|
Related to the vertical positioning above, we'll likely want to switch to a logarithmic scale to better fill the space and translate back into perceived loudness (which libgroove was handling before). |
This has been merged to |
A few reports of audio getting gradually out of sync with the waveform in a long video.
It doesn't seem like the number of frames generated is wrong, so either:
-The detected waveform data is getting offset by a little bit (a problem with
waveform
or the math to split up the samples)-FFmpeg's frame spacing is getting offset somehow
Things to investigate:
-Audio file rounding
-Setting the framerate on inputs vs. output
-Disabling
-shortest
-waveforming a long alternating tone file and confirming that the frames line up
-Specifying
-aframes
The text was updated successfully, but these errors were encountered: