JavaScript - Convert webm to mp4
up vote
0
down vote
favorite
I have looked a bit around, but I couldn't find a proper library and everyone point at a different direction.
So my question is simple; is it possible to convert a media (webm) on a web page to mp4 and immediatly start the download ?
I'm making an extansion for firefox, but I have no idea how to do the conversion part.
javascript mp4 webm
|
show 1 more comment
up vote
0
down vote
favorite
I have looked a bit around, but I couldn't find a proper library and everyone point at a different direction.
So my question is simple; is it possible to convert a media (webm) on a web page to mp4 and immediatly start the download ?
I'm making an extansion for firefox, but I have no idea how to do the conversion part.
javascript mp4 webm
You should explain what problems you had with the different directions you got. Otherwise you will most likely get that exact same information again.
– t.niese
Nov 12 at 16:23
E.g searching forJavaScript webm to mp4
leads to github.com/muaz-khan/Ffmpeg.js as one of the first results. So what was the particular problem using/adapting that code?
– t.niese
Nov 12 at 16:29
Well, can you figure it out how he manage to convert an already existing webm video to mp4 ? Because I couldn't find out. I have been through his exemple there : github.com/muaz-khan/Ffmpeg.js/blob/master/webm-to-mp4.html
– Arkarr
Nov 12 at 16:35
By reading a file intovideoBlob
and pass that tofileReader.readAsArrayBuffer(videoBlob);
or by passing a File directly tofileReader.readAsArrayBuffer
. The converting works, but it will be slow because of the missing hardware acceleration.
– t.niese
Nov 12 at 17:02
And as I suspected, the first hints you got were the same you already know. If you want to have a useful answer then share your previous findings. And if you have a specific problem e.g. with ffmpeg.js then create a question where you explain what you tried (including your code) to get that to work, and what exact problem you are facing.
– t.niese
Nov 12 at 17:10
|
show 1 more comment
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have looked a bit around, but I couldn't find a proper library and everyone point at a different direction.
So my question is simple; is it possible to convert a media (webm) on a web page to mp4 and immediatly start the download ?
I'm making an extansion for firefox, but I have no idea how to do the conversion part.
javascript mp4 webm
I have looked a bit around, but I couldn't find a proper library and everyone point at a different direction.
So my question is simple; is it possible to convert a media (webm) on a web page to mp4 and immediatly start the download ?
I'm making an extansion for firefox, but I have no idea how to do the conversion part.
javascript mp4 webm
javascript mp4 webm
asked Nov 12 at 16:20
Arkarr
436
436
You should explain what problems you had with the different directions you got. Otherwise you will most likely get that exact same information again.
– t.niese
Nov 12 at 16:23
E.g searching forJavaScript webm to mp4
leads to github.com/muaz-khan/Ffmpeg.js as one of the first results. So what was the particular problem using/adapting that code?
– t.niese
Nov 12 at 16:29
Well, can you figure it out how he manage to convert an already existing webm video to mp4 ? Because I couldn't find out. I have been through his exemple there : github.com/muaz-khan/Ffmpeg.js/blob/master/webm-to-mp4.html
– Arkarr
Nov 12 at 16:35
By reading a file intovideoBlob
and pass that tofileReader.readAsArrayBuffer(videoBlob);
or by passing a File directly tofileReader.readAsArrayBuffer
. The converting works, but it will be slow because of the missing hardware acceleration.
– t.niese
Nov 12 at 17:02
And as I suspected, the first hints you got were the same you already know. If you want to have a useful answer then share your previous findings. And if you have a specific problem e.g. with ffmpeg.js then create a question where you explain what you tried (including your code) to get that to work, and what exact problem you are facing.
– t.niese
Nov 12 at 17:10
|
show 1 more comment
You should explain what problems you had with the different directions you got. Otherwise you will most likely get that exact same information again.
– t.niese
Nov 12 at 16:23
E.g searching forJavaScript webm to mp4
leads to github.com/muaz-khan/Ffmpeg.js as one of the first results. So what was the particular problem using/adapting that code?
– t.niese
Nov 12 at 16:29
Well, can you figure it out how he manage to convert an already existing webm video to mp4 ? Because I couldn't find out. I have been through his exemple there : github.com/muaz-khan/Ffmpeg.js/blob/master/webm-to-mp4.html
– Arkarr
Nov 12 at 16:35
By reading a file intovideoBlob
and pass that tofileReader.readAsArrayBuffer(videoBlob);
or by passing a File directly tofileReader.readAsArrayBuffer
. The converting works, but it will be slow because of the missing hardware acceleration.
– t.niese
Nov 12 at 17:02
And as I suspected, the first hints you got were the same you already know. If you want to have a useful answer then share your previous findings. And if you have a specific problem e.g. with ffmpeg.js then create a question where you explain what you tried (including your code) to get that to work, and what exact problem you are facing.
– t.niese
Nov 12 at 17:10
You should explain what problems you had with the different directions you got. Otherwise you will most likely get that exact same information again.
– t.niese
Nov 12 at 16:23
You should explain what problems you had with the different directions you got. Otherwise you will most likely get that exact same information again.
– t.niese
Nov 12 at 16:23
E.g searching for
JavaScript webm to mp4
leads to github.com/muaz-khan/Ffmpeg.js as one of the first results. So what was the particular problem using/adapting that code?– t.niese
Nov 12 at 16:29
E.g searching for
JavaScript webm to mp4
leads to github.com/muaz-khan/Ffmpeg.js as one of the first results. So what was the particular problem using/adapting that code?– t.niese
Nov 12 at 16:29
Well, can you figure it out how he manage to convert an already existing webm video to mp4 ? Because I couldn't find out. I have been through his exemple there : github.com/muaz-khan/Ffmpeg.js/blob/master/webm-to-mp4.html
– Arkarr
Nov 12 at 16:35
Well, can you figure it out how he manage to convert an already existing webm video to mp4 ? Because I couldn't find out. I have been through his exemple there : github.com/muaz-khan/Ffmpeg.js/blob/master/webm-to-mp4.html
– Arkarr
Nov 12 at 16:35
By reading a file into
videoBlob
and pass that to fileReader.readAsArrayBuffer(videoBlob);
or by passing a File directly to fileReader.readAsArrayBuffer
. The converting works, but it will be slow because of the missing hardware acceleration.– t.niese
Nov 12 at 17:02
By reading a file into
videoBlob
and pass that to fileReader.readAsArrayBuffer(videoBlob);
or by passing a File directly to fileReader.readAsArrayBuffer
. The converting works, but it will be slow because of the missing hardware acceleration.– t.niese
Nov 12 at 17:02
And as I suspected, the first hints you got were the same you already know. If you want to have a useful answer then share your previous findings. And if you have a specific problem e.g. with ffmpeg.js then create a question where you explain what you tried (including your code) to get that to work, and what exact problem you are facing.
– t.niese
Nov 12 at 17:10
And as I suspected, the first hints you got were the same you already know. If you want to have a useful answer then share your previous findings. And if you have a specific problem e.g. with ffmpeg.js then create a question where you explain what you tried (including your code) to get that to work, and what exact problem you are facing.
– t.niese
Nov 12 at 17:10
|
show 1 more comment
1 Answer
1
active
oldest
votes
up vote
0
down vote
I wouldn't recommend handling something as complicated as conversion by yourself, and instead would use something like https://cloudconvert.com/api as a background service, so your plugin will query that API upload/download, and output to the users browser.
Using a clients side api also has advantages. You don’t waste bandwidth, you don’t need to check how that service provider handles the data, you could use it even if that service provider is not reachable.
– t.niese
Nov 12 at 16:33
I am aware of that solution, but I rather don't want to be depend of it. Plus, you have to pay for API keys, wich is definitly a block on my project.
– Arkarr
Nov 12 at 16:36
Understood! Just listing a possibility as you didn't specify. I've not investigated any possible JS packages that handle conversion, but I'm curious!
– Kingsley
Nov 12 at 17:07
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
I wouldn't recommend handling something as complicated as conversion by yourself, and instead would use something like https://cloudconvert.com/api as a background service, so your plugin will query that API upload/download, and output to the users browser.
Using a clients side api also has advantages. You don’t waste bandwidth, you don’t need to check how that service provider handles the data, you could use it even if that service provider is not reachable.
– t.niese
Nov 12 at 16:33
I am aware of that solution, but I rather don't want to be depend of it. Plus, you have to pay for API keys, wich is definitly a block on my project.
– Arkarr
Nov 12 at 16:36
Understood! Just listing a possibility as you didn't specify. I've not investigated any possible JS packages that handle conversion, but I'm curious!
– Kingsley
Nov 12 at 17:07
add a comment |
up vote
0
down vote
I wouldn't recommend handling something as complicated as conversion by yourself, and instead would use something like https://cloudconvert.com/api as a background service, so your plugin will query that API upload/download, and output to the users browser.
Using a clients side api also has advantages. You don’t waste bandwidth, you don’t need to check how that service provider handles the data, you could use it even if that service provider is not reachable.
– t.niese
Nov 12 at 16:33
I am aware of that solution, but I rather don't want to be depend of it. Plus, you have to pay for API keys, wich is definitly a block on my project.
– Arkarr
Nov 12 at 16:36
Understood! Just listing a possibility as you didn't specify. I've not investigated any possible JS packages that handle conversion, but I'm curious!
– Kingsley
Nov 12 at 17:07
add a comment |
up vote
0
down vote
up vote
0
down vote
I wouldn't recommend handling something as complicated as conversion by yourself, and instead would use something like https://cloudconvert.com/api as a background service, so your plugin will query that API upload/download, and output to the users browser.
I wouldn't recommend handling something as complicated as conversion by yourself, and instead would use something like https://cloudconvert.com/api as a background service, so your plugin will query that API upload/download, and output to the users browser.
answered Nov 12 at 16:27
Kingsley
5471418
5471418
Using a clients side api also has advantages. You don’t waste bandwidth, you don’t need to check how that service provider handles the data, you could use it even if that service provider is not reachable.
– t.niese
Nov 12 at 16:33
I am aware of that solution, but I rather don't want to be depend of it. Plus, you have to pay for API keys, wich is definitly a block on my project.
– Arkarr
Nov 12 at 16:36
Understood! Just listing a possibility as you didn't specify. I've not investigated any possible JS packages that handle conversion, but I'm curious!
– Kingsley
Nov 12 at 17:07
add a comment |
Using a clients side api also has advantages. You don’t waste bandwidth, you don’t need to check how that service provider handles the data, you could use it even if that service provider is not reachable.
– t.niese
Nov 12 at 16:33
I am aware of that solution, but I rather don't want to be depend of it. Plus, you have to pay for API keys, wich is definitly a block on my project.
– Arkarr
Nov 12 at 16:36
Understood! Just listing a possibility as you didn't specify. I've not investigated any possible JS packages that handle conversion, but I'm curious!
– Kingsley
Nov 12 at 17:07
Using a clients side api also has advantages. You don’t waste bandwidth, you don’t need to check how that service provider handles the data, you could use it even if that service provider is not reachable.
– t.niese
Nov 12 at 16:33
Using a clients side api also has advantages. You don’t waste bandwidth, you don’t need to check how that service provider handles the data, you could use it even if that service provider is not reachable.
– t.niese
Nov 12 at 16:33
I am aware of that solution, but I rather don't want to be depend of it. Plus, you have to pay for API keys, wich is definitly a block on my project.
– Arkarr
Nov 12 at 16:36
I am aware of that solution, but I rather don't want to be depend of it. Plus, you have to pay for API keys, wich is definitly a block on my project.
– Arkarr
Nov 12 at 16:36
Understood! Just listing a possibility as you didn't specify. I've not investigated any possible JS packages that handle conversion, but I'm curious!
– Kingsley
Nov 12 at 17:07
Understood! Just listing a possibility as you didn't specify. I've not investigated any possible JS packages that handle conversion, but I'm curious!
– Kingsley
Nov 12 at 17:07
add a comment |
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%2fstackoverflow.com%2fquestions%2f53266185%2fjavascript-convert-webm-to-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
You should explain what problems you had with the different directions you got. Otherwise you will most likely get that exact same information again.
– t.niese
Nov 12 at 16:23
E.g searching for
JavaScript webm to mp4
leads to github.com/muaz-khan/Ffmpeg.js as one of the first results. So what was the particular problem using/adapting that code?– t.niese
Nov 12 at 16:29
Well, can you figure it out how he manage to convert an already existing webm video to mp4 ? Because I couldn't find out. I have been through his exemple there : github.com/muaz-khan/Ffmpeg.js/blob/master/webm-to-mp4.html
– Arkarr
Nov 12 at 16:35
By reading a file into
videoBlob
and pass that tofileReader.readAsArrayBuffer(videoBlob);
or by passing a File directly tofileReader.readAsArrayBuffer
. The converting works, but it will be slow because of the missing hardware acceleration.– t.niese
Nov 12 at 17:02
And as I suspected, the first hints you got were the same you already know. If you want to have a useful answer then share your previous findings. And if you have a specific problem e.g. with ffmpeg.js then create a question where you explain what you tried (including your code) to get that to work, and what exact problem you are facing.
– t.niese
Nov 12 at 17:10