In the latest tutorial "How to make a video mosaic wall VFX | 2x2 3x3 4x4 quadrants matrix video effect #ffmpeg#FFMPEGGuy" available at https://youtu.be/AJ3savN4s4w, the last command was so long that it busted the 5000 characters limit of the YouTube description.
The details of command 3 for 16 quadrants is therefore posted below:
with:
* -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 = Reads 17 files…
* -filter_complex "[1:v]scale=iw/4:-1[ttoplleft];[2:v]scale=iw/4:-1[ttopleft];[3:v]scale=iw/4:-1[ttopright];[4:v]scale=iw/4:-1[ttoprright];[5:v]scale=iw/4:-1[toplleft];[6:v]scale=iw/4:-1[topleft];[7:v]scale=iw/4:-1[topright];[8:v]scale=iw/4:-1[toprright];[9:v]scale=iw/4:-1[bottomlleft];[10:v]scale=iw/4:-1[bottomleft];[11:v]scale=iw/4:-1[bottomright];[12:v]scale=iw/4:-1[bottomrright];[13:v]scale=iw/4:-1[bbottomlleft];[14:v]scale=iw/4:-1[bbottomleft];[15:v]scale=iw/4:-1[bbottomright];[16:v]scale=iw/4:-1[bbottomrright] = … and scales all down to 1/4 of their original sizes (except the first video)…
* [0:v][ttoplleft]overlay=0:0[tmp];[tmp][ttopleft]overlay=W/4:0[tmp2];[tmp2][ttopright]overlay=W/2:0[tmp3];[tmp3][ttoprright]overlay=3*W/4:0[tmp4];[tmp4][toplleft]overlay=0:H/4[tmp5];[tmp5][topleft]overlay=W/4:H/4[tmp6];[tmp6][topright]overlay=W/2:H/4[tmp7];[tmp7][toprright]overlay=3*W/4:H/4[tmp8];[tmp8][bottomlleft]overlay=0:H/2[tmp9];[tmp9][bottomleft]overlay=W/4:H/2[tmp10];[tmp10][bottomright]overlay=W/2:H/2[tmp11];[tmp11][bottomrright]overlay=3*W/4:H/2[tmp12];[tmp12][bbottomlleft]overlay=0:3*H/4[tmp13];[tmp13][bbottomleft]overlay=W/4:3*H/4[tmp14];[tmp14][bbottomright]overlay=W/2:3*H/4[tmp15];[tmp15][bbottomrright]overlay=3*W/4:3*H/4[video]" = … overlays everything in the right place…
* -map 0:a -map "[video]" output03.mp4 = … and outputs to result to file “output03.mp4” (keeping the audio of the first file)
The FFMPEG guy
In the latest tutorial "How to make a video mosaic wall VFX | 2x2 3x3 4x4 quadrants matrix video effect #ffmpeg #FFMPEGGuy" available at https://youtu.be/AJ3savN4s4w, the last command was so long that it busted the 5000 characters limit of the YouTube description.
The details of command 3 for 16 quadrants is therefore posted below:
❸ 16 quadrants (4 x 4 videos)
→ ffmpeg -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -filter_complex "[1:v]scale=iw/4:-1[ttoplleft];[2:v]scale=iw/4:-1[ttopleft];[3:v]scale=iw/4:-1[ttopright];[4:v]scale=iw/4:-1[ttoprright];[5:v]scale=iw/4:-1[toplleft];[6:v]scale=iw/4:-1[topleft];[7:v]scale=iw/4:-1[topright];[8:v]scale=iw/4:-1[toprright];[9:v]scale=iw/4:-1[bottomlleft];[10:v]scale=iw/4:-1[bottomleft];[11:v]scale=iw/4:-1[bottomright];[12:v]scale=iw/4:-1[bottomrright];[13:v]scale=iw/4:-1[bbottomlleft];[14:v]scale=iw/4:-1[bbottomleft];[15:v]scale=iw/4:-1[bbottomright];[16:v]scale=iw/4:-1[bbottomrright];[0:v][ttoplleft]overlay=0:0[tmp];[tmp][ttopleft]overlay=W/4:0[tmp2];[tmp2][ttopright]overlay=W/2:0[tmp3];[tmp3][ttoprright]overlay=3*W/4:0[tmp4];[tmp4][toplleft]overlay=0:H/4[tmp5];[tmp5][topleft]overlay=W/4:H/4[tmp6];[tmp6][topright]overlay=W/2:H/4[tmp7];[tmp7][toprright]overlay=3*W/4:H/4[tmp8];[tmp8][bottomlleft]overlay=0:H/2[tmp9];[tmp9][bottomleft]overlay=W/4:H/2[tmp10];[tmp10][bottomright]overlay=W/2:H/2[tmp11];[tmp11][bottomrright]overlay=3*W/4:H/2[tmp12];[tmp12][bbottomlleft]overlay=0:3*H/4[tmp13];[tmp13][bbottomleft]overlay=W/4:3*H/4[tmp14];[tmp14][bbottomright]overlay=W/2:3*H/4[tmp15];[tmp15][bbottomrright]overlay=3*W/4:3*H/4[video]" -map 0:a -map "[video]" output03.mp4
with:
* -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 -i input01.mp4 = Reads 17 files…
* -filter_complex "[1:v]scale=iw/4:-1[ttoplleft];[2:v]scale=iw/4:-1[ttopleft];[3:v]scale=iw/4:-1[ttopright];[4:v]scale=iw/4:-1[ttoprright];[5:v]scale=iw/4:-1[toplleft];[6:v]scale=iw/4:-1[topleft];[7:v]scale=iw/4:-1[topright];[8:v]scale=iw/4:-1[toprright];[9:v]scale=iw/4:-1[bottomlleft];[10:v]scale=iw/4:-1[bottomleft];[11:v]scale=iw/4:-1[bottomright];[12:v]scale=iw/4:-1[bottomrright];[13:v]scale=iw/4:-1[bbottomlleft];[14:v]scale=iw/4:-1[bbottomleft];[15:v]scale=iw/4:-1[bbottomright];[16:v]scale=iw/4:-1[bbottomrright] = … and scales all down to 1/4 of their original sizes (except the first video)…
* [0:v][ttoplleft]overlay=0:0[tmp];[tmp][ttopleft]overlay=W/4:0[tmp2];[tmp2][ttopright]overlay=W/2:0[tmp3];[tmp3][ttoprright]overlay=3*W/4:0[tmp4];[tmp4][toplleft]overlay=0:H/4[tmp5];[tmp5][topleft]overlay=W/4:H/4[tmp6];[tmp6][topright]overlay=W/2:H/4[tmp7];[tmp7][toprright]overlay=3*W/4:H/4[tmp8];[tmp8][bottomlleft]overlay=0:H/2[tmp9];[tmp9][bottomleft]overlay=W/4:H/2[tmp10];[tmp10][bottomright]overlay=W/2:H/2[tmp11];[tmp11][bottomrright]overlay=3*W/4:H/2[tmp12];[tmp12][bbottomlleft]overlay=0:3*H/4[tmp13];[tmp13][bbottomleft]overlay=W/4:3*H/4[tmp14];[tmp14][bbottomright]overlay=W/2:3*H/4[tmp15];[tmp15][bbottomrright]overlay=3*W/4:3*H/4[video]" = … overlays everything in the right place…
* -map 0:a -map "[video]" output03.mp4 = … and outputs to result to file “output03.mp4” (keeping the audio of the first file)
2 years ago | [YT] | 0
View 6 replies
The FFMPEG guy
The VCR .png images used in our VCR VFX tutorial are available below (part 2):
3 years ago | [YT] | 0
View 0 replies
The FFMPEG guy
The VCR .png images used in our VCR VFX tutorial are available below (part 1):
3 years ago | [YT] | 2
View 0 replies