I have two videos of different length. I need to create a new video with one video at the left and other at the right. I tried using this. Problem is my videos are of different length. I want to start one video a few seconds after the other started. Also, I want to keep the audio of the longer video only.
1 Answer
Use
ffmpeg -i shorter.mp4 -i longer.mp4 -filter_complex
"[0]trim=0:3.5,drawbox=c=black[delay];[delay][0]concat[left];
[left][1]hstack[v]"
-map "[v]" -map 1:a -c:a copy out.mp4
where 3.5
should be replaced with the delayed start time (in seconds) of the shorter video.
-
Awesome! But there was one missing point. Sync was proper. But the right video didn't start until the delay (13s) elapsed. Then both videos started simultaneously. In essence, I lost the first 13s of the right video Jan 4, 2018 at 9:04
-
-
No. The update distorted. Both videos began simultaneously. After few seconds, left video paused for few seconds. Then it resumed in sync with the right video Jan 4, 2018 at 9:30
-
-
drive.google.com/open?id=1gaX3d2ccbUcNjS8TqIPBL1kRX-sB4z0y I have put the logs here Jan 4, 2018 at 12:05