You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Calling transcode with a .mp3 output (with no options) results in an error:
Here's the relevant ffmpeg log:
Automatic encoder selection failed for output stream #0:0. Default encoder for format mp3 (codec mp3) is probably disabled. Please choose an encoder manually.
Error selecting an encoder for stream 0:0
I did some digging on this and found FFmpeg can be run with the command -acodec libmp3lame.
Adding that as the transcode options results in another error, with this log:
Unknown encoder 'libmp3lame'
Invalid encoder type 'libmp3lame'
To Reproduce
createWorker, load and write any audio file as input
I looked into another javascript implementation of the ffmpeg library which has transcoding to MP3 implemented (https://js-audio-converter.com/) and noticed they have --enable-encoder=libmp3lame into the configuration log, while this version of the library does not.
Does this mean I need to comple FFmpeg with Emscripten on my own and add that configuration line to the build?
Please let me know if I'm doing something wrong here.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Describe the bug
Calling
transcode
with a .mp3 output (with no options) results in an error:Here's the relevant ffmpeg log:
I did some digging on this and found FFmpeg can be run with the command
-acodec libmp3lame
.Adding that as the transcode options results in another error, with this log:
To Reproduce
createWorker
,load
andwrite
any audio file as inputtranscode
using.mp3
as the output extensionExpected behavior
worker.transcode
succeeds creating mp3 outputDesktop:
Additional context
I looked into another javascript implementation of the ffmpeg library which has transcoding to MP3 implemented (https://js-audio-converter.com/) and noticed they have
--enable-encoder=libmp3lame
into the configuration log, while this version of the library does not.Does this mean I need to comple FFmpeg with Emscripten on my own and add that configuration line to the build?
Please let me know if I'm doing something wrong here.
Thanks in advance.
The text was updated successfully, but these errors were encountered: