Adding RTSP stream results in grey preview, errors in log
#2,182 opened on Sep 2, 2021
Description
Hi,
I have a working MotionEyeOS on RPi 3b and a second MotionEye install on Rasbian 10. With both versions the attached USB cam (a PS3 Eye) works fine, but I can't get the RTSP added correctly. I think it has something to do with the characters in the URL which might not be escaped properly and therefor part of the URL gets dropped. Some info:
uname -a
Linux domoticz 5.4.61-v7+ #1339 SMP Tue Sep 1 18:45:30 BST 2020 armv7l GNU/Linux
cat /etc/debian_version
10.10 motionEye Version | 0.42.1 Motion Version | 4.2.2 OS Version | Raspbian 10 Camera is http://www.escam.cn/product/66-en.html RTSP stream URL is syntax as: rtsp://10.6.3.57:554/user=admin&password=&channel=1&stream=0.sdp?
I tried to add the camera as: rtsp://10.6.3.57/user=admin&password=&channel=1&stream=0.sdp? (blank field for user/pass in GUI) rtsp://10.6.3.57:554/user=admin&password=&channel=1&stream=0.sdp? (blank field for user/pass in GUI) rtsp://10.6.3.57:554/channel=1&stream=0.sdp? (filled fields for user/pass in GUI) rtsp://10.6.3.57:554/channel=1&stream=0.sdp (filled fields for user/pass in GUI) and all the above with single and double quotes, but the GUI doesn't accept quotes so you can't add the stream that way.
Log: [1:ml1:Camera1] [WRN] [ALL] mlp_retry: Retrying until successful connection with camera [1:ml1:Camera1] [ERR] [NET] netcam_rtsp_open_context: Normal resolution: Unable to open camera(Camera1): Server returned 4XX Client Error, but not one of 40{0,1,3,4} [1:ml1:Camera1] [ERR] [VID] vid_start: Netcam RTSP failed to open [1:ml1:Camera1] [ERR] [NET] netcam_rtsp_open_context: Normal resolution: Unable to open camera(Camera1): Server returned 4XX Client Error, but not one of 40{0,1,3,4} [1:ml1:Camera1] [ERR] [VID] vid_start: Netcam RTSP failed to open [1:ml1:Camera1] [WRN] [ALL] motion_init: Could not fetch initial image from camera [1:ml1:Camera1] [WRN] [ALL] motion_init: Motion continues using width and height from config file(s)
Does anyone have a clue why this could be happening? VLC plays the stream correct, but I've already read that VLC is very forgiving and motion(eye) and ffmpeg aren't... Should I escape the question marks and/or ampersands for instance?
Cheers!