RTSPtoWeb icon indicating copy to clipboard operation
RTSPtoWeb copied to clipboard

Trying to extract the web stream for integration

Open eblieb opened this issue 1 year ago • 3 comments

I am trying to use RTSPtoWeb to convert RTSP camera feeds into a format that Octoprint can use. I got it working great in the webui and see my camera, but now have to figure out how to get the stream into octoprint. Any suggestions?

https://github.com/deepch/RTSPtoWeb/blob/master/docs/api.md#hls

I used this document to generate the HLS stream but when I integrate it into octoprint i just get a black screen.

eblieb avatar May 02 '24 11:05 eblieb

How are you access the webui can you please help me out on this as it is not working for me, I tried many things.

docker run --name rtsp-to-web \ -v /Users/irtaza/Desktop/config.json:/config/config.json \ --network host \ ghcr.io/deepch/rtsptoweb:latest

This is my command that is used to run the container. and below is the config inside the container.

{
  "server": {
    "debug": true,
    "log_level": "info",
    "http_demo": true,
    "http_debug": false,
    "http_login": "demo",
    "http_password": "demo",
    "http_port": ":8083",
    "ice_servers": [],
    "rtsp_port": ":554"
  },
  "streams": {
    "demo1": {
      "name": "test video stream 1",
      "channels": {
        "0": {
          "name": "ch1",
          "url": "rtsp://user:password@ip:554",
          "on_demand": true,
          "debug": false,
          "audio": true,
          "status": 0
        }
      }
    }
  },
  "channel_defaults": {
    "on_demand": true
  }
}

I am access this url but it is throwing error http://localhost:8083/stream/demo1/channel/0/hls/live/index.m3u8

irtaza9 avatar Jul 08 '24 09:07 irtaza9