deepch/RTSPtoWebRTC

Video not showing, only audio can be heard

sayan-futurehook opened this issue · 0 comments

I have 2 hikvision devices one is a ip camera(DS-2CD3156G2-IS) other one is a video door phone(DS-KV6113-WPE1(B)). Both of them support rtsp(audio and video), When I am playing the rtsp stream in vlc, it is showing both video and audio for the ipcamera and vdp. I have added the exact rtsp url for both ipcamera and vdp to config.json. When I am streaming the ipcamera I am getting both video and audio, but when streaming through vdp there is no video, only audio is getting played. Also when i am going to http://10.0.0.28:8888/stream/codec/hikvision_ip_camera I am getting [{"Type":"video"},{"Type":"audio"}] but for http://10.0.0.28:8888/stream/codec/hikvision_vdp I am getting [{"Type":"audio"}]. This is my config.json file

{
  "server": {
    "http_port": ":8888"
},
  "streams": {
    "hikvision_ip_camera": {
      "on_demand": false,
      "audio": true,
      "url": "rtsp://admin:password@10.0.0.100/ISAPI/Streaming/channels/102"
    },
    "hikvision_vdp": {
      "on_demand": false,
      "audio": true,
      "url": "rtsp://admin:password@10.0.0.99/ISAPI/Streaming/channels/102"
    }
  }
}

Video config of ipcamera
Screenshot 2023-03-22 at 2 14 02 PM

Video config of vdp
Screenshot 2023-03-23 at 7 02 08 PM

What I am doing wrong?

Edit: I used https://github.com/deepch/RTSPtoWeb it is working fine on macOS, but not working in iOS, found out this issue deepch/RTSPtoWeb#31 . I am specifically trying it to work on phone, both android and iOS