如何简单地从 Adobe Flash Media Server 流式传输视频? (Linux)
我对如何开始使用 Adobe Flash Media Server 感到困惑。 在 Linux 上。
我需要做的就是:
- 接受 rtmp://myserver.com:1935/stream/static/abcdef0123456789 的请求
- 告诉 FMS $filename 位于 /var/media/ab/cd/ef/abcdef0123456789
- 让 FMS 发送 / var/media/ab/cd/ef/abcdef0123456789 到客户端。
- 如有必要,处理查找。
我知道这可能是 99% 的人们想要使用 FMS 的目的。 然而,我很难找到一个有效的例子。
你能告诉我类似“将 filename.asc 放入 $foldername 中并输入以下代码”吗?
谢谢!
I'm stumped on how to get started with Adobe Flash Media Server. On Linux.
All I need to do is:
- Accept a request for rtmp://myserver.com:1935/stream/static/abcdef0123456789
- Tell FMS that $filename is located at /var/media/ab/cd/ef/abcdef0123456789
- Have FMS send /var/media/ab/cd/ef/abcdef0123456789 to the client.
- Handle seeking if necessary.
I know that this is probably 99% of what people want to use FMS for. However, I'm having a hard time finding a working example.
Can you tell me something like "Put filename.asc in $foldername and enter the following code" please?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是 FMS 和配置存储的手册。
http://livedocs.adobe.com/ flashmediaserver/3.0/docs/help.html?content=03_configtasks_32.html#1204236
Here is the manual for FMS and configuring storage.
http://livedocs.adobe.com/flashmediaserver/3.0/docs/help.html?content=03_configtasks_32.html#1204236
FMS 安装文件夹内“应用程序”中的“vod”目录是一个不错的起点。 它的设置是为了轻松访问流,以便开箱即用地播放(无需创建自定义应用程序目录来进行流传输,就像我们过去必须做的那样)。
因此,将视频文件放在“vod”内的“media”目录中,然后使用它作为 FLVPlayback 组件的源来播放它:
rtmp://localhost/vod/abcd.flv
或者,如果访问您的服务器通过网络而不是本地:
rtmp://myFMSserverURL.com/vod/abcd.flv
The "vod" directory in "applications" inside of your FMS installation folder is a good place to start. It is set up for easy access to streams to play right out of the box (without having to create a custom application directory to stream from, as we had to do in the past).
So, put the video file in the "media" directory inside of "vod" and then use this as your source for your FLVPlayback component to play it back:
rtmp://localhost/vod/abcd.flv
or, if accessing your server over the web instead of locally:
rtmp://myFMSserverURL.com/vod/abcd.flv