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
3.81k stars 311 forks source link

External access RTSP does not work, request a login and user #1124

Closed filhocassiano closed 1 month ago

filhocassiano commented 1 month ago

I am attempting to use VLC to verify the functionality of RTSP from go2rtc. While VLC works properly in localhost, it prompts for a login when accessed externally and does not function. I have tried using the credentials "admin" and "pass."

Could you Help me please:

go2rtc:

log:
  format: text
  level: info  # default level
  api: trace
  exec: debug
  ngrok: info
  rtsp: warn
  streams: error
  webrtc: fatal
rtsp:
  listen: ":8554"    # RTSP Server TCP port, default - 8554
  username: "admin"  # optional, default - disabled
  password: "pass"   # optional, default - disabled
  default_query: "video&audio"  # optional, default codecs filters 
streams:
 PTZ01:
    - rtsp://admin:3815@192.168.0.112/onvif-media/media.amp?profile=profile_1_h264&sessiontimeout=60&streamtype=unicast
 PTZ02:
    - rtsp://g4s:3815@192.168.0.115/onvif-media/media.amp?profile=profile_1_h264&sessiontimeout=60&streamtype=unicast
 DOMEPOSTE01:
    - rtsp://admin:3815@192.168.0.111/onvif-media/media.amp?profile=profile_1_h264&sessiontimeout=60&streamtype=unicast

VLC

filhocassiano commented 1 month ago

Here is the link that I'm using on VLC :rtsp://IPgo2rtc:8554/DOMEPOSTE01

CleanShot 2024-05-18 at 14 22 31@2x

AlexxIT commented 1 month ago

Your credentials in the config and the ones you tried are different.

filhocassiano commented 1 month ago

I just fix it, "admin" and "3815". but the same error..

go2rtc: log: level: info api: trace exec: debug ngrok: info rtsp: warn streams: error webrtc: fatal rtsp: listen: ":8554"
username: "admin"
password: "3815"
streams: PTZ01:

filhocassiano commented 1 month ago

CleanShot 2024-05-18 at 17 48 29

AlexxIT commented 1 month ago

I can't reproduce your situation. user/pass in VLC works fine. You can increase log level for go2rtc and check something useful there.

filhocassiano commented 1 month ago

I can't reproduce your situation. user/pass in VLC works fine. You can increase log level for go2rtc and check something useful there.

I have done It, formatted the windows, and start with nothing installed, just go2rtc. Now is it working. Thank You.