Motion - Support Question 2015x 10x 09x 194939

Server returned 401 Unauthorized (authorization failed)

Question

Hi! Thank you for your application.

I'm trying to connect ip camera via rtsp.
netcam_url rtsp://192.168.25.100:554/live
netcam_userpass admin:hKJE2MhiK9pr

But i'm get a message:
1] [WRN] [ALL] [Oct 09 22:53:30] motion_loop: Retrying until successful connection with camera
[1] [ALR] [NET] [Oct 09 22:53:30] netcam_start: Network Camera thread starting... for url (rtsp://192.168.25.100:554/live)
[1] [ALR] [NET] [Oct 09 22:53:30] rtsp_connect: unable to open input(rtsp://192.168.25.100:554/live): -825242872 - Server returned 401 Unauthorized (authorization failed)

At VLC it work fine.

Thank you for your time.

Environment

Motion version: 3.2.11
ffmpeg version: 2.8
Libraries: ffmpeg, mysql, postgresql
Server OS: ubuntu server 12.04 3.13.0-43-generic
-- TarasKnyazev - 09 Oct 2015

Answer

The version indicated in the request is quite old(3.2.11). Authentication of RTSP stream has problems in current SVN and Sackmotion git repos. The patchwork for new release 3.4 does include patches to resolve this.

http://www.lavrsen.dk/foswiki/bin/view/Motion/PatchworkForNewRelease
Topic revision: r2 - 22 Nov 2015, MrDave
Copyright © 1999-2017 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.