我希望用户能够将音频文件上传到我的服务器(例如,通过 HTTP.. 机制并不重要),然后我想将这些文件组装到播放列表中并通过实时 RTMP 流将它们流式传输到 Flash 小部件。
问题是:我想在音频文件完全上传之前开始流式传输。例如,如果用户上传一个小时长的 mp3,我希望它能够在上传第一分钟后就开始在 RTMP 流上播放。
我想支持 mp3 和 AAC,并希望避免重新编码文件。有没有办法让它与 Wowza、Flash Media Server 或其他一些聪明的解决方案一起工作?
非常感谢您的指点!
I want users to be able to upload audio files to my server (say, over HTTP.. mechanism doesn't matter much), and then I'd like to assemble those files into a playlist and stream them out over a live RTMP stream to a Flash widget.
The catch is: I'd like to begin streaming the audio files before they completely finish uploading. For example, if a user uploads an hour-long mp3, I'd like it to be able to begin playing on the RTMP stream once, say, the first minute has been uploaded.
I'd like to support mp3 and AAC, and would hope to avoid re-encoding the files. Is is there a way to make this work with Wowza, Flash Media Server, or some other clever solution?
Thanks a lot for any pointers!
发布评论
评论(1)
对于 Wowza,一种选择是手动将 mp3 文件解析为帧,然后将它们直接转储到发布者流中。下面是执行类似操作的示例:
http://www.wowzamedia.com/ forums/showthread.php?t=7100
除此之外,Wowza 不支持流式传输部分上传的文件:
http://www.wowzamedia.com/forums/showthread.php?p=33908
One option, with Wowza, is to manually parse the mp3 file into frames, and then dump them directly into a publisher stream. Here's an example of doing something similar:
http://www.wowzamedia.com/forums/showthread.php?t=7100
Other than that, Wowza does not support streaming partially uploaded files:
http://www.wowzamedia.com/forums/showthread.php?p=33908