Motion - Support Question 2015x 07x 27x 184223

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

Topic revision: r1 - 27 Jul 2015, DanielLettau
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.