<p>I have a bunch of separately recorded audio and video tracks that I need to sync. By sync (synch?) I mean align the two tracks so that the audio matches as closely as possible. The two tracks are recorded from different mics (a boom mic attached to a sound recorder and the built in crappy mic on a camera), so they're not exactly the same. </p>

<p>I can do it with Resolve or Premiere etc., but using a GUI app is soo tedious. I feel like this is the sort of thing that ffmpeg should be able to do, but I can't find anything. </p>

<p>Are there any command line programs that will sync two clips using their audio?</p>

CC BY-SA 3.0
2017-05-31T05:03:42.000Z
Any distinctive sounds present - clapper?
Gyan
CC BY-SA 3.0
2017-05-31T06:10:10.217Z
That's what http://www.redgiant.com/products/pluraleyes/ does. Not free though.
audionuma
CC BY-SA 3.0
2017-06-02T02:57:20.943Z
Not command-line either. I want something I can automate. @Mulvya, no clapper.
stib
CC BY-SA 3.0
2017-08-30T12:24:34.333Z
@PaulB.Mahol synched by audio. Premier and Resolve and FCP use some sort of algorithm that matches the timing of the two clips by comparing the audio. I would have thought it's the kind of thing that would exist as FOSS.
stib
CC BY-SA 4.0
2020-05-19T13:57:01.340Z
I'm also interested in this sort of thing.  I usually edit video using https://www.mltframework.org/
Jim Fowler
CC BY-SA 4.0
2020-05-20T04:59:20.107Z
There's this, but I don't think it quite does what I want: https://github.com/google/audio-sync-kit
stib
<ffmpeg><audio><sync><command-line>
Is there command line software that syncs two audio tracks
stib
# Is there command line software that syncs two audio tracks

(Asked by: username_0 on 2017-05-31)

I have a bunch of separately recorded audio and video tracks that I need to sync. By sync (synch?) I mean align the two tracks so that the audio matches as closely as possible. The two tracks are recorded from different mics (a boom mic attached to a sound recorder and the built in crappy mic on a camera), so they're not exactly the same.

I can do it with Resolve or Premiere etc., but using a GUI app is soo tedious. I feel like this is the sort of thing that ffmpeg should be able to do, but I can't find anything.

Are there any command line programs that will sync two clips using their audio?

**Tags:** ffmpeg, audio, sync, command-line

> **Comments:**
> **username_1**: Any distinctive sounds present - clapper?  
> **username_2**: That's what http://www.redgiant.com/products/pluraleyes/ does. Not free though.  
> **username_0**: Not command-line either. I want something I can automate. @Mulvya, no clapper.  
> **username_0**: @PaulB.Mahol synched by audio. Premier and Resolve and FCP use some sort of algorithm that matches the timing of the two clips by comparing the audio. I would have thought it's the kind of thing that would exist as FOSS.  
> **username_3**: I'm also interested in this sort of thing.  I usually edit video using https://www.mltframework.org/  
> **username_0**: There's this, but I don't think it quite does what I want: https://github.com/google/audio-sync-kit  

---

## 0 answers

