How would I modify this ffmpeg command to include 4 videos?
Posted
by
Michael Shnitzer
on Super User
See other posts from Super User
or by Michael Shnitzer
Published on 2013-08-25T05:22:20Z
Indexed on
2013/10/24
3:58 UTC
Read the original article
Hit count: 399
ffmpeg
Say I had 4 videos with the following names:
- Main Video.mov
- Top Left.mov
- Top Right.mov
- Top Mid.mov
and I wanted to have "Main Video" play with a picture in picture effect with boxes of videos playing in the top left, top right and top mid. Each box would have the video that is similarly named.
This command will do picture in picture for 2 videos, with one video in the lower right.
ffmpeg -i 2013-07-31\ 231548.MOV -vf "movie=2013-07-31\ 231722.MOV, scale=iw/5:ih/5 [small]; [in][small] overlay=main_w*0.77:main_h*0.77 [out]" -strict -2 output.mov
Can someone help me update this command to work with the 4 files I mentioned above?
Thanks
© Super User or respective owner