Re: [FFmpeg-user] Syncing stereo videos - what method?
Jesper Taxbøl jesper at taxboel.dk writes: I am trying to sync two videos recorded simultaniously from a stereo setup. This should work with -itsoffset and specifying the input file twice, something like (untested): $ ffmpeg -i A.mp4 -itsoffset 0.75 -i A.mp4 -map 0:0 -map 1:1 -codec copy out.mp4 Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Syncing stereo videos - what method?
Thanx for your input. I did not know the -itsoffset flag. I think my problem was that I was trying to save the recoding via the copy class. What ended up working for me was this. /usr/local/bin/ffmpeg -y -loglevel panic -ss 1.161397 -i 3.mp4 -t 15 _3.mp4 I could not make the itsoffset flag do the trick. Kind regards Jesper 2015-08-29 15:49 GMT+02:00 Carl Eugen Hoyos ceho...@ag.or.at: Jesper Taxbøl jesper at taxboel.dk writes: I am trying to sync two videos recorded simultaniously from a stereo setup. This should work with -itsoffset and specifying the input file twice, something like (untested): $ ffmpeg -i A.mp4 -itsoffset 0.75 -i A.mp4 -map 0:0 -map 1:1 -codec copy out.mp4 Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user -- Jesper Taxbøl +45 61627501 ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Syncing stereo videos - what method?
Dana 29. 8. 2015. 01:40 osoba Jesper Taxbøl jes...@taxboel.dk napisala je: 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 this. 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 filter. 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? You can use trim filter to trim to exact frame, but you cannot use it with -c copy. 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 Jesper ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user