Vlcj无法打开mrl

时间:2012-05-20 13:56:51

标签: java video-streaming vlcj

我正在使用vlcj将来自ip camera的实时视频流式传输到我的java应用程序中。 问题是每当我尝试使用lan地址获取流时代码都无法打开套接字。

错误如下:

[01ac1028] access_http access error: cannot connect to 192.168.19.14:81
[01ac1028] access_mms access error: cannot connect to 192.168.19.14:81
[01adb550] main input error: open of `http://@192.168.19.14:81' failed
[01adb550] main input error: Your input can't be opened
[01adb550] main input error: VLC is unable to open the MRL 'http://@192.168.19.14:81'.

查看日志以获取详细信息。

有人可以指导我如何删除这些错误吗?

2 个答案:

答案 0 :(得分:0)

mediaPlayer.playMedia("dshow://", 
                    ":sout=#transcode{vcodec=h264,vb=800,fps=15,scale=1,width=1280,height=800,acodec=mp4a,ab=128,channels=2,samplerate=44100}:rtp{sdp=rtsp://@:5555/demo}",
                      ":no-sout-rtp-sap", 
                     ":no-sout-standard-sap", 
                      ":sout-all", 
                      ":sout-keep");

使用此.. ..

答案 1 :(得分:0)

那里可能会出现两件事:

  • 确保您已完成防火墙工作Firewall Enabling for VLC
  • 确保IP摄像机处于活动状态&可用于沟通(我的情况是这个问题), 这是日志Log from VLC player for my case