AlexxIT / go2rtc

Ultimate camera streaming application with support RTSP, RTMP, HTTP-FLV, WebRTC, MSE, HLS, MP4, MJPEG, HomeKit, FFmpeg, etc.
https://github.com/AlexxIT/Blog
MIT License
4.98k stars 398 forks source link

rtsp steam error in vlc #245

Closed jtsarnas76 closed 5 months ago

jtsarnas76 commented 1 year ago

I m on docker version 1.1.1, in the links page, all stream.html links work, but none of the rtsp, at least in vlc. The camera's (Tapo C310) rtsp stream (rtsp://username:password@192.168.1.190:554/stream1) works ok. Any help?

NickM-27 commented 1 year ago

have you mapped port 8554 in your docker config?

jtsarnas76 commented 1 year ago

services: go2rtc: image: alexxit/go2rtc network_mode: host privileged: true restart: unless-stopped environment:

AlexxIT commented 1 year ago

RTSP link may have wrong hostname of your server. Check it manually.

You don't need port forward when you using network host

jtsarnas76 commented 1 year ago

Not using a hostname, just local ip

AlexxIT commented 1 year ago

Have you change rtsp section in go2rtc config or using all by default?

jtsarnas76 commented 1 year ago

Here 's the config:

api:
  listen: ":1984"
  base_path: ""
  static_dir: ""
  origin: ""

ffmpeg:
  bin: "ffmpeg"
  global: "-hide_banner"
  file: "-re -stream_loop -1 -i {input}"
  http: "-fflags nobuffer -flags low_delay -i {input}"
  rtsp: "-fflags nobuffer -flags low_delay -timeout 5000000 -user_agent go2rtc/ffmpeg -rtsp_transport tcp -i {input}"
  output: "-user_agent ffmpeg/go2rtc -rtsp_transport tcp -f rtsp {output}"
  # ... different presets for codecs

hass:
  config: ""

log:
  format: ""
  level: "info"

ngrok:
  command: ""

rtsp:
  listen: ":8554"
  username: ""
  password: ""

srtp:
  listen: ":8443"

streams:
   Front: rtsp://jtsarnas:zYowQe55hpQkBiT6@192.168.1.190:554/stream2

webrtc:
  listen: ":8555"
  candidates: []
  ice_servers:
    - urls: [ "stun:stun.l.google.com:19302" ]
      username: ""
      credential: ""
jtsarnas76 commented 1 year ago

Getting somewhere!. Ran binary on a linux machine using the exact same config. Now the I could open the the rtsp links using celluloid but still not vlc.

AlexxIT commented 1 year ago

So RTSP links works but don't work for VLC. I'll check

AlexxIT commented 5 months ago

Please let me know if the problem is relevant