1

同じ解像度ではない 4 つのビデオ (2x2 スタック) と 9 つのビデオ (3x3 スタック) を結合する ffmpeg の実例を見つけようとしています。

2x2 の例では、現在ドキュメントの例を使用していますが、すべてのビデオが同じ解像度である場合にのみ機能します。コマンドを参照

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

これは、次のエラーで私のビデオ入力では機能しません。

[Parsed_vstack_2 @ 0000000003245cc0] Input 1 width 1440 does not match input 0 width 1264. [Parsed_vstack_2 @ 0000000003245cc0] Failed to configure output pad on Parsed_vstack_2 Error reinitializing filters! Failed to inject frame into filter network: Invalid argument Error while decoding stream #3:0: Invalid argument [Parsed_vstack_2 @ 00000000033fec20] Input 1 width 1440 does not match input 0 width 1264. [Parsed_vstack_2 @ 00000000033fec20] Failed to configure output pad on Parsed_vstack_2 Error reinitializing filters! Error while filtering: Invalid argument [Parsed_vstack_2 @ 00000000033feb40] Input 1 width 1440 does not match input 0 width 1264. [Parsed_vstack_2 @ 00000000033feb40] Failed to configure output pad on Parsed_vstack_2 Error reinitializing filters! Failed to inject frame into filter network: Invalid argument Error while decoding stream #0:0: Invalid argument [Parsed_vstack_2 @ 00000000033fec20] Input 1 width 1440 does not match input 0 width 1264. [Parsed_vstack_2 @ 00000000033fec20] Failed to configure output pad on Parsed_vstack_2 Error reinitializing filters! Failed to inject frame into filter network: Invalid argument Error while decoding stream #1:0: Invalid argument [Parsed_vstack_2 @ 00000000033fece0] Input 1 width 1440 does not match input 0 width 1264. [Parsed_vstack_2 @ 00000000033fece0] Failed to configure output pad on Parsed_vstack_2 Error reinitializing filters! Failed to inject frame into filter network: Invalid argument Error while decoding stream #2:0: Invalid argument [Parsed_vstack_2 @ 00000000033ff1c0] Input 1 width 1440 does not match input 0 width 1264. [Parsed_vstack_2 @ 00000000033ff1c0] Failed to configure output pad on Parsed_vstack_2 Error reinitializing filters! Failed to inject frame into filter network: Invalid argument Error while decoding stream #3:0: Invalid argument Finishing stream 0:0 without any data written to it. [Parsed_vstack_2 @ 00000000033fec20] Input 1 width 1440 does not match input 0 width 1264. [Parsed_vstack_2 @ 00000000033fec20] Failed to configure output pad on Parsed_vstack_2 Error configuring filter graph Conversion failed!

また、3x3 スタックのやり方を知っている人がいたら、遠慮なくコメントしてください。

4

0 に答える 0