简体   繁体   English

通过互联网流媒体时遇到live555问题

[英]live555 problem while streaming over the internet

I've compiled with VS the live555 source code, and it works just fine if I try to stream locally a file 我用VS编译了live555源代码,如果我尝试在本地流式传输文件,它就可以正常工作

eg 例如

Command Line: live555.exe myfile.mp3 VLC Connection String rtsp://169.254.1.231:8554/myfile.mp3 命令行:live555.exe myfile.mp3 VLC连接字符串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 但如果我尝试通过互联网传输它,VLC与live555进行通信,但live555不会向他发送数据

Command Line live555.exe myfile.mp3 VLC Connection String rtsp://80.223.43.123:8554/myfile.mp3 命令行live555.exe myfile.mp3 VLC连接字符串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. 我已经转发了8554端口(都是tcp / udp)并试图禁用我的防火墙,但这并没有解决。

How is that? 那个怎么样?

To troubleshoot: 要排除故障:

  • Are you streaming RTP over RTSP: have you checked the "Use RTP over RTSP (TCP)" option in VLC? 您是否通过RTSP传输RTP:您是否检查过VLC中的“在RTSP上使用RTP(TCP)”选项? You can check this in VLC under the preferences: input/codecs->Demuxers->RTP/RTSP. 您可以在首选项中根据首选项进行检查: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. 您可以尝试查看这是否解决了问题,在这种情况下可能会阻止UDP。

  • You speak of forwarding. 你说转发。 Do you mean port forwarding from one machine to the RTSP server? 你的意思是从一台机器到RTSP服务器的端口转发? 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). 如果是这样 - >如果你没有通过RTSP进行RTP,那么你还需要转发与RTSP端口(554或8554)不同的媒体端口。 These ports are exchanged during the RTSP SETUP. 在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. 如果您通过RTSP进行RTP,则媒体在554或8554上交错,您不必担心这一点。

Also, another good debugging tool is the live555 openRTSP application. 另外,另一个很好的调试工具是live555 openRTSP应用程序。 You can run it from the command line and specify "-t" for RTP over RTSP, which is basically what the VLC option does. 您可以从命令行运行它,并为RTSP上的RTP指定“-t”,这基本上是VLC选项的作用。 You can specify "-T" for HTTP tunneling, etc and it allows you to write captured media packets to file, etc. 您可以为HTTP隧道等指定“-T”,它允许您将捕获的媒体数据包写入文件等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM