我有一堆mkv文件,以及一个mka文件,每个文件都有相同的名称。我想把它们合并。我可以一个接一个地使用mkvmerge-gui,但是我想从终端中完成,因为脚本可以对每个文件执行。
我试过这个:
mkvmerge -o 001.mkv EP01.mkv +EP01.mka我明白了:
mkvmerge v7.1.0 ('Good Love') 64bit built on Jul 27 2014 13:10:18
'EP01.mkv': Using the demultiplexer for the format 'Matroska'.
'EP01.mka': Using the demultiplexer for the format 'Matroska'.
'EP01.mkv' track 0: Using the output module for the format 'AVC/h.264'.
'EP01.mkv' track 1: Using the output module for the format 'FLAC'.
'EP01.mkv' track 2: Using the output module for the format 'FLAC'.
'EP01.mka' track 0: Using the output module for the format 'FLAC'.
'EP01.mka' track 1: Using the output module for the format 'FLAC'.
'EP01.mka' track 2: Using the output module for the format 'AC3'.
'EP01.mka' track 3: Using the output module for the format 'PGS'.
'EP01.mka' track 4: Using the output module for the format 'PGS'.
No append mapping was given for the file no. 1 ('EP01.mka'). A default mapping of 1:0:0:0,1:1:0:1,1:2:0:2,1:3:0:3,1:4:0:4 will be used instead. Please keep that in mind if mkvmerge aborts with an error message regarding invalid '--append-to' options.
Error: The file no. 0 ('EP01.mkv') does not contain a track with the ID 3, or that track is not to be copied. Therefore no track can be appended to it. The argument for '--append-to' was invalid.谢谢你的帮助!
发布于 2014-11-10 19:31:45
您不需要在命令中使用+签名。它的意思和你想的完全不同。
mkvmerge -o output.mkv input.mkv input.mka这应该对你有好处。
加号将第二个文件的流附加到第一个文件。因此,如果您有两个视频文件,并且您想要创建一个文件,首先播放来自file1的视频,然后在相同的流中播放来自file2的视频,那么您可以使用加号。这个错误基本上告诉您,它在您的.mka文件中找不到任何视频,它没有什么可追加的。
https://askubuntu.com/questions/536738
复制相似问题