[FFmpeg-user] Syncing stereo videos - what method?

Jesper Taxbøl jesper at taxboel.dk
Sat Aug 29 01:39:16 CEST 2015

Hi Guys,

I am trying to sync two videos recorded simultaniously from a stereo setup.

I am extracting their audio (mono) and find their offset, which I can
easily find in Audacity. With the offset in hand I cut off the start of
 the earliest video, so they start at the same time. I use the -ss flag for

 ffmpeg -ss 0.75 -i A.mp4 -acodec copy -vcodec copy cut_A.mp4

Hereafter I assemble them side by side into one video using a complex

I am however having trouble with their syncronization in the end product.

I am therefore wondering if the -ss flag is the right way to do this or if
I can achieve syncronization between the videos a different way?

I suspect the -ss method is affected by where there are keyframes in the
video as I constantly get it wrong more than a second.

All ideas are welcome.

Kind regards


More information about the ffmpeg-user mailing list