用python录制流媒体并保存互联网广播 [英] Record streaming and saving internet radio in python

查看:215
本文介绍了用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.

最后一个项目是cron'ed脚本,它将录制一两个小时的互联网广播,然后将其传输到我的手机上以便在我上下班时播放. (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)

欢迎任何摘录或指针.

推荐答案

因此,我在修补和使用它之后发现了

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天全站免登陆