How to merge videos by avconv?

前端 未结 10 2357
逝去的感伤
逝去的感伤 2021-01-30 17:12

I have several chunks in folder.

0001.mp4
0002.mp4
0003.mp4
...
0112.mp4

I would like to merge them into full.mp4

I tried to use:

10条回答
  •  没有蜡笔的小新
    2021-01-30 17:26

    After no getting an answer to the error message I was having with all of these similar answers:

    ~ avconv -i 'concat:' -c copy test.mp4
    avconv version 12.3, Copyright (c) 2000-2018 the Libav developers
      built on Jan 22 2019 21:47:11 with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
    concat:: Protocol not found
    

    I dug through some Google results, went into the bug tracker, and found these:

    • https://lists.libav.org/pipermail/libav-bugs/2017-October/005736.html
    • https://bugzilla.libav.org/show_bug.cgi?id=1026#c4
    • https://bugzilla.libav.org/show_bug.cgi?id=1083
    • https://bugzilla.libav.org/buglist.cgi?bug_status=all&content=concat&no_redirect=1&order=Importance&product=&query_format=specific

    Seems it was not only disabled at some point, but removed in version 12, but my build 12.3 on Mac 10.13.6 from Homebrew still has "concat" listed in the input protocols, and I see it in the documentation as well, thus that 1 outstanding bug report.

    I've had some luck using this command:

    cat *.VOB | avconv -i - -c copy test.mp4
    

提交回复
热议问题