HydrogenAudio

Digital Audio/Video => General A/V => Topic started by: psycho on 2022-01-24 09:44:00

Title: Looking for a free tool to sync second audio track to video
Post by: psycho on 2022-01-24 09:44:00
I am looking for a free tool to sync second audio track to video.
I have a set of videos that have audio and video and I'm adding a second audio stream to that. The original videos have excess stuff at the beginning of various lengths. If this length was always the same, I'd have no trouble to batch program this.
What I'm doing now is I playback the original video in MPC-HC with milliseconds visible, find the spot where the second sound source should begin, note the time and then use that time as a parameter for ffmpeg to cut the excess. Sometimes I need to repeate the process a few times, because I don't always get it right the first time. Cumersome, especially since I have ~100 videos to process.
I have tried Shotcut and the likes, but since I'm not into video editing, I can't figure out how to do this. So, I need either a guide for dummies for Shotcut or some other software suggestion that can help me.
I'd like to open the existing video, add the second audio and be able to just drag the second audio to the place where it's supposed to be and then export that as a new video.
Shotcut, DaVinci Resolve, etc. all promise this is what you can do, but I'm just not smart enough, apparently.
Title: Re: Looking for a free tool to sync second audio track to video
Post by: nickreserved on 2022-09-26 22:27:48
If your container is matroska, you can use mkvtoolnix.
It delay/stretch every stream independently.
Plus, you does not reencode any of streams - it is loseless.
MPC plays correct the product MKV but VLC and MX Player not.
See: https://hydrogenaud.io/index.php/topic,123051.0.html
Title: Re: Looking for a free tool to sync second audio track to video
Post by: extract on 2023-08-02 18:44:56
Personally, when I had to sync some audio tracks to my videos a while back, I initially started with iMovie (because of Apple). But since I'm a PC guy, I did some digging to find imovie for pc (https://www.movavi.com/imovie-for-windows/) and found some great alternatives.

Ended up giving Movavi a shot. It's super intuitive, just drag and drop kind of stuff, and they've got a ton of cool effects to play around with too. It might be worth checking out if you're still on the hunt for something that feels a bit less technical and more user-friendly.
Title: Re: Looking for a free tool to sync second audio track to video
Post by: psycho on 2023-08-03 18:35:24
Thanks @extract. I eventually figured it out with Shotcut, but this Movavi also looks quite interesting, I'll try it.
Title: Re: Looking for a free tool to sync second audio track to video
Post by: forart.eu on 2023-08-05 07:24:55
We doxed/collected some open source a/v synching tools for our HyMPS project (https://github.com/forart/HyMPS/) (under the Tools page (https://github.com/forart/HyMPS/blob/main/A_Tools.md) - Alignment/synch section (https://github.com/forart/HyMPS/blob/main/A_Tools.md#alignmentsynch-)).

The most interesting one - on the Windows platform - seems to be AudioAlign (https://github.com/protyposis/AudioAlign#audioalign-audio-synchronization-and-analysis-tool):

https://www.youtube.com/watch?v=Jo2XPXUmkK0

https://www.youtube.com/watch?v=QXQVPXjR3Lc

We already asked (privately) @john33 for an unofficial build of it but still waiting...