Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable mp3 encoder #69

Open
thewh1teagle opened this issue Jun 15, 2024 · 8 comments
Open

Enable mp3 encoder #69

thewh1teagle opened this issue Jun 15, 2024 · 8 comments

Comments

@thewh1teagle
Copy link

I'm using avbuild in the (wip) project nova, which utilizes yt-dlp to download audio and video content.

When running yt-dlp with the arguments -x --audio-format mp3, it attempts to re-encode the audio to mp3 but then throws the following error:

ERROR: Postprocessing: audio conversion failed: Error opening output files: Encoder not found 

Upon investigating, I found that the ffmpeg build does not have mp3 support enabled, as indicated by the output of ffmpeg --codec.

Could you please enable mp3 support in ffmpeg?

Thanks!

@wang-bin
Copy link
Owner

wang-bin commented Jun 16, 2024

which platform? lite build or default build?

@thewh1teagle
Copy link
Author

thewh1teagle commented Jun 16, 2024

which platform? lite build or default build?

I tried with ffmpeg-6.1-windows-desktop-vs2022ltl-default on Windows, though I use it on macOS too with ffmpeg-6.1-macOS-default

@wang-bin
Copy link
Owner

on windows you can use mp3_mf encoder。on other platforms libmp3lame is required, the build system is legacy, i'm not sure when I will add it.

@thewh1teagle
Copy link
Author

on windows you can use mp3_mf encoder。on other platforms libmp3lame is required, the build system is legacy, i'm not sure when I will add it.

Can I help by creating a pull request? Having libmp3lame available everywhere would be helpful if it's not too heavy.

@wang-bin
Copy link
Owner

You can create a pull request in https://github.com/wang-bin/devpkgs , I build dependencies using cmake in that repo. mp3lame does not support cmake, so you have to write yourself in https://github.com/wang-bin/devpkgs/tree/main/projects

github actions will build the dependencies, then I will manually upload dependecies to https://sourceforge.net/projects/avbuild/files/dep/dep.7z/download , which will be used by avbuild. enabling libmp3lame in ffmpeg is quit easy.

@louis030195
Copy link

@wang-bin
Copy link
Owner

why mp3? why not aac?

@louis030195
Copy link

PS: i switched to aac few days ago

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants