Joining webm videos under Linux












7















How can I concatenate several .webm files (e.g. downloaded from youtube) into a single file? I've tried a simple cat followed by "mencoder -forceidx -oac copy -ovc copy ..." - didn't work. I'm using Linux.










share|improve this question

























  • That's gonna be hard – most videos are not meant for concatenating. You can somewhat do this with MPEG-2 and h.264, but no idea for WebM, unless you want to re-encode them.

    – slhck
    May 6 '12 at 9:39
















7















How can I concatenate several .webm files (e.g. downloaded from youtube) into a single file? I've tried a simple cat followed by "mencoder -forceidx -oac copy -ovc copy ..." - didn't work. I'm using Linux.










share|improve this question

























  • That's gonna be hard – most videos are not meant for concatenating. You can somewhat do this with MPEG-2 and h.264, but no idea for WebM, unless you want to re-encode them.

    – slhck
    May 6 '12 at 9:39














7












7








7


4






How can I concatenate several .webm files (e.g. downloaded from youtube) into a single file? I've tried a simple cat followed by "mencoder -forceidx -oac copy -ovc copy ..." - didn't work. I'm using Linux.










share|improve this question
















How can I concatenate several .webm files (e.g. downloaded from youtube) into a single file? I've tried a simple cat followed by "mencoder -forceidx -oac copy -ovc copy ..." - didn't work. I'm using Linux.







linux video-editing webm






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 6 '12 at 4:17









studiohack

11.3k1880114




11.3k1880114










asked May 6 '12 at 4:06









eugeug

579610




579610













  • That's gonna be hard – most videos are not meant for concatenating. You can somewhat do this with MPEG-2 and h.264, but no idea for WebM, unless you want to re-encode them.

    – slhck
    May 6 '12 at 9:39



















  • That's gonna be hard – most videos are not meant for concatenating. You can somewhat do this with MPEG-2 and h.264, but no idea for WebM, unless you want to re-encode them.

    – slhck
    May 6 '12 at 9:39

















That's gonna be hard – most videos are not meant for concatenating. You can somewhat do this with MPEG-2 and h.264, but no idea for WebM, unless you want to re-encode them.

– slhck
May 6 '12 at 9:39





That's gonna be hard – most videos are not meant for concatenating. You can somewhat do this with MPEG-2 and h.264, but no idea for WebM, unless you want to re-encode them.

– slhck
May 6 '12 at 9:39










3 Answers
3






active

oldest

votes


















8














As Lou mentioned, try mkvmerge like this (from command line):



mkvmerge -o output.webm -w file1.webm + file2.webm






share|improve this answer































    2














    Remember that the WebM container format is a strict subset of Matroska, so Matroska tools will work on WebM files. Try mkvmerge (which ships with mkvtoolnix) to re-mux files without re-encoding. The result may or may not be satisfactory for your purposes, but mkvtoolnix is mature and GPLv2-licensed, and well worth a try. There's even a mkvmerge GUI.






    share|improve this answer
























    • Thanks for this info - I think this is definitely on the right track. I've tried the GUI but just feeding the files to it seems to be creating an output with multiple video tracks, not a single video whose length is the sum of all the inputs..

      – eug
      May 9 '12 at 6:38






    • 2





      An mkvmerge GUI operation analogous to Laurent S's CLI solution above is to Add the first file and to Append the subsequent files in the series. Might not be obvious at first.

      – Lou Quillio
      Jul 9 '12 at 19:46



















    0














    If you use the mkvmerge GUI, you right-click in the "input file" section, then choose "Add Files" and select the first file from wherever you stored it.



    Now, you right-click on the first file in the "input file" section and select "append files".



    If, instead of choosing "append files", you chose "add files as additional parts", it won't work. This option is for combining files where the second/third/etc files don't have video headers (like if you used the Unix split command to just cut a file into chunks). If you chose that option with two WebM files, you wouldn't get any errors, but only the first video file will be present in the resulting MKV.






    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f421130%2fjoining-webm-videos-under-linux%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      8














      As Lou mentioned, try mkvmerge like this (from command line):



      mkvmerge -o output.webm -w file1.webm + file2.webm






      share|improve this answer




























        8














        As Lou mentioned, try mkvmerge like this (from command line):



        mkvmerge -o output.webm -w file1.webm + file2.webm






        share|improve this answer


























          8












          8








          8







          As Lou mentioned, try mkvmerge like this (from command line):



          mkvmerge -o output.webm -w file1.webm + file2.webm






          share|improve this answer













          As Lou mentioned, try mkvmerge like this (from command line):



          mkvmerge -o output.webm -w file1.webm + file2.webm







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 20 '12 at 19:55









          Laurent SLaurent S

          23137




          23137

























              2














              Remember that the WebM container format is a strict subset of Matroska, so Matroska tools will work on WebM files. Try mkvmerge (which ships with mkvtoolnix) to re-mux files without re-encoding. The result may or may not be satisfactory for your purposes, but mkvtoolnix is mature and GPLv2-licensed, and well worth a try. There's even a mkvmerge GUI.






              share|improve this answer
























              • Thanks for this info - I think this is definitely on the right track. I've tried the GUI but just feeding the files to it seems to be creating an output with multiple video tracks, not a single video whose length is the sum of all the inputs..

                – eug
                May 9 '12 at 6:38






              • 2





                An mkvmerge GUI operation analogous to Laurent S's CLI solution above is to Add the first file and to Append the subsequent files in the series. Might not be obvious at first.

                – Lou Quillio
                Jul 9 '12 at 19:46
















              2














              Remember that the WebM container format is a strict subset of Matroska, so Matroska tools will work on WebM files. Try mkvmerge (which ships with mkvtoolnix) to re-mux files without re-encoding. The result may or may not be satisfactory for your purposes, but mkvtoolnix is mature and GPLv2-licensed, and well worth a try. There's even a mkvmerge GUI.






              share|improve this answer
























              • Thanks for this info - I think this is definitely on the right track. I've tried the GUI but just feeding the files to it seems to be creating an output with multiple video tracks, not a single video whose length is the sum of all the inputs..

                – eug
                May 9 '12 at 6:38






              • 2





                An mkvmerge GUI operation analogous to Laurent S's CLI solution above is to Add the first file and to Append the subsequent files in the series. Might not be obvious at first.

                – Lou Quillio
                Jul 9 '12 at 19:46














              2












              2








              2







              Remember that the WebM container format is a strict subset of Matroska, so Matroska tools will work on WebM files. Try mkvmerge (which ships with mkvtoolnix) to re-mux files without re-encoding. The result may or may not be satisfactory for your purposes, but mkvtoolnix is mature and GPLv2-licensed, and well worth a try. There's even a mkvmerge GUI.






              share|improve this answer













              Remember that the WebM container format is a strict subset of Matroska, so Matroska tools will work on WebM files. Try mkvmerge (which ships with mkvtoolnix) to re-mux files without re-encoding. The result may or may not be satisfactory for your purposes, but mkvtoolnix is mature and GPLv2-licensed, and well worth a try. There's even a mkvmerge GUI.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered May 7 '12 at 18:42









              Lou QuillioLou Quillio

              813




              813













              • Thanks for this info - I think this is definitely on the right track. I've tried the GUI but just feeding the files to it seems to be creating an output with multiple video tracks, not a single video whose length is the sum of all the inputs..

                – eug
                May 9 '12 at 6:38






              • 2





                An mkvmerge GUI operation analogous to Laurent S's CLI solution above is to Add the first file and to Append the subsequent files in the series. Might not be obvious at first.

                – Lou Quillio
                Jul 9 '12 at 19:46



















              • Thanks for this info - I think this is definitely on the right track. I've tried the GUI but just feeding the files to it seems to be creating an output with multiple video tracks, not a single video whose length is the sum of all the inputs..

                – eug
                May 9 '12 at 6:38






              • 2





                An mkvmerge GUI operation analogous to Laurent S's CLI solution above is to Add the first file and to Append the subsequent files in the series. Might not be obvious at first.

                – Lou Quillio
                Jul 9 '12 at 19:46

















              Thanks for this info - I think this is definitely on the right track. I've tried the GUI but just feeding the files to it seems to be creating an output with multiple video tracks, not a single video whose length is the sum of all the inputs..

              – eug
              May 9 '12 at 6:38





              Thanks for this info - I think this is definitely on the right track. I've tried the GUI but just feeding the files to it seems to be creating an output with multiple video tracks, not a single video whose length is the sum of all the inputs..

              – eug
              May 9 '12 at 6:38




              2




              2





              An mkvmerge GUI operation analogous to Laurent S's CLI solution above is to Add the first file and to Append the subsequent files in the series. Might not be obvious at first.

              – Lou Quillio
              Jul 9 '12 at 19:46





              An mkvmerge GUI operation analogous to Laurent S's CLI solution above is to Add the first file and to Append the subsequent files in the series. Might not be obvious at first.

              – Lou Quillio
              Jul 9 '12 at 19:46











              0














              If you use the mkvmerge GUI, you right-click in the "input file" section, then choose "Add Files" and select the first file from wherever you stored it.



              Now, you right-click on the first file in the "input file" section and select "append files".



              If, instead of choosing "append files", you chose "add files as additional parts", it won't work. This option is for combining files where the second/third/etc files don't have video headers (like if you used the Unix split command to just cut a file into chunks). If you chose that option with two WebM files, you wouldn't get any errors, but only the first video file will be present in the resulting MKV.






              share|improve this answer




























                0














                If you use the mkvmerge GUI, you right-click in the "input file" section, then choose "Add Files" and select the first file from wherever you stored it.



                Now, you right-click on the first file in the "input file" section and select "append files".



                If, instead of choosing "append files", you chose "add files as additional parts", it won't work. This option is for combining files where the second/third/etc files don't have video headers (like if you used the Unix split command to just cut a file into chunks). If you chose that option with two WebM files, you wouldn't get any errors, but only the first video file will be present in the resulting MKV.






                share|improve this answer


























                  0












                  0








                  0







                  If you use the mkvmerge GUI, you right-click in the "input file" section, then choose "Add Files" and select the first file from wherever you stored it.



                  Now, you right-click on the first file in the "input file" section and select "append files".



                  If, instead of choosing "append files", you chose "add files as additional parts", it won't work. This option is for combining files where the second/third/etc files don't have video headers (like if you used the Unix split command to just cut a file into chunks). If you chose that option with two WebM files, you wouldn't get any errors, but only the first video file will be present in the resulting MKV.






                  share|improve this answer













                  If you use the mkvmerge GUI, you right-click in the "input file" section, then choose "Add Files" and select the first file from wherever you stored it.



                  Now, you right-click on the first file in the "input file" section and select "append files".



                  If, instead of choosing "append files", you chose "add files as additional parts", it won't work. This option is for combining files where the second/third/etc files don't have video headers (like if you used the Unix split command to just cut a file into chunks). If you chose that option with two WebM files, you wouldn't get any errors, but only the first video file will be present in the resulting MKV.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 11 at 5:50









                  Chris SlycordChris Slycord

                  1




                  1






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f421130%2fjoining-webm-videos-under-linux%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

                      Alcedinidae

                      Origin of the phrase “under your belt”?