holzschu / a-Shell-commands

shell commands, pre-compiled to webAssembly, ready to use in a-Shell
554 stars 21 forks source link

【lame】audio encode decode #1

Closed suliveevil closed 2 years ago

suliveevil commented 4 years ago

Would you please add lame for a-Shell?

https://lame.sourceforge.io/ LAME is a high quality MPEG Audio Layer III (MP3) encoder licensed under the LGPL.

tydell commented 3 years ago

I agree, ffmpeg.wasm compiled with Lame MP3 support would be something great.

holzschu commented 3 years ago

So, I tried compiling lame with webAssembly. It does compile but it does not run (it crashes, silently, between main(arg, argv) and lame_main(gf, args, argv). @tydell, if I read you correctly, you don't want the lame binary, but the lame library, linked into ffmpeg for MP3 support?

tydell commented 3 years ago

@holzschu yes, i thought about library linked into ffmpeg for mp3 support

TwentyH commented 3 years ago

It also would like libmp3lame included in a-Shell, is there any progress on that please?

shifujun commented 2 years ago

libmp3lame will be very useful. Because iOS doesn't have the ability to export mp3 itself. Most of the apps available are not free.

shifujun commented 2 years ago

maybe https://github.com/ffmpegwasm/ffmpeg.wasm-core can be used. but I try run it with wasm ffmpeg-core.wasm, nothing output. maybe wasm have some special entry point?

holzschu commented 2 years ago

So, ffmpeg is now native in a-Shell, which makes porting LAME simpler. I've added it to the TODO list.

Emasoft commented 2 years ago

So, ffmpeg is now native in a-Shell, which makes porting LAME simpler. I've added it to the TODO list.

Any update on the libmp3lame encoder? I really need to encode some mp3...