trying to create a 4x2 grid from 8 videos using the terminal on a mac. The code I am using is not working:
ffmpeg -i input0.mov -i input1.mov -i input2.mov -i input3.mov -i input4.mov -i input5.mov -i input6.mov -i input7.mov -filter_complex "[0:v][1:v][2:v][3:v] [4:v] [5:v][6:v][7:v] xstack=inputs=8:layout=0_0|0_h0|w0_0|w0_h0|w0+w1_0|w0+w1_h0|w0+w1+w2_0|w0+w1+w2_h0[v]” -map "[v]" 4x2grid.mp4
Any ideas? I'm using ffmpeg version 4.3.1. And the error message is:
dquote>
Not sure why this is. I am relatively new to ffmpeg but can successfully create a 3x2 grid using the following code without the same message:
ffmpeg -i input0.mov -i input1.mov -i input2.mov -i input3.mov -i input4.mov -i input5.mov -filter_complex "[0:v][1:v][2:v][3:v] [4:v] [5:v] xstack=inputs=6:layout=0_0|w0_0|0_h0|w0_h0|w0+w3_0|w0+w3_h0[v]" -map "[v]" 3x2grid.mp4
I have also tried various other possibilities including the following code but with the same result:
ffmpeg -i input0.mov -i input1.mov -i input2.mov -i input3.mov -i input4.mov -i input5.mov -i input6.mov -i input7.mov -filter_complex "[0:v][1:v][2:v][3:v][4:v][5:v][6:v][7:v] xstack=inputs=8:layout=0_0|w0_0|0_h0|w0_h0|w0+w3_0|w0+w3_h0|w0+w3+w4_0|w0+w3+w4_h0[v]” -map "[v]" 4x2grid.mp4
Although I have tried to read the explanation here:
http://ffmpeg.org/ffmpeg-all.html#xstack
I am not sure I fully understand how to specify the desired layout configuration.
ffmpeg -i input0.mov -i input1.mov -i input2.mov -i input3.mov -i input4.mov -i input5.mov -filter_complex "[0:v][1:v][2:v][3:v] [4:v] [5:v] xstack=inputs=6:layout=0_0|w0_0|0_h0|w0_h0|w0+w3_0|w0+w3_h0[v]" -map "[v]" 3x2grid.mp4