I do splitscreens with ffmpeg xstack - these get really large after some iterations, so I want to scale them down in the process. But I get the error "Filter scale has an unconnected output". This is my code (called from Python but for the filter it should make no difference):
subprocess.call(['ffmpeg', '-i', input_clips[j + 0], '-i', input_clips[j + 1], '-i', input_clips[j + 2], '-i', input_clips[j + 3], '-filter_complex', '[0:v]scale=3840:1920[v0];[1:v]scale=3840:1920[v1];[2:v]scale=3840:1920[v2];[3:v]scale=3840:1920[v3];[0:v][1:v][2:v][3:v]xstack=inputs=4:layout=0_0|0_h0|w0_0|w0_h0[v]', '-map', '[v]', '-c:v', 'libx265', '-crf', '12', '-preset', 'ultrafast', '-an', output])
I know the problem is in the in- and output syntax, but I just don't find any comprehensible explanation on this (it's too short to google): What do eg. [0:v] [v0] and [v] really mean?