How to capture audio streaming with ffmpeg

一世执手 提交于 2021-02-08 04:57:07

问题


I'd like to capture audio streaming from a live radio on internet using ffmpeg.

If you have some examples or documentation it will be very appreciated.


回答1:


Assuming the protocol is HTTP and audio format is MP3 it can be as simple as:

ffmpeg -i http://server:port -c copy output.mp3

See:

  • FFmpeg Protocols Documentation
  • ffmpeg Documentation: Stream copy


来源:https://stackoverflow.com/questions/45239954/how-to-capture-audio-streaming-with-ffmpeg

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!