I have two videos and two audios
1:- video 1 - length:- 60 sec || audio 1 - length:- 15 sec
2:- video - length:- 86 sec || audio 2 - length:- 18 sec
Play video1 and audio1 together, if audio1 is ended then restart that audio till video1 end. this will final video 1.
same way,
play video2 and audio2 together, if audio2 is ended then restart that audio till video2 end. this will final video 2.
after that concatenate those final video 1 and final video 2 and create single video as output.
Thank you in advance.
ffmpeg -n -i video1 -i audio1 -i video2 -i audio2