2017-03-07 230 views
0

我試圖在一個單一的MP4文件這裏使用FFmpeg的2 .ts文件結合起來。我需要製作concat dumuxer方法才能在我的Android應用程序中使用它。在我的Android應用程序中,concat協議未被識別。所以我正在嘗試連續分流器方法FFmpeg的:Falied兩個MPEG TS文件合併成一個單一的MP4文件

CONCAT協議的Windows PC正常工作:

ffmpeg -f concat -i s1.ts -i s2.ts -c copy -bsf:a aac_adtstoasc output2.mp4 

Error : 
[concat @ 0000000000516e00] Line 1: unknown keyword '[email protected]' 
s1.ts: Invalid data found when processing input 

enter image description here

ffmpeg -i "concat:s1.ts|s2.ts" -c copy -bsf:a aac_adtstoasc output.mp4 

但是,在CONCAT分路沒有在我的Windows PC上工作

有用於測試的文件: http://fourbigbrothers.com/s1.tshttp://fourbigbrothers.com/s2.ts

請幫助。最近我一直咀嚼着我的大腦。

回答

1

的CONCAT分路器需要一個文本文件作爲輸入,其中包含以下列格式的影片名稱:

file 's1.ts' 
file 's2.ts' 

,命令將

ffmpeg -f concat -i list.txt -c copy -bsf:a aac_adtstoasc output2.mp4 
+0

感謝mulvya。我嘗試使用這種方法仍然得到相同的錯誤。 –

+0

適用於此。用'-report'運行你的命令並上傳報告。 – Mulvya

+0

嘗試使用-report。現在它是**第1行:未知關鍵字'G @' s1.ts:處理輸入時發現無效數據** –

相關問題