RTSP Stream not working

Hi!

I’m trying to play a stream from an axis cam in kodi. I already created a .strm file with the correct rtsp-url in it, but it won’t work.
Here is the log:

Code:
13:16:50 15310.084961 T:1756361792  NOTICE: Creating Demuxer
    13:16:50 15310.085938 T:1756361792   DEBUG: ffmpeg[68AFF440]: Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
    13:16:50 15310.212891 T:1756361792   DEBUG: Previous line repeats 1 times.
    13:16:50 15310.212891 T:1756361792   ERROR: ffmpeg[68AFF440]: [tcp] Connection to tcp://<IP>?timeout=0 failed: Connection refused
    13:16:50 15310.212891 T:1756361792   DEBUG: Error, could not open file rtsp://USERNAME:PASSWORD@<IP>/axis-media/media.amp
    13:16:50 15310.212891 T:1756361792   ERROR: OpenDemuxStream - Error creating demuxer
    13:16:50 15310.212891 T:1756361792  NOTICE: CDVDPlayer::OnExit()

I can get it to work in VLC as long as I activate the rtsp over http tunnel.

How can I do the same in kodi?

I tried some random rtsp stream in kodi, that doesn’t need the tunneling and it worked instantly.

I also tried directly over “http://USERNAME:PASSWORD@IP…” which works in my chrome browser. Then the kodi logs say that I get a 401 error “Authentication Failed”, so somehow it doesn’t use the username and password provided.

I already searched for hours on google and tried everything I could find, but nothing helped so far. Also I found nothing about how to do “rtsp over http” on kodi/openelec.

Thanks for your help!