Joining webm videos under Linux
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
add a comment |
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
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
add a comment |
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
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
linux video-editing webm
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
add a comment |
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
add a comment |
3 Answers
3
active
oldest
votes
As Lou mentioned, try mkvmerge like this (from command line):
mkvmerge -o output.webm -w file1.webm + file2.webm
add a comment |
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.
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
add a comment |
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
As Lou mentioned, try mkvmerge like this (from command line):
mkvmerge -o output.webm -w file1.webm + file2.webm
add a comment |
As Lou mentioned, try mkvmerge like this (from command line):
mkvmerge -o output.webm -w file1.webm + file2.webm
add a comment |
As Lou mentioned, try mkvmerge like this (from command line):
mkvmerge -o output.webm -w file1.webm + file2.webm
As Lou mentioned, try mkvmerge like this (from command line):
mkvmerge -o output.webm -w file1.webm + file2.webm
answered May 20 '12 at 19:55
Laurent SLaurent S
23137
23137
add a comment |
add a comment |
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Jan 11 at 5:50
Chris SlycordChris Slycord
1
1
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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