将rtsp视频流转换为http流
我有一个实时视频流的 rtsp URL,我想将其作为 HTTP 流进行访问。有人可以告诉我是否有任何组件可以放在我的服务器上来执行此操作?
我不知道如何实现这一点。请注意。
谢谢。
I have the rtsp URL for a live video stream which I would like to access as an HTTP stream. Can someone please tell me if there are any components out there which I can put on my server to do this?
I do not have any idea how I can implement this. Would appreciate a heads up.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我想说你最好的选择是使用 FFmpeg 或 VLC。两者都是开源软件,在爱好者中广泛使用,也作为多种不同服务的一部分。此外,两者都可以接收 RTSP 流并创建 HTTP 流(如果需要,可以进行实时转码)。
FFmpeg 的 RTSP 支持最近有所改进,但 IMO VLC 目前(2010 年 5 月)要好得多。检查网站上的文档以尝试命令行参数,以找到满足您需求的所需参数。 FFmpeg 和 VLC 非常灵活,除了从 RTSP 流代理到 HTTP 之外,您还可以用它们做很多事情。
FFmpeg:http://www.ffmpeg.org/
VLC:http://www.videolan.org/vlc/
I would say that your best bet is to use either FFmpeg or VLC. Both are open source software and are widely used among hobbyists and also as a part of multiple different services. Also both can take in RTSP streams and create an HTTP stream (with live transcoding if needed).
FFmpeg's RTSP support has improved as of lately, but IMO VLC is way better at the moment (May 2010). Check the documentation on the web sites for experimenting with the command-line parameters for finding the required ones to match your needs. FFmpeg and VLC are very flexible and you can do a whole lot of stuff with them in addition to proxying from RTSP stream to HTTP.
FFmpeg: http://www.ffmpeg.org/
VLC: http://www.videolan.org/vlc/
下面提到的命令接收一个 rtsp 流并抛出一个带有 flv 的 httpstream ...
the command mentioned below takes in a rtsp stream and throws out a httpstream having a flv...