使用 VLC 将文件流式传输为 RTSP [英] Stream file as RTSP using VLC

查看:72
本文介绍了使用 VLC 将文件流式传输为 RTSP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个可以将 mp3 文件流式传输到另一台设备的服务器.我打算使用 VLC.我查看了 VLC 文档,并对执行此操作的方法感到困惑.我找到了这个链接,http://www.videolan.org/doc/stream-howto/en/ch07.html 告诉如何将文件流式传输到设备.但是,我想要做的是创建一个仅流式传输音频的服务器,并允许其他客户端连接到它并开始播放流式传输的内容.如何使用 VLC 做到这一点?

I need to create a server that can stream an mp3 file to another device. I am planning on using VLC. I looked at the VLC documentation and am confused about the way forward to do this. I found this link, http://www.videolan.org/doc/streaming-howto/en/ch07.html which tells how to stream a file to a device. However, what I want to do is create a server that is just streaming audio and will allow other clients to connect to it and start playing what is streamed. How can this be done with VLC?

推荐答案

如果您可以只使用 RTP 流,请尝试 https://wiki.videolan.org/Documentation:Streaming_HowTo_New.这绝对是最简单的方法,我最近才用.

If you are OK with using just an RTP stream then try https://wiki.videolan.org/Documentation:Streaming_HowTo_New. This is the absolute simplest method, and I used it very recently.

如果您想设置一个成熟的按需 RTSP 服务器,请使用:http://juliensimon.blogspot.com/2008/12/howto-setting-up-vod-server-with-vlc.html.

If you would like to setup a full-fledged on-demand RTSP server then use this: http://juliensimon.blogspot.com/2008/12/howto-setting-up-vod-server-with-vlc.html .

这篇关于使用 VLC 将文件流式传输为 RTSP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆