Roverr / rtsp-stream

Out of box solution for RTSP - HLS live stream transcoding. Makes RTSP easy to play in browsers.
MIT License
712 stars 167 forks source link

Not easy enough #68

Open kaihendry opened 3 years ago

kaihendry commented 3 years ago

Expectation, given a rtsp url, a hls m3u8 url is returned.


docker run -v `pwd`/rtsp-stream.yml:/app/rtsp-stream.yml \
           -p 8080:8080 \
           -e RTSP_STREAM_DEBUG=true \
           roverr/rtsp-stream:latest
version: 1.0
endpoints:
  start:
    enabled: true
  static:
    enabled: true
  stop:
    enabled: true
  list:
    enabled: true
listen:
  - alias: driveway
    uri: rtsp://admin:secret@81.187.180.135:554
    enabled: true
(ins)[hendry@t14s cam]$ bash hls.sh
Unable to find image 'roverr/rtsp-stream:latest' locally
latest: Pulling from roverr/rtsp-stream
ff3a5c916c92: Pull complete
260adb6820b2: Pull complete
29be83ba3cf4: Pull complete
51523429c350: Pull complete
Digest: sha256:225792a0c5ad911a5e18156c4e683e7f0c11958d4c65e1ed73d64cdf37cee735
Status: Downloaded newer image for roverr/rtsp-stream:latest
time="2021-06-11T21:15:27Z" level=info msg="RTSP-STREAM started on 8080"
time="2021-06-11T21:22:16Z" level=error msg="unexpected end of JSON input"

Should the uri be rtp like the docs... if so.. why?

Why do I need to POST the rtsp stream URL?