Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ffmpeg \
-i dance_addition.mp4 \
-i dance_and.mp4 \
-i dance_average.mp4 \
-i dance_blend.mp4 \
-i dance_burn.mp4 \
-i dance_darken.mp4 \
-i dance_difference.mp4 \
-i dance_divide.mp4 \
-i dance_dodge.mp4 \
-i dance_exclusion.mp4 \
-i dance_extremity.mp4 \
-i dance_freeze.mp4 \
-i dance_glow.mp4 \
-i dance_grainextract.mp4 \
-i dance_grainmerge.mp4 \
-i dance_hardlight.mp4 \
-i dance_hardmix.mp4 \
-i dance_heat.mp4 \
-i dance_lighten.mp4 \
-i dance_linearlight.mp4 \
-i dance_multiply.mp4 \
-i dance_multiply128.mp4 \
-i dance_negation.mp4 \
-i dance_normal.mp4 \
-i dance_or.mp4 \
-i dance_overlay.mp4 \
-i dance_phoenix.mp4 \
-i dance_pinlight.mp4 \
-i dance_reflect.mp4 \
-i dance_screen.mp4 \
-filter_complex " \
[0:v] setpts=PTS-STARTPTS, scale=qqvga [a0]; \
[1:v] setpts=PTS-STARTPTS, scale=qqvga [a1]; \
[2:v] setpts=PTS-STARTPTS, scale=qqvga [a2]; \
[3:v] setpts=PTS-STARTPTS, scale=qqvga [a3]; \
[4:v] setpts=PTS-STARTPTS, scale=qqvga [a4]; \
[5:v] setpts=PTS-STARTPTS, scale=qqvga [a5]; \
[6:v] setpts=PTS-STARTPTS, scale=qqvga [a6]; \
[7:v] setpts=PTS-STARTPTS, scale=qqvga [a7]; \
[8:v] setpts=PTS-STARTPTS, scale=qqvga [a8]; \
[9:v] setpts=PTS-STARTPTS, scale=qqvga [a9]; \
[10:v] setpts=PTS-STARTPTS, scale=qqvga [a10]; \
[11:v] setpts=PTS-STARTPTS, scale=qqvga [a11]; \
[12:v] setpts=PTS-STARTPTS, scale=qqvga [a12]; \
[13:v] setpts=PTS-STARTPTS, scale=qqvga [a13]; \
[14:v] setpts=PTS-STARTPTS, scale=qqvga [a14]; \
[15:v] setpts=PTS-STARTPTS, scale=qqvga [a15]; \
[16:v] setpts=PTS-STARTPTS, scale=qqvga [a16]; \
[17:v] setpts=PTS-STARTPTS, scale=qqvga [a17]; \
[18:v] setpts=PTS-STARTPTS, scale=qqvga [a18]; \
[19:v] setpts=PTS-STARTPTS, scale=qqvga [a19]; \
[20:v] setpts=PTS-STARTPTS, scale=qqvga [a20]; \
[21:v] setpts=PTS-STARTPTS, scale=qqvga [a21]; \
[22:v] setpts=PTS-STARTPTS, scale=qqvga [a22]; \
[23:v] setpts=PTS-STARTPTS, scale=qqvga [a23]; \
[24:v] setpts=PTS-STARTPTS, scale=qqvga [a24]; \
[25:v] setpts=PTS-STARTPTS, scale=qqvga [a25]; \
[26:v] setpts=PTS-STARTPTS, scale=qqvga [a26]; \
[27:v] setpts=PTS-STARTPTS, scale=qqvga [a27]; \
[28:v] setpts=PTS-STARTPTS, scale=qqvga [a28]; \
[29:v] setpts=PTS-STARTPTS, scale=qqvga [a29]; \
[a0][a1][a2][a3][a4][a5][a6][a7][a8][a9][a10][a11][a12][a13][a14][a15][a16][a17][a18][a19][a20][a21][a22][a23][a24][a25][a26][a27][a28][a29]xstack=inputs=30:layout=0_0|w0_0|w0+w1_0|w0+w1+w2_0|w0+w1+w2+w3_0|w0+w1+w2+w3+w4_0|0_h0|w0_h0|w0+w1_h0|w0+w1+w2_h0|w0+w1+w2+w3_h0|w0+w1+w2+w3+w4_h0|0_h0+h1|w0_h0+h1|w0+w1_h0+h1|w0+w1+w2_h0+h1|w0+w1+w2+w3_h0+h1|w0+w1+w2+w3+w4_h0+h1|0_h0+h1+h2|w0_h0+h1+h2|w0+w1_h0+h1+h2|w0+w1+w2_h0+h1+h2|w0+w1+w2+w3_h0+h1+h2|w0+w1+w2+w3+w4_h0+h1+h2|0_h0+h1+h2+h3|w0_h0+h1+h2+h3|w0+w1_h0+h1+h2+h3|w0+w1+w2_h0+h1+h2+h3|w0+w1+w2+w3_h0+h1+h2+h3|w0+w1+w2+w3+w4_h0+h1+h2+h3|0_h0+h1+h2+h3+h4|w0_h0+h1+h2+h3+h4|w0+w1_h0+h1+h2+h3+h4|w0+w1+w2_h0+h1+h2+h3+h4|w0+w1+w2+w3_h0+h1+h2+h3+h4[out] \
" \
-map "[out]" \
grid.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment