【问题标题】:Vlcj fails to open the mrlVlcj 无法打开 mrl
【发布时间】:2012-05-20 13:56:50
【问题描述】:

我正在使用 vlcj 将实时视频从网络摄像机流式传输到我的 java 应用程序中。 问题是,每当我尝试使用局域网地址来获取流时,代码都无法打开套接字。

错误如下:

[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'.

查看日志了解详情。

谁能指导我如何消除这些错误?

【问题讨论】:

  • 您是否使用 VLC 媒体播放器测试了 mrl 以确保其正常工作?
  • 除此之外,您是否检查过这不是防火墙问题(关闭防火墙并重试?)

标签: java video-streaming vlcj


【解决方案1】:
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");

使用这个..

【讨论】:

    【解决方案2】:

    那里可能有两个问题:

    • 确保你已经解决了防火墙问题Firewall Enabling for VLC
    • 确保 IP 摄像机处于活动状态且可用于通信(我的情况就是问题所在), 这是日志

    【讨论】:

      猜你喜欢
      • 2021-02-03
      • 2018-11-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多