开发者

How can I convert wav to MP3 programmatically in C++? [closed]

开发者 https://www.devze.com 2022-12-27 08:18 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this
Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 8 years ago.

开发者_如何学Go Improve this question

How can I convert wav to MP3 programatically in C++?


You would use an encoder, preferably as a pre-made library as doing your own is a bit of an undertaking.

See this question for an example of how to use the LAME open source encoder.


FFMpeg ( http://ffmpeg.org/ ) does this from a UNIX command line. So if you can open a pipe to the command line in C++, you can use ffmpeg for the conversion.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号