ASH43-W RTSP access

Have some questions or having issues with your IP Camera(s), Post them here for the mods and other users to assist you with.
Post Reply
MangoCats
Posts: 7
Joined: Sun Jun 23, 2024 4:34 pm

ASH43-W RTSP access

Post by MangoCats »

Hello,

I have connected a new ASH43-W to my WiFi router using the Amcrest SmartHome app - it is visible and working through that app on my phone.

I want to stream video to VLC (via rtsp://) on a Raspberry Pi 5 running Raspberry Pi OS (latest version). In Amcrest SmartHome the settings for my ASH43-W shows its IP address, and I am following this guide: https://support.amcrest.com/hc/en-us/ar ... RTSP-ASH43

however, when I input username "admin" and the password I configured for the camera, VLC tells me:

Your input can't be opened:
VLC is unable to open the MRL: 'rtsp://192.168.67.43'. Check the log for details.

The Debug log shows this:

Code: Select all

main debug: processing request item: rtsp://192.168.67.43, node: Playlist, skip: 0
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 2 items, index 1
main debug: starting playback of new item
main debug: resyncing on rtsp://192.168.67.43
main debug: rtsp://192.168.67.43 is at 1
main debug: creating new input thread
main debug: Creating an input for 'rtsp://192.168.67.43'
main debug: requesting art for new input thread
main debug: destroying useless sout
main debug: destroying chain... (name=display)
main debug: removing module "display"
main debug: destroying chain done
main debug: using timeshift granularity of 50 MiB
main debug: using default timeshift path
main debug: `rtsp://192.168.67.43' gives access `rtsp' demux `any' path `192.168.67.43'
main debug: looking for meta fetcher module matching "any": 1 candidates
main debug: creating demux: access='rtsp' demux='any' location='192.168.67.43' file='(null)'
main debug: looking for access_demux module matching "rtsp": 19 candidates
lua debug: Trying Lua scripts in /home/pi/.local/share/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/lib/aarch64-linux-gnu/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher
live555 debug: version 2020.01.19
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching "any": 2 candidates
lua debug: Trying Lua scripts in /home/pi/.local/share/vlc/lua/meta/art
lua debug: Trying Lua scripts in /usr/lib/aarch64-linux-gnu/vlc/lua/meta/art
lua debug: Trying Lua playlist script /usr/lib/aarch64-linux-gnu/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: skipping script (unmatched scope) /usr/lib/aarch64-linux-gnu/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: Trying Lua playlist script /usr/lib/aarch64-linux-gnu/vlc/lua/meta/art/01_googleimage.luac
lua debug: skipping script (unmatched scope) /usr/lib/aarch64-linux-gnu/vlc/lua/meta/art/01_googleimage.luac
qt debug: IM: Setting an input
lua debug: Trying Lua playlist script /usr/lib/aarch64-linux-gnu/vlc/lua/meta/art/02_frenchtv.luac
lua debug: skipping script (unmatched scope) /usr/lib/aarch64-linux-gnu/vlc/lua/meta/art/02_frenchtv.luac
lua debug: Trying Lua playlist script /usr/lib/aarch64-linux-gnu/vlc/lua/meta/art/03_lastfm.luac
lua debug: skipping script (unmatched scope) /usr/lib/aarch64-linux-gnu/vlc/lua/meta/art/03_lastfm.luac
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
main debug: no art finder modules matched
live555 debug: authentication failed
main debug: looking for keystore module matching "any": 4 candidates
main debug: using keystore module "secret"
live555 debug: retrying with user=admin
live555 debug: connection error 404
main debug: removing module "secret"
live555 error: Failed to connect with rtsp://192.168.67.43:554
main debug: no access_demux modules matched
main debug: creating access: rtsp://192.168.67.43
main debug: looking for access module matching "rtsp": 30 candidates
satip debug: try to open 'rtsp://192.168.67.43'
satip debug: connect to host '192.168.67.43'
main debug: net: connecting to 192.168.67.43 port 554
main debug: connection succeeded (socket = 21)
main debug: net: opening 0.0.0.0 datagram port 9202
main debug: net: opening 0.0.0.0 datagram port 9203
satip error: Failed to setup RTSP session
main debug: net: connecting to 192.168.67.43 port 554
main debug: connection succeeded (socket = 21)
access_realrtsp warning: Cseq mismatch, got 1, assumed 0
access_realrtsp debug: rtsp connected
access_realrtsp warning: only real/helix rtsp servers supported for now
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
qt debug: IM: Deleting the input
I also tried the address format: rtsp://admin:[email protected] with similar results.

What am I missing?

Thanks,
MangoCats
Posts: 7
Joined: Sun Jun 23, 2024 4:34 pm

Re: ASH43-W RTSP access

Post by MangoCats »

One interesting? detail: when I put in the wrong password, it prompts me for the username / password again, but when I put in the correct password it errors out as described above.
User avatar
Revo2Maxx
Site Admin
Posts: 6724
Joined: Sat Jun 15, 2019 3:05 pm

Re: ASH43-W RTSP access

Post by Revo2Maxx »

main issue I see is that even in VLC RTSP requires the port number for it 554.. Try this maybe it will work

rtsp://<user>:<pass>@<cameraip>:<port>/cam/realmonitor?channel=1&subtype=0

I ran this on my ASh47 and feed came up without an issue. My guess is that your ASH product might be coded somewhat the same..
Be Safe.
MangoCats
Posts: 7
Joined: Sun Jun 23, 2024 4:34 pm

Re: ASH43-W RTSP access

Post by MangoCats »

Thanks,

Yeah, I have tried with the port number specified (if you look in the log output you see that live555 is using :554 as default anyway...)

Also tried specifying rtsp://admin:[email protected]:554 - still the same results.

Digging around the web, it seems that Debian Linux has messed up RTSP streaming for VLC for a while now, and Raspberry Pi OS is Debian based, so I suspect this is related. Any solution that would let me view the video stream on the RaspberryPi's display would be good enough for me, but so far I have tried VLC and ffmpeg with no luck.
MangoCats
Posts: 7
Joined: Sun Jun 23, 2024 4:34 pm

Re: ASH43-W RTSP access

Post by MangoCats »

Revo2Maxx wrote: Mon Jun 24, 2024 12:28 pm main issue I see is that even in VLC RTSP requires the port number for it 554.. Try this maybe it will work

rtsp://<user>:<pass>@<cameraip>:<port>/cam/realmonitor?channel=1&subtype=0
Holy cow! Fully specifying the path, channel and subtype works... wish they mentioned this in any of their VLC guides.

Thanks!!!
Post Reply