- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
有没有办法让 PHP(或在 Linux 网络服务器上运行的任何东西)记录(电台的)音频流?是的,我找了很多,但我似乎找不到类似的东西,尽管我确信我不可能是第一个 - 对吧?
我的目标是录制一个音频流,然后在听众打开时切掉其中的一部分,这样他们之后就可以听到自己(以及家人、 friend 等)的声音。
所以录制、上传、剪辑和发布会更好,因为我有一些志愿者愿意做剪辑部分(我认为我可以处理)。也许有我还没有找到的服务?
感谢任何回复。
最佳答案
我现在在这个网站上找到了它:http://www.freelists.org/post/darkice/Using-cron-and-wget-for-hourly-archiving-Was-Ogg-Recording-and-Cutting,1
以防万一:
The following bash shell is launched on the hour by cron:
#!/bin/bash
#Go to the archive directory:
cd /aa/icecast/archive
#Stop the archiving for the last hour:
kill `cat archivePID`
#Start recording in the background (&) a new archive file of the stream "http://127.0.0.1:8000/stream.ogg":
wget http://127.0.0.1:8000/stream.ogg &
#Get the Process IS for the job we just started:
echo $! > archivePID
#Wait a few seconds to make sure the job has started and the archive file has been opened:
sleep 5
#Rename the current archive file to a name based on the date and time (YYYYMMDD-HHMM.ogg):
mv stream.ogg `date +%Y%m%d-%H%M.ogg`
This runs on our icecast box and picks up the stream from icecast via the local IP 127.0.0.1, but it could run from any Internet-connected box (by changing 127.0.0.1:8000 to the url of the stream).
Wget opens an output file with the same name as the input stream ("stream.ogg" in our case). But a few seconds later, the script renames the file to a name based on the current date and time. (Wget is oblivious to this since it is writing to an open file handle rather than the file name.)
Note that our stream is in ogg format and is named "stream.ogg", and the shell script reflects that. If your stream is in mp3, or is named anything other than stream.ogg, you'll need to change the script accordingly (specifically the wget command and the mv command).
Hope that helps.
Regards,
John
我已经通过录制 AAC(ASX 流发送 AAC 数据?- 不熟悉这些东西的工作原理或定义)和 MP3 流对其进行了测试。两者都录制得很好,VLC 播放也没有问题。然而,ASX 文件似乎损坏太多(从逻辑上讲,因为它是一个流,你参与其中)无法被已知的网络播放器(例如 JWPlayer/Longtail)播放。但 MP3 流的录制部分似乎不受此影响。
使用 MP3 与 AAC 的缺点 == 45Mb 与 12Mb(每小时 @96kbps - 我猜)。
希望能帮助别人解决 Johns 的问题。
关于php - 使用网络服务器录制广播/音频流 (asx/asf),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9010984/
我正在尝试抓取此静态页面上找到的表格: http://www.asx.com.au/prices/targetratetracker.htm 使用简单的基于 UI 的抓取工具发现 here进行测试,您
我有通过 Android 应用程序播放 Asx 流的需求 我看过Android文档,他们好像不支持Windows Media流 有什么解决办法吗?以前有人这样做过吗?如果是,是否有可用的源代码?或者实
我一直在尝试流式传输 .asx 文件,但没有成功,媒体播放器返回错误。 这是我的代码 MediaPlayer mp = new MediaPlayer(); MediaPlayer
有没有办法让 PHP(或在 Linux 网络服务器上运行的任何东西)记录(电台的)音频流?是的,我找了很多,但我似乎找不到类似的东西,尽管我确信我不可能是第一个 - 对吧? 我的目标是录制一个音频流,
我需要限制多个用户登录我的系统。我在 global.asax 中使用 Application_OnPostAuthenticateRequest 事件来查看是否有人登录。它工作得非常好。 但是 CSS
我正在尝试从雅虎财经提取股票市场数据,以下是链接 https://au.finance.yahoo.com/quote/ABP.AX/history?p=ABP.AX 我的代码如下 import pa
有人可以解释一下什么时候使用 parallel add/subtract ARM instructions ASX and/or SAX 是有益的吗? ?在什么情况/算法下需要交换半字,然后添加并减去
按照目前的情况,这个问题不适合我们的问答形式。我们希望答案得到事实、引用或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the
我正在开发一款音乐流应用程序。 我可以使用描述的方法流式传输 mp3 here 。有谁知道使用 Core Audio 或其他框架流式传输其他格式(ASX、RTSP 或 mms)的方法。 提前致谢。 最
我正在构建一个 Android 应用程序,它基本上是最多 10 个本地电台的目录。该应用程序应允许用户收听任何广播。我为这些广播获得的所有信息都是一个流 URL(pls/asx、/m3u/mp3)。我
我正在尝试从 https://finance.yahoo.com/ 中提取“远期股息和 yield ”值将不同市场的多家公司导入 Google 表格。 这是成功的: =IMPORTXML("https
我正在尝试创建一个全局过滤器,如果用户登录,它将为我的每个操作运行。从我读到的内容来看,有两个必要的步骤。首先,在 Global.asx 文件中添加新过滤器。 public class MvcAppl
我是一名优秀的程序员,十分优秀!