通过互联网进行流媒体播放时出现 live555 问题

发布于 2024-12-06 03:49:34 字数 346 浏览 1 评论 0原文

我已经用 VS 编译了 live555 源代码,如果我尝试在本地流式传输文件

(例如

命令行: live555.exe myfile.mp3 VLC 连接字符串 rtsp://169.254.1.231:8554/myfile.mp3

但如果我尝试通过互联网流式传输,VLC 与 live555 通信,但 live555 不会向他发送数据

命令行 live555.exe myfile.mp3 VLC 连接字符串 rtsp://80.223.43.123:8554/myfile.mp3

我已经转发了 8554 端口(tcp/udp)并尝试禁用我的防火墙,但这并不能解决。

怎么样?

I've compiled with VS the live555 source code, and it works just fine if I try to stream locally a file

e.g.

Command Line:
live555.exe myfile.mp3
VLC Connection String
rtsp://169.254.1.231:8554/myfile.mp3

but if I try to stream it over the internet, VLC communicates with live555, but live555 won't send data to him

Command Line
live555.exe myfile.mp3
VLC Connection String
rtsp://80.223.43.123:8554/myfile.mp3

I've already forwarded the 8554 port (both tcp/udp) and tried to disable my firewall but this doesn't solve.

How is that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

空心空情空意 2024-12-13 03:49:34

故障排除:

  • 您是否通过 RTSP 流式传输 RTP:您是否检查了 VLC 中的“使用 RTSP (TCP) 上的 RTP”选项?您可以在 VLC 的首选项下检查这一点:输入/编解码器 -> 解复用器 -> RTP/RTSP。您可以尝试看看这是否可以解决问题,在这种情况下,可能是 UDP 被阻止。

  • 你说的是转发。您的意思是从一台机器到 RTSP 服务器的端口转发吗?如果是的话->如果您不通过 RTSP 执行 RTP,那么您还需要转发与 RTSP 端口不同的媒体端口(554 或 8554)。这些端口在 RTSP 设置期间交换。如果您通过 RTSP 进行 RTP,则媒体将在 554 或 8554 上交错,您不必担心这一点。

另外,另一个很好的调试工具是 live555 openRTSP 应用程序。您可以从命令行运行它,并为 RTP over RTSP 指定“-t”,这基本上就是 VLC 选项的作用。您可以为 HTTP 隧道等指定“-T”,它允许您将捕获的媒体数据包写入文件等。

To troubleshoot:

  • Are you streaming RTP over RTSP: have you checked the "Use RTP over RTSP (TCP)" option in VLC? You can check this in VLC under the preferences: input/codecs->Demuxers->RTP/RTSP. You can try to see if this solves the problem in which case it could be that UDP is blocked.

  • You speak of forwarding. Do you mean port forwarding from one machine to the RTSP server? if so-> if you are not doing RTP over RTSP, then you would also need to forward the ports for the media which is not the same as the RTSP port (554 or 8554). These ports are exchanged during the RTSP SETUP. If you do RTP over RTSP the media is interleaved over 554 or 8554 and you don't have to worry about this.

Also, another good debugging tool is the live555 openRTSP application. You can run it from the command line and specify "-t" for RTP over RTSP, which is basically what the VLC option does. You can specify "-T" for HTTP tunneling, etc and it allows you to write captured media packets to file, etc.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文