我正在合并视频,但没有合并我的视频。这是代码
exec(cat file1.flv file2.flv > trailer/output.flv);
exec("ffmpeg -i trailer/output.flv -sameq trailer/output.flv);
但如果 file1 的大小为 1MB,file2 为 2MB,输出为 3MB。但它只播放file1。
最佳答案
以下:
ffmpeg -i input1.flv -i input2.flv {other parameters if needed} ouput.flv
将为您加入两个文件。
关于php - FFMPEG 视频连接器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9943185/