Authentication error with RTSP
Question
I am trying to connect a Foscam
FI9803P V2 to motion. The cam only supports RTSP with authentication.
I tried 2 different settings in motion.conf which both result in the same error.
Using rtsp://testuser:testpassword@10.0.0.49:554/videoMain in VLC just works fine.
Any suggestions what I might do wrong?
Config1:
netcam_url rtsp://testuser:testpassword@10.0.0.49:554/videoMain
Config2:
netcam_userpass testuser:testpassword
netcam_url rtsp://10.0.0.49:554/videoMain
Error:
[2] [ALR] [NET] netcam_start: Network Camera thread starting... for url (rtsp://testuser:testpassword@10.0.0.49:554/videoMain)
[2] [ALR] [NET] rtsp_connect: unable to open input(rtsp://10.0.0.49:554/videoMain): -825242872 - Server returned 401 Unauthorized (authorization failed)
Segmentation fault (core dumped)
Environment
Motion version: |
trunkREV561 |
ffmpeg version: |
N-74035-g4b90dcb |
Libraries: |
ffmpeg, mysql, postgresql |
Server OS: |
Ubuntu 14.04.2 LTS |
--
DanielLettau - 27 Jul 2015
Answer