I generate two test videos (the first a test pattern, the second solid red) with
ffmpeg -f lavfi -i testsrc=duration=5:size=1280x720:rate=30 pattern.mp4
ffmpeg -f lavfi -i [email protected]:duration=5:size=1280x720:r=10 red.mp4
If I blend these together with the solid red as background, I see the expected output: left half test pattern, right half solid red.
ffmpeg -i pattern.mp4 -i red.mp4 -filter_complex "[0:v][1:v]blend=all_expr=if(lt(X\,600)\,A\,B)" output.mp4
However, when blending in the opposite order, the output is not as expected, with the solid red "bleeding" over the entire image.
ffmpeg -i red.mp4 -i pattern.mp4 -filter_complex "[0:v][1:v]blend=all_expr=if(lt(X\,600)\,A\,B)" output.mp4
Why is the "A" video leaking into the "B" zone?