How to combine WebM and Opus to generate MP4?
up vote
3
down vote
favorite
I am using following command but it is giving wrong output.
ffmpeg -i video.webm -i audio.opus -c:v copy -c:a aac -strict experimental output.mp4
Output:
ffmpeg version 1.2.6-7:1.2.6-1~trusty1 Copyright (c) 2000-2014 the FFmpeg developers
built on Apr 26 2014 18:52:58 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --arch=amd64 --disable-stripping --enable-avresample --enable-pthreads --enable-runtime-cpudetect --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 53. 5.103 / 53. 5.103
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, matroska,webm, from 'video.webm':
Duration: 00:00:04.92, start: 0.000000, bitrate: 243 kb/s
Stream #0:0: Video: vp8, yuv420p, 640x480, SAR 1:1 DAR 4:3, 18 fps, 18 tbr, 1k tbn, 1k tbc (default)
Input #1, ogg, from 'audio.opus':
Duration: 00:00:05.16, start: 0.000000, bitrate: 32 kb/s
Stream #1:0: Audio: opus, 48000 Hz, stereo, s16
[mp4 @ 0x647940] track 0: could not find tag, codec not currently supported in container
Output #0, mp4, to 'output.mp4':
Metadata:
encoder : Lavf54.63.104
Stream #0:0: Video: vp8, yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 18 fps, 90k tbn, 1k tbc (default)
Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #1:0 -> #0:1 (libopus -> aac)
Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted
ffmpeg
add a comment |
up vote
3
down vote
favorite
I am using following command but it is giving wrong output.
ffmpeg -i video.webm -i audio.opus -c:v copy -c:a aac -strict experimental output.mp4
Output:
ffmpeg version 1.2.6-7:1.2.6-1~trusty1 Copyright (c) 2000-2014 the FFmpeg developers
built on Apr 26 2014 18:52:58 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --arch=amd64 --disable-stripping --enable-avresample --enable-pthreads --enable-runtime-cpudetect --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 53. 5.103 / 53. 5.103
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, matroska,webm, from 'video.webm':
Duration: 00:00:04.92, start: 0.000000, bitrate: 243 kb/s
Stream #0:0: Video: vp8, yuv420p, 640x480, SAR 1:1 DAR 4:3, 18 fps, 18 tbr, 1k tbn, 1k tbc (default)
Input #1, ogg, from 'audio.opus':
Duration: 00:00:05.16, start: 0.000000, bitrate: 32 kb/s
Stream #1:0: Audio: opus, 48000 Hz, stereo, s16
[mp4 @ 0x647940] track 0: could not find tag, codec not currently supported in container
Output #0, mp4, to 'output.mp4':
Metadata:
encoder : Lavf54.63.104
Stream #0:0: Video: vp8, yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 18 fps, 90k tbn, 1k tbc (default)
Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #1:0 -> #0:1 (libopus -> aac)
Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted
ffmpeg
1
Next time when posting about an ffmpeg problem, please include the full, uncut command line output too, not just the command itself.
– slhck
Feb 4 '15 at 10:03
Operation not permitted
hints at a filesystem permissions issue.
– Daniel B
Feb 4 '15 at 11:44
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I am using following command but it is giving wrong output.
ffmpeg -i video.webm -i audio.opus -c:v copy -c:a aac -strict experimental output.mp4
Output:
ffmpeg version 1.2.6-7:1.2.6-1~trusty1 Copyright (c) 2000-2014 the FFmpeg developers
built on Apr 26 2014 18:52:58 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --arch=amd64 --disable-stripping --enable-avresample --enable-pthreads --enable-runtime-cpudetect --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 53. 5.103 / 53. 5.103
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, matroska,webm, from 'video.webm':
Duration: 00:00:04.92, start: 0.000000, bitrate: 243 kb/s
Stream #0:0: Video: vp8, yuv420p, 640x480, SAR 1:1 DAR 4:3, 18 fps, 18 tbr, 1k tbn, 1k tbc (default)
Input #1, ogg, from 'audio.opus':
Duration: 00:00:05.16, start: 0.000000, bitrate: 32 kb/s
Stream #1:0: Audio: opus, 48000 Hz, stereo, s16
[mp4 @ 0x647940] track 0: could not find tag, codec not currently supported in container
Output #0, mp4, to 'output.mp4':
Metadata:
encoder : Lavf54.63.104
Stream #0:0: Video: vp8, yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 18 fps, 90k tbn, 1k tbc (default)
Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #1:0 -> #0:1 (libopus -> aac)
Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted
ffmpeg
I am using following command but it is giving wrong output.
ffmpeg -i video.webm -i audio.opus -c:v copy -c:a aac -strict experimental output.mp4
Output:
ffmpeg version 1.2.6-7:1.2.6-1~trusty1 Copyright (c) 2000-2014 the FFmpeg developers
built on Apr 26 2014 18:52:58 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --arch=amd64 --disable-stripping --enable-avresample --enable-pthreads --enable-runtime-cpudetect --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 53. 5.103 / 53. 5.103
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, matroska,webm, from 'video.webm':
Duration: 00:00:04.92, start: 0.000000, bitrate: 243 kb/s
Stream #0:0: Video: vp8, yuv420p, 640x480, SAR 1:1 DAR 4:3, 18 fps, 18 tbr, 1k tbn, 1k tbc (default)
Input #1, ogg, from 'audio.opus':
Duration: 00:00:05.16, start: 0.000000, bitrate: 32 kb/s
Stream #1:0: Audio: opus, 48000 Hz, stereo, s16
[mp4 @ 0x647940] track 0: could not find tag, codec not currently supported in container
Output #0, mp4, to 'output.mp4':
Metadata:
encoder : Lavf54.63.104
Stream #0:0: Video: vp8, yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 18 fps, 90k tbn, 1k tbc (default)
Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #1:0 -> #0:1 (libopus -> aac)
Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted
ffmpeg
ffmpeg
edited Feb 4 '15 at 10:12
bummi
1,50531421
1,50531421
asked Feb 4 '15 at 9:54
Anuj
12015
12015
1
Next time when posting about an ffmpeg problem, please include the full, uncut command line output too, not just the command itself.
– slhck
Feb 4 '15 at 10:03
Operation not permitted
hints at a filesystem permissions issue.
– Daniel B
Feb 4 '15 at 11:44
add a comment |
1
Next time when posting about an ffmpeg problem, please include the full, uncut command line output too, not just the command itself.
– slhck
Feb 4 '15 at 10:03
Operation not permitted
hints at a filesystem permissions issue.
– Daniel B
Feb 4 '15 at 11:44
1
1
Next time when posting about an ffmpeg problem, please include the full, uncut command line output too, not just the command itself.
– slhck
Feb 4 '15 at 10:03
Next time when posting about an ffmpeg problem, please include the full, uncut command line output too, not just the command itself.
– slhck
Feb 4 '15 at 10:03
Operation not permitted
hints at a filesystem permissions issue.– Daniel B
Feb 4 '15 at 11:44
Operation not permitted
hints at a filesystem permissions issue.– Daniel B
Feb 4 '15 at 11:44
add a comment |
3 Answers
3
active
oldest
votes
up vote
11
down vote
accepted
WebM containers typically contain VP8 or VP9 video. The MP4 container format however does not support VP8 or VP9 video, at least according to the registration authority.
In your command you are trying to copy the video bitstream, and obviously it will fail:
codec not currently supported in container
You have two options:
- Re-code the video to H.264 using
-c:v libx264
. - Choose another output container like Matroska (
.mkv
), but note that this will not be compatible for HTML5 video.
See also this MDN reference on supported HTML video formats and this Super User post on how to convert video for HTML5: What bunch of ffmpeg scripts do I need to get HTML5-compatible "Video for everybody"?
can you help me with the command to convert to any HTML supported video format?
– Anuj
Feb 4 '15 at 10:10
See here: superuser.com/questions/424015/…
– slhck
Feb 4 '15 at 10:12
1
Thanks I understood what you said. Command I am using now is:ffmpeg -i video.webm -i audio.opus -c:v copy -c:a libvorbis -strict experimental output.webm
– Anuj
Feb 4 '15 at 11:29
1
Yes, although you should even be able to do-c:a copy
since WebM supports Opus audio.-strict experimental
is only needed when using-c:a aac
.
– slhck
Feb 4 '15 at 11:55
add a comment |
up vote
2
down vote
ffmpeg -i video.webm -i audio.opus -c:v copy -c:a aac -strict experimental output.mp4
it should look something like this.
ffmpeg -i audio.opus -i vid.webm -c:v copy -c:a opus -strict experimental output6.webm
replace aac with opus and the two files around with opus being in front(i think), it should work.
add a comment |
up vote
0
down vote
A simple command with copy option with the conversion from webm to mp4 doesn't work because of difference in a codec which we don't touch during conversion. It is like simply changing the extension of the input file.
To make sure the output is played in H.264 players/televisions use
ffmpeg -y -i "input_video.webm" -i "input_audio.webm" "output_file.mp4" -c:v libx264 -c:a aac
Note that the execution will be very slow and add -preset veryfast
depending on your quality needs.
Ref: https://addpipe.com/blog/converting-webm-to-mp4-with-ffmpeg/
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',
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%2f873485%2fhow-to-combine-webm-and-opus-to-generate-mp4%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
up vote
11
down vote
accepted
WebM containers typically contain VP8 or VP9 video. The MP4 container format however does not support VP8 or VP9 video, at least according to the registration authority.
In your command you are trying to copy the video bitstream, and obviously it will fail:
codec not currently supported in container
You have two options:
- Re-code the video to H.264 using
-c:v libx264
. - Choose another output container like Matroska (
.mkv
), but note that this will not be compatible for HTML5 video.
See also this MDN reference on supported HTML video formats and this Super User post on how to convert video for HTML5: What bunch of ffmpeg scripts do I need to get HTML5-compatible "Video for everybody"?
can you help me with the command to convert to any HTML supported video format?
– Anuj
Feb 4 '15 at 10:10
See here: superuser.com/questions/424015/…
– slhck
Feb 4 '15 at 10:12
1
Thanks I understood what you said. Command I am using now is:ffmpeg -i video.webm -i audio.opus -c:v copy -c:a libvorbis -strict experimental output.webm
– Anuj
Feb 4 '15 at 11:29
1
Yes, although you should even be able to do-c:a copy
since WebM supports Opus audio.-strict experimental
is only needed when using-c:a aac
.
– slhck
Feb 4 '15 at 11:55
add a comment |
up vote
11
down vote
accepted
WebM containers typically contain VP8 or VP9 video. The MP4 container format however does not support VP8 or VP9 video, at least according to the registration authority.
In your command you are trying to copy the video bitstream, and obviously it will fail:
codec not currently supported in container
You have two options:
- Re-code the video to H.264 using
-c:v libx264
. - Choose another output container like Matroska (
.mkv
), but note that this will not be compatible for HTML5 video.
See also this MDN reference on supported HTML video formats and this Super User post on how to convert video for HTML5: What bunch of ffmpeg scripts do I need to get HTML5-compatible "Video for everybody"?
can you help me with the command to convert to any HTML supported video format?
– Anuj
Feb 4 '15 at 10:10
See here: superuser.com/questions/424015/…
– slhck
Feb 4 '15 at 10:12
1
Thanks I understood what you said. Command I am using now is:ffmpeg -i video.webm -i audio.opus -c:v copy -c:a libvorbis -strict experimental output.webm
– Anuj
Feb 4 '15 at 11:29
1
Yes, although you should even be able to do-c:a copy
since WebM supports Opus audio.-strict experimental
is only needed when using-c:a aac
.
– slhck
Feb 4 '15 at 11:55
add a comment |
up vote
11
down vote
accepted
up vote
11
down vote
accepted
WebM containers typically contain VP8 or VP9 video. The MP4 container format however does not support VP8 or VP9 video, at least according to the registration authority.
In your command you are trying to copy the video bitstream, and obviously it will fail:
codec not currently supported in container
You have two options:
- Re-code the video to H.264 using
-c:v libx264
. - Choose another output container like Matroska (
.mkv
), but note that this will not be compatible for HTML5 video.
See also this MDN reference on supported HTML video formats and this Super User post on how to convert video for HTML5: What bunch of ffmpeg scripts do I need to get HTML5-compatible "Video for everybody"?
WebM containers typically contain VP8 or VP9 video. The MP4 container format however does not support VP8 or VP9 video, at least according to the registration authority.
In your command you are trying to copy the video bitstream, and obviously it will fail:
codec not currently supported in container
You have two options:
- Re-code the video to H.264 using
-c:v libx264
. - Choose another output container like Matroska (
.mkv
), but note that this will not be compatible for HTML5 video.
See also this MDN reference on supported HTML video formats and this Super User post on how to convert video for HTML5: What bunch of ffmpeg scripts do I need to get HTML5-compatible "Video for everybody"?
edited Mar 20 '17 at 10:17
Community♦
1
1
answered Feb 4 '15 at 10:02
slhck
159k47437461
159k47437461
can you help me with the command to convert to any HTML supported video format?
– Anuj
Feb 4 '15 at 10:10
See here: superuser.com/questions/424015/…
– slhck
Feb 4 '15 at 10:12
1
Thanks I understood what you said. Command I am using now is:ffmpeg -i video.webm -i audio.opus -c:v copy -c:a libvorbis -strict experimental output.webm
– Anuj
Feb 4 '15 at 11:29
1
Yes, although you should even be able to do-c:a copy
since WebM supports Opus audio.-strict experimental
is only needed when using-c:a aac
.
– slhck
Feb 4 '15 at 11:55
add a comment |
can you help me with the command to convert to any HTML supported video format?
– Anuj
Feb 4 '15 at 10:10
See here: superuser.com/questions/424015/…
– slhck
Feb 4 '15 at 10:12
1
Thanks I understood what you said. Command I am using now is:ffmpeg -i video.webm -i audio.opus -c:v copy -c:a libvorbis -strict experimental output.webm
– Anuj
Feb 4 '15 at 11:29
1
Yes, although you should even be able to do-c:a copy
since WebM supports Opus audio.-strict experimental
is only needed when using-c:a aac
.
– slhck
Feb 4 '15 at 11:55
can you help me with the command to convert to any HTML supported video format?
– Anuj
Feb 4 '15 at 10:10
can you help me with the command to convert to any HTML supported video format?
– Anuj
Feb 4 '15 at 10:10
See here: superuser.com/questions/424015/…
– slhck
Feb 4 '15 at 10:12
See here: superuser.com/questions/424015/…
– slhck
Feb 4 '15 at 10:12
1
1
Thanks I understood what you said. Command I am using now is:
ffmpeg -i video.webm -i audio.opus -c:v copy -c:a libvorbis -strict experimental output.webm
– Anuj
Feb 4 '15 at 11:29
Thanks I understood what you said. Command I am using now is:
ffmpeg -i video.webm -i audio.opus -c:v copy -c:a libvorbis -strict experimental output.webm
– Anuj
Feb 4 '15 at 11:29
1
1
Yes, although you should even be able to do
-c:a copy
since WebM supports Opus audio. -strict experimental
is only needed when using -c:a aac
.– slhck
Feb 4 '15 at 11:55
Yes, although you should even be able to do
-c:a copy
since WebM supports Opus audio. -strict experimental
is only needed when using -c:a aac
.– slhck
Feb 4 '15 at 11:55
add a comment |
up vote
2
down vote
ffmpeg -i video.webm -i audio.opus -c:v copy -c:a aac -strict experimental output.mp4
it should look something like this.
ffmpeg -i audio.opus -i vid.webm -c:v copy -c:a opus -strict experimental output6.webm
replace aac with opus and the two files around with opus being in front(i think), it should work.
add a comment |
up vote
2
down vote
ffmpeg -i video.webm -i audio.opus -c:v copy -c:a aac -strict experimental output.mp4
it should look something like this.
ffmpeg -i audio.opus -i vid.webm -c:v copy -c:a opus -strict experimental output6.webm
replace aac with opus and the two files around with opus being in front(i think), it should work.
add a comment |
up vote
2
down vote
up vote
2
down vote
ffmpeg -i video.webm -i audio.opus -c:v copy -c:a aac -strict experimental output.mp4
it should look something like this.
ffmpeg -i audio.opus -i vid.webm -c:v copy -c:a opus -strict experimental output6.webm
replace aac with opus and the two files around with opus being in front(i think), it should work.
ffmpeg -i video.webm -i audio.opus -c:v copy -c:a aac -strict experimental output.mp4
it should look something like this.
ffmpeg -i audio.opus -i vid.webm -c:v copy -c:a opus -strict experimental output6.webm
replace aac with opus and the two files around with opus being in front(i think), it should work.
edited Feb 27 '15 at 4:20
bwDraco
36.5k36135177
36.5k36135177
answered Feb 27 '15 at 4:08
Ringo_0
211
211
add a comment |
add a comment |
up vote
0
down vote
A simple command with copy option with the conversion from webm to mp4 doesn't work because of difference in a codec which we don't touch during conversion. It is like simply changing the extension of the input file.
To make sure the output is played in H.264 players/televisions use
ffmpeg -y -i "input_video.webm" -i "input_audio.webm" "output_file.mp4" -c:v libx264 -c:a aac
Note that the execution will be very slow and add -preset veryfast
depending on your quality needs.
Ref: https://addpipe.com/blog/converting-webm-to-mp4-with-ffmpeg/
add a comment |
up vote
0
down vote
A simple command with copy option with the conversion from webm to mp4 doesn't work because of difference in a codec which we don't touch during conversion. It is like simply changing the extension of the input file.
To make sure the output is played in H.264 players/televisions use
ffmpeg -y -i "input_video.webm" -i "input_audio.webm" "output_file.mp4" -c:v libx264 -c:a aac
Note that the execution will be very slow and add -preset veryfast
depending on your quality needs.
Ref: https://addpipe.com/blog/converting-webm-to-mp4-with-ffmpeg/
add a comment |
up vote
0
down vote
up vote
0
down vote
A simple command with copy option with the conversion from webm to mp4 doesn't work because of difference in a codec which we don't touch during conversion. It is like simply changing the extension of the input file.
To make sure the output is played in H.264 players/televisions use
ffmpeg -y -i "input_video.webm" -i "input_audio.webm" "output_file.mp4" -c:v libx264 -c:a aac
Note that the execution will be very slow and add -preset veryfast
depending on your quality needs.
Ref: https://addpipe.com/blog/converting-webm-to-mp4-with-ffmpeg/
A simple command with copy option with the conversion from webm to mp4 doesn't work because of difference in a codec which we don't touch during conversion. It is like simply changing the extension of the input file.
To make sure the output is played in H.264 players/televisions use
ffmpeg -y -i "input_video.webm" -i "input_audio.webm" "output_file.mp4" -c:v libx264 -c:a aac
Note that the execution will be very slow and add -preset veryfast
depending on your quality needs.
Ref: https://addpipe.com/blog/converting-webm-to-mp4-with-ffmpeg/
answered Dec 7 at 5:13
Bhakki
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f873485%2fhow-to-combine-webm-and-opus-to-generate-mp4%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
1
Next time when posting about an ffmpeg problem, please include the full, uncut command line output too, not just the command itself.
– slhck
Feb 4 '15 at 10:03
Operation not permitted
hints at a filesystem permissions issue.– Daniel B
Feb 4 '15 at 11:44