我正在尝试使用FFMpeg将.ts 2文件合并成一个单一.mp4文件。为了在我的Android中使用它,我需要让连接虚拟App 方法工作。在我的安卓应用程序中,协议是不被识别的。因此,我正在尝试concat方法。
concat协议在我的windows pc中工作得很好:
ffmpeg -i "concat:s1.ts|s2.ts" -c copy -bsf:a aac_adtstoasc output.mp4但是,concat demuxer在我的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 'G@'
s1.ts: Invalid data found when processing input

有用于测试的文件:http://fourbigbrothers.com/s1.ts和http://fourbigbrothers.com/s2.ts
请帮帮忙。我最近一直在嚼我的大脑。
发布于 2017-03-07 12:37:13
concat demuxer需要一个文本文件作为输入,其中包含以下格式的视频名称:
file 's1.ts'
file 's2.ts'命令将是
ffmpeg -f concat -i list.txt -c copy -bsf:a aac_adtstoasc output2.mp4https://stackoverflow.com/questions/42648019
复制相似问题