Two G410s - both work in Aqara app and HomeKit but cannot connect to RTSP stream with VLC, Frigate, Go2RTC

I moved from G4s to the G410s and have been very happy. I have them set up in HomeKit and then use the generic camera integration in Home Assistant which is fine. I also have them recording on a loop to the microSD card then transferring to a Synology NAS which has been far more finicky. I went in to see if captured the meteor bang over MA the other day and found no recordings.

Decided to try the Frigate route with my NUC but I keep getting errors trying to connect to either Aqara’s RTSP stream. In VLC, I get this:

VLC is unable to open the MRL ‘rtsp://52x:47x@192.168.1.1xx:8554/ch1’. Check the log for details.

I tried to disable the cameras in HA as they do use the same stream (though ch2) but that made no difference.

Appreciate any help on figuring out how to access the RTSP stream. Not sure if this is due to connecting to HomeKit first but I don’t want to sacrifice that solid connection.

Thanks!

1 Like

Is the G410 on wired power? I believe it won’t work on battery only, and it does need to be explicitly enabled under Settings > RTSP Lan Preview (sorry if that’s obvious and you’ve already done it).

Is VLC running on the same network as the G410? What did the actual VLC logs say?

Can you try one of these these command from your computer? This can help indicate if the RTSP is being published and is reachable.
telnet {IPADDRESS} 8554
OR
nc -vz {IPADDRESS} 8554

Replace the brackets and everything with your actual IP - the forum won’t let me post the full command.

1 Like

Thanks for the quick reply. Sorry should have mentioned both are wired. And yes RTSP is enabled on both. I can actually access RTSP via Home Assistant’s generic camera too…

VLC is on the same network.

I don’t have a telnet client. Here is the log file from VLC (probably didn’t need to x out parts of pw/internal IP but did anyway):

main debug: processing request item: rtsp://192.168.1.1xx:8554/ch2, node: Playlist, skip: 0
main debug: resyncing on rtsp://192.168.1.1xx:8554/ch2
main debug: rtsp://192.168.1.1xx:8554/ch2 is at 1
main debug: starting playback of new item
main debug: resyncing on rtsp://192.168.1.1xx:8554/ch2
main debug: rtsp://192.168.1.1xx:8554/ch2 is at 1
main debug: creating new input thread
main debug: Creating an input for ‘rtsp://192.168.1.1xx:8554/ch2’
main debug: requesting art for new input thread
main debug: using timeshift granularity of 50 MiB
main debug: using default timeshift path
main debug: rtsp://21x:13x@192.168.1.1xx:8554/ch2' gives access rtsp’ demux any' path 21x:13x@192.168.1.1xx:8554/ch2’
main debug: creating demux: access=‘rtsp’ demux=‘any’ location=‘21x:13x@192.168.1.1xx:8554/ch2’ file=‘(null)’
main debug: looking for access_demux module matching “rtsp”: 14 candidates
live555 debug: version 2016.11.28
main warning: Password in a URI is DEPRECATED
main debug: looking for meta fetcher module matching “any”: 1 candidates
lua debug: Trying Lua scripts in /Users/xxx/Library/Application Support/org.videolan.vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /Applications/VLC.app/Contents/MacOS/lua/meta/fetcher
lua debug: Trying Lua scripts in /Applications/VLC.app/Contents/MacOS/share/lua/meta/fetcher
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching “any”: 2 candidates
lua debug: Trying Lua scripts in /Users/xxx/Library/Application Support/org.videolan.vlc/lua/meta/art
lua debug: Trying Lua scripts in /Applications/VLC.app/Contents/MacOS/lua/meta/art
lua debug: Trying Lua scripts in /Applications/VLC.app/Contents/MacOS/share/lua/meta/art
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/meta/art/00_musicbrainz.luac
lua debug: skipping script (unmatched scope) /Applications/VLC.app/Contents/MacOS/share/lua/meta/art/00_musicbrainz.luac
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/meta/art/01_googleimage.luac
lua debug: skipping script (unmatched scope) /Applications/VLC.app/Contents/MacOS/share/lua/meta/art/01_googleimage.luac
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/meta/art/02_frenchtv.luac
lua debug: skipping script (unmatched scope) /Applications/VLC.app/Contents/MacOS/share/lua/meta/art/02_frenchtv.luac
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/meta/art/03_lastfm.luac
lua debug: skipping script (unmatched scope) /Applications/VLC.app/Contents/MacOS/share/lua/meta/art/03_lastfm.luac
main debug: no art finder modules matched
live555 debug: connection timeout
live555 error: Failed to connect with rtsp://192.168.1.1xx:8554/ch2
main debug: no access_demux modules matched
main debug: creating access: rtsp://21x:13x@192.168.1.1xx:8554/ch2
main debug: looking for access module matching “rtsp”: 24 candidates
satip debug: try to open ‘rtsp://21x:13x@192.168.1.1xx:8554/ch2’
satip debug: connect to host ‘192.168.1.1xx’
main debug: net: connecting to 192.168.1.1xx port 8554
main error: connection failed: No route to host
satip error: Failed to connect to RTSP server 192.168.1.1xx:8554
main debug: net: connecting to 192.168.1.1xx port 8554
main error: connection failed: No route to host
access_realrtsp error: cannot connect to 192.168.1.1xxx:8554
access_realrtsp debug: could not connect to: 192.168.1.1xx:8554/ch2
main debug: no access modules matched
main debug: dead input
main debug: changing item without a request (current 1/2)
main debug: nothing to play

1 Like

VLC can’t seem to access that IP - No Route To Host. Can you try a simple ping to that IP and see if you can hit it?

2 Likes

Sorry - each reply has required mod approval

To add to above about ping working fine, I just tried to give the Aqara ‘emergency access’ in Firewalla which allows full access and it made no difference. I had also tried a port forward for 8554 which didn’t help.

1 Like

So VLC is unable to play ch1 or ch2, correct?

Correct - tried ch1, ch2, no channels also tried the local lan address given by Firewalla.

But ping worked 5/5 from same MacBook that I’m typing on and using for VLC

Just added Firewalla rule to allow everything to that IP but made no difference

I again tried to disable Home Assistant generic camera which does pull the same rtsp feed (ch2) without any issue thinking maybe the two are competing but that made no difference.

Re-enabled HA and it was fine there but still no access in VLC, Go2RTC or Frigate

In Go2RTC, I get this:

streams: dial tcp 192.168.1.1xx:554: connect: connection refused

Ping is fine -

PING 192.168.1.1xx (192.168.1.1xx): 56 data bytes
64 bytes from 192.168.1.1xx: icmp_seq=0 ttl=64 time=19.504 ms
64 bytes from 192.168.1.1xx: icmp_seq=1 ttl=64 time=12.430 ms
64 bytes from 192.168.1.1xx: icmp_seq=2 ttl=64 time=21.993 ms
64 bytes from 192.168.1.1xx: icmp_seq=3 ttl=64 time=11.840 ms
64 bytes from 192.168.1.1xx: icmp_seq=4 ttl=64 time=19.042 ms
^C
— 192.168.1.1xx ping statistics —
5 packets transmitted, 5 packets received, 0.0% packet loss

network is Verizon Fios - Firewalla Purple - Omada WiFi 7
I don’t see anything blocking access on the Firewalla app