在 python 中录制流媒体和保存网络广播 [英] Record streaming and saving internet radio in python

查看:32
本文介绍了在 python 中录制流媒体和保存网络广播的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个 python 片段来读取互联网广播流(.asx、.pls 等)并将其保存到文件中.

I am looking for a python snippet to read an internet radio stream(.asx, .pls etc) and save it to a file.

最终的项目是经过编排的脚本,它将录制一两个小时的网络广播,然后将其传输到我的手机,以便在我上下班途中播放.(我上下班途中 3g 有点不稳定)

The final project is cron'ed script that will record an hour or two of internet radio and then transfer it to my phone for playback during my commute. (3g is kind of spotty along my commute)

欢迎任何片段或指针.

推荐答案

所以在修补和玩它之后我发现 Streamripper 效果最佳.这是我使用的命令

So after tinkering and playing with it Ive found Streamripper to work best. This is the command i use

streamripper http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377200 -d ./streams -l 10800 -a tb$FNAME

这篇关于在 python 中录制流媒体和保存网络广播的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆