frigate: [Support]: rtsp basic auth with special characters doesnt work anymore
Describe the problem you are having
Camera RTSP stream in 12. Beta special characters are not working in authentication
Version
0.12.0 Beta 2
Frigate config file
garage:
ffmpeg:
inputs:
- path: rtsp://<user>:<password>@<ipaddr>:88/videoMain
roles:
- detect
- record
- path: rtsp://<user>:<password>@<ipaddr>:88/videoMain
roles:
- restream
Relevant log output
2023-01-09 15:06:26.535457018 [2023-01-09 15:06:26] frigate.video ERROR : garden: Unable to read frames from ffmpeg process.
2023-01-09 15:06:26.535596596 [2023-01-09 15:06:26] frigate.video ERROR : garden: ffmpeg process is not running. exiting capture thread...
2023-01-09 15:06:26.540134136 [2023-01-09 15:06:26] watchdog.garage ERROR : Ffmpeg process crashed unexpectedly for garage.
2023-01-09 15:06:26.540248282 [2023-01-09 15:06:26] watchdog.garage ERROR : The following ffmpeg logs include the last 100 lines prior to exit.
2023-01-09 15:06:26.540374616 [2023-01-09 15:06:26] ffmpeg.garage.detect ERROR : [rtsp @ 0x55a62c399f00] method DESCRIBE failed: 401 Unauthorized
2023-01-09 15:06:26.540376791 [2023-01-09 15:06:26] ffmpeg.garage.detect ERROR : rtsp://*:*@<ipaddr>/videoMain: Server returned 401 Unauthorize
FFprobe output from your camera
root@frigate-1:/data01/frigate# ffprobe rtsp://<user>:<pass>@<ipaddr>:88/videoMain
ffprobe version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2007-2021 the FFmpeg developers
built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65542
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65544
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65546
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65548
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65550
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65552
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65554
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65556
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65558
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65560
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65562
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65564
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65566
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65568
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65570
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65572
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65574
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65576
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65578
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65580
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65582
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65584
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65586
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65588
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65590
[h264 @ 0x5646bdbd2ac0] Missing reference picture, default is 65592
Input #0, rtsp, from 'rtsp://<user>:<pass>@<ipaddr>:88/videoMain':
Metadata:
title : IP Camera Video
comment : videoMain
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 30 tbr, 90k tbn, 2108081.23 tbc
Stream #0:1: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s
Frigate stats
No response
Operating system
Other Linux
Install method
Docker Compose
Coral version
CPU (no coral)
Network connection
Wired
Camera make and model
opticam O6
Any other information that may be helpful
Upgrade from 11 -> to 12 beta and the rtsp auth doesnt seem to work anymore when password contains special characters
i have one camera without special character in password and that one works in 12 beta also
i have tried to input to frigate in plain text or encoded with %<number> but either way i get the same error.
stream works from vlc and with ffmpeg and worked with frigate 11.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 19 (1 by maintainers)
Nice investigation there! As of today I believe ? in rstp password is just not simply working and adds up to the annoyances. That’s when I feel I should actively contribute but can’t because of both time and knowledge ❤️
For the camera features the big companies will decide what we get for our money and us tinkerers will have to make do with the supplied stuff. So I really appreciate that the tapo cams work well with Frigate/HA because they’re cheap. Like 15-50 EUR in Europe anyways.
If it was for a company I’m sure you have other choices.
On Tue, 21 Jan 2025 at 01:35, Edmundo E @.***> wrote:
We handle the encoding for the password
https://github.com/blakeblackshear/frigate/blob/e79eab711afea62e9830973186600fe80b005de4/frigate/util.py#L730
we also have tests to ensure this is working as expected
https://github.com/blakeblackshear/frigate/blob/dev/frigate/test/test_camera_pw.py#L12
I am wondering if maybe your camera doesn’t work with the
%encoded characters considering that frigate 0.11 worked with special characters for you (and it was a common complaint that special characters didn’t work previously)