如何将Web音频流保存到文件(c ++ / java)

时间:2023-01-19 18:58:09

is there any lib or well known method to save audio web streaming ( web radio , mp3 streaming) to file programmatically ?

是否有任何lib或众所周知的方法来以编程方式将音频网络流媒体(网络电台,MP3流媒体)保存到文件?

2 个解决方案

#1


You could use libvlc from the VLC project. The wiki seems to be down right now though. The code is in c++.

您可以使用VLC项目中的libvlc。维基似乎现在正在倒下。代码是用c ++编写的。

EDIT: Found this and this via google cache.

编辑:通过谷歌缓存找到这个和这个。

#2


You can use the BASS library. It has plenty of support for attaching to network streams and decode them into MP3/WMA/OGG/AAC files. Developed in C, but could easily be used in C++ and many other languages.

您可以使用BASS库。它有足够的支持连接到网络流并将其解码为MP3 / WMA / OGG / AAC文件。用C语言开发,但可以很容易地用于C ++和许多其他语言。

#1


You could use libvlc from the VLC project. The wiki seems to be down right now though. The code is in c++.

您可以使用VLC项目中的libvlc。维基似乎现在正在倒下。代码是用c ++编写的。

EDIT: Found this and this via google cache.

编辑:通过谷歌缓存找到这个和这个。

#2


You can use the BASS library. It has plenty of support for attaching to network streams and decode them into MP3/WMA/OGG/AAC files. Developed in C, but could easily be used in C++ and many other languages.

您可以使用BASS库。它有足够的支持连接到网络流并将其解码为MP3 / WMA / OGG / AAC文件。用C语言开发,但可以很容易地用于C ++和许多其他语言。