Command-Line

合併多個flv文件?

  • December 16, 2019

我可以使用 Linux 中的什麼工具來合併多個 flv 文件?文件已經有序,只需將它們完全無縫地放在一起

我還沒有測試以下內容,所以將其視為一些提示。

你可以使用ffmpeg. 從手冊

* You can put many streams of the same type in the output:

              ffmpeg -i test1.avi -i test2.avi -vcodec copy -acodec copy -vcodec copy -acodec copy test12.avi -newvideo -newaudio

      In addition to the first video and audio streams, the resulting output file
      test12.avi will contain the second video and the second audio stream found in the
      input streams list.

      The "-newvideo", "-newaudio" and "-newsubtitle" options have to be specified
      immediately after the name of the output file to which you want to add them.

您還可以使用mencoder例如:

mencoder -forceidx -ovc copy -oac pcm -o output.flv input1.flv input2.flv

另一種選擇是也許flvcat

你也可以試試avidemux-cli

引用自:https://unix.stackexchange.com/questions/45870