On my Windows 7 PC, I've used Windows Live Movie Maker and Windows Media Encoder extensively to make and edit videos (I've also used other software like "Showbiz", "Super C" and "AVIdemux"). Recently I wanted to create a "grid mosaic" in a 2x2 arrangement of source videos in a target video. After some flailing around and gnashing of teeth, I found out about ffmpeg, downloaded the Windows "build" from the ffmpeg.org website, and have installed it on my PC. I tried using a command in the cmd window (aka "DOS") for the simple task of converting a WMV video (with an unusual aspect ratio) to AVI, and that worked out fine. At first the output image was pretty low-grade, but adding -b:v 3M fixed that up. Then, for my real objective, following this example I had found online, all as one line:
After some flailing around and gnashing of teeth, I found out about ffmpeg -i 1, downloaded the Windows "build" from the ffmpeg.avi -i 2org website, and have installed it on my PC.avi I tried using a command in the cmd window -i 3.avi(aka "DOS") for the simple task of converting a WMV video -i 4(with an unusual aspect ratio) to AVI, and that worked out fine.avi -filter_complex "nullsrc=size=640x480 [base]; [0:v] setpts=PTS At first the output image was pretty low-STARTPTSgrade, scale=320x240 [upperleft]; [1:v] setpts=PTSbut adding -STARTPTS, scale=320x240 [upperright]; [2b:v] setpts=PTS-STARTPTSv 3M fixed that up. Then, scale=320x240 [lowerleft]; [3:v] setpts=PTS-STARTPTSfor my real objective, scale=320x240 [lowerright]; [base][upperleft] overlay=shortest=1 [tmp1]; [tmp1][upperright] overlay=shortest=1:x=320 [tmp2]; [tmp2][lowerleft] overlay=shortest=1following this example I had found online:y=240 [tmp3]; [tmp3][lowerright]
ffmpeg -i 1.avi -i 2.avi -i 3.avi -i 4.avi -filter_complex "nullsrc=size=640x480 [base];
[0:v] setpts=PTS-STARTPTS, scale=320x240 [upperleft]; [1:v] setpts=PTS-STARTPTS, scale=320x240 [upperright]; [2:v] setpts=PTS-STARTPTS, scale=320x240 [lowerleft]; [3:v] setpts=PTS-STARTPTS, scale=320x240 [lowerright]; [base][upperleft]
overlay=shortest=1 [tmp1]; [tmp1][upperright] overlay=shortest=1:x=320 [tmp2]; [tmp2][lowerleft] overlay=shortest=1:y=240 [tmp3]; [tmp3][lowerright]
overlay=shortest=1:x=320:y=240" -c:v libx264 output.mkv
ffmpeg -i PatrShdY.wmv -i TJC.wmv -i TwSlRawD.wmv -i NightmrC.wmv -filter_complex "nullsrc=size=1056x594 [base]; [0:v] setpts=PTS-STARTPTS, scale=528x297 [ul]; [1:v] setpts=PTS-STARTPTS, scale=528x297 [ur]; [2:v] setpts=PTS-STARTPTS, scale=528x297 [ll]; [3:v] setpts=PTS-STARTPTS, scale=528x297 [lr]; [base][ul] overlay=shortest=1 [t1]; [t1][ur] overlay=shortest=1:x=528 [t2]; [t2][ll] overlay=shortest=1:y=297 [t3]; [t3][lr] overlay=shortest=1:x=528:y=297" -b:v 3M mos1.wmv
ffmpeg -i PatrShdY.wmv -i TJC.wmv -i TwSlRawD.wmv -i NightmrC.wmv -filter_complex "nullsrc=size=1056x594 [base];
[0:v] setpts=PTS-STARTPTS, scale=528x297 [ul]; [1:v] setpts=PTS-STARTPTS, scale=528x297 [ur]; [2:v] setpts=PTS-STARTPTS, scale=528x297 [ll]; [3:v] setpts=PTS-STARTPTS, scale=528x297 [lr];
[base][ul] overlay=shortest=1 [t1]; [t1][ur] overlay=shortest=1:x=528 [t2]; [t2][ll] overlay=shortest=1:y=297 [t3]; [t3][lr] overlay=shortest=1:x=528:y=297" -b:v 3M mos1.wmv