将rtsp视频流转换为http流

发布于 2024-08-23 18:58:22 字数 113 浏览 4 评论 0原文

我有一个实时视频流的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

多孤肩上扛 2024-08-30 18:58:22

我想说你最好的选择是使用 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/

稳稳的幸福 2024-08-30 18:58:22

下面提到的命令接收一个 rtsp 流并抛出一个带有 flv 的 httpstream ...

vlc -I http -vv camURL ":sout=#transcode{vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100}:http{mux=ffmpeg{mux=flv},dst=addr:availablePort}"

the command mentioned below takes in a rtsp stream and throws out a httpstream having a flv...

vlc -I http -vv camURL ":sout=#transcode{vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100}:http{mux=ffmpeg{mux=flv},dst=addr:availablePort}"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文