Multiple video input to Video grid using vstack and hstack in ffmpeg -


i trying find working example ffmpeg combine 4 videos (2x2 stack) , 9 videos (3x3 stack) not same resolution.

for 2x2 example using documentation example works if videos same resolution. see command

ffmpeg -i top_l.mp4 -i top_r.mp4 -i bottom_l.mp4 -i bottom_r.mp4 -i audio.mp4 \ -filter_complex "[0:v][1:v]hstack[t];[2:v][3:v]hstack[b];[t][b]vstack[v]" \ -map "[v]" -an -sn -shortest -f flv rtmp://server/stream

this not work videos inputs following error.

[parsed_vstack_2 @ 0000000003245cc0] input 1 width 1440 not match input 0 width 1264. [parsed_vstack_2 @ 0000000003245cc0] failed configure output pad on parsed_vstack_2 error reinitializing filters! failed inject frame filter network: invalid argument error while decoding stream #3:0: invalid argument [parsed_vstack_2 @ 00000000033fec20] input 1 width 1440 not match input 0 width 1264. [parsed_vstack_2 @ 00000000033fec20] failed configure output pad on parsed_vstack_2 error reinitializing filters! error while filtering: invalid argument [parsed_vstack_2 @ 00000000033feb40] input 1 width 1440 not match input 0 width 1264. [parsed_vstack_2 @ 00000000033feb40] failed configure output pad on parsed_vstack_2 error reinitializing filters! failed inject frame filter network: invalid argument error while decoding stream #0:0: invalid argument [parsed_vstack_2 @ 00000000033fec20] input 1 width 1440 not match input 0 width 1264. [parsed_vstack_2 @ 00000000033fec20] failed configure output pad on parsed_vstack_2 error reinitializing filters! failed inject frame filter network: invalid argument error while decoding stream #1:0: invalid argument [parsed_vstack_2 @ 00000000033fece0] input 1 width 1440 not match input 0 width 1264. [parsed_vstack_2 @ 00000000033fece0] failed configure output pad on parsed_vstack_2 error reinitializing filters! failed inject frame filter network: invalid argument error while decoding stream #2:0: invalid argument [parsed_vstack_2 @ 00000000033ff1c0] input 1 width 1440 not match input 0 width 1264. [parsed_vstack_2 @ 00000000033ff1c0] failed configure output pad on parsed_vstack_2 error reinitializing filters! failed inject frame filter network: invalid argument error while decoding stream #3:0: invalid argument finishing stream 0:0 without data written it. [parsed_vstack_2 @ 00000000033fec20] input 1 width 1440 not match input 0 width 1264. [parsed_vstack_2 @ 00000000033fec20] failed configure output pad on parsed_vstack_2 error configuring filter graph conversion failed!

also if knows how 3x3 stack, feel free comment.


Comments

Popular posts from this blog

Formatting string according to pattern without regex in php -

ios - Align baselines with characters in large line heights with Text Kit -

c - zlib and gdi32 with OpenSSL? -