2012-03-30 60 views
0

我正在合併視頻,但沒有合併我的視頻。下面是代碼FFMPEG視頻木匠

exec(cat file1.flv file2.flv > trailer/output.flv);
exec("ffmpeg -i trailer/output.flv -sameq trailer/output.flv);

但是,如果文件1的大小爲1MB和file2是2MB和輸出來爲3MB。但它只播放文件1。

回答

1

以下:

ffmpeg -i input1.flv -i input2.flv {other parameters if needed} ouput.flv 

將加盟兩個文件給你。

+0

它只會輸出第一個flv視頻作爲輸出,而不是與其他視頻連接。 – 2012-08-16 08:30:17