[FFmpeg-user] Comparing audio to sync video
jnfo-c at grauman.com
Tue Dec 18 18:30:44 EET 2018
Yes, exactly. Thanks for the mathematical name for what I'm trying to do.
I don't necessarily need to do it in ffmpeg, so I found this, which should
be easy to adapt for my needs (includes sample C code).
>> I have two video cameras recording an event 30 minutes long. I hit start
>> on the two cameras at different times. I would like to figure out a
>> command-line script that can basically diff the audio to figure out the
>> difference between the start times and align the videos. The audio won't
>> be exactly identical as they are two different cameras, different mics,
>> different locations, but they are both recording an interview, so the
>> audio should be able to be synced. Any ideas?
> I think to automatically find the best-fit audio delay between the two tracks
> you would need to calculate a cross correlation of the two audio tracks. As
> far as I know this doesn't exist in ffmpeg. But it would be nice to have.
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-user