Motion - Support Question 2015x 04x 20x 154721

SOLVED: rtsp netcam not working

Question

Hi to all !

I have read this post http://www.lavrsen.dk/foswiki/bin/view/Motion/FeatureRequest2009x06x23x045436 and I have tried to download the motion-Git-8619d7c17ce112e7196975905c6e840f345141ba.

After more tentative to compiling the 3.2.12 trunk version without success, I have downloaded it and compiled with ffmpeg 2.6 version with mysql support (I have also compiled mysql).

After some small problems, all compiling fine.

But, I cannot connect my rtsp camera (with vlc all working fine).

Firstly, when I start motion, I get these messages:

(see verbatim area)

In the log I read:

netcam_start: Network Camera thread starting... for url (rtsp://10.0.x.x)

rtsp_connect: unable to open input(rtsp://pippo:password@10.0.x.x:554): -1482175736 - Server returned 4XX Client Error, but not one of 40{0,1,3,4}.

Obviously, I have applied the netcam_rtsp modifications suggested by RzTen1 in the post and put also the in thread1.conf the parameter netcam_userpass pippo:password

My system is ubuntu sever 14.04 with kernel 3.13.0-48-generic 32bit.

There are some people that can hel me ?

Thank in advance,

Emilio

Update

The startup messages are relative to new syntax of .conf file. Re arranging the motion.conf and threadxx.conf with new standard .conf syntax solved this problem.

I have tried the Mr-Dave version (https://github.com/Mr-Dave/motion actualy Motion Unofficial-Git-a5b5f13) and the rtsp problem is the same (also if the netcam_rtsp.c code is more differen from the other version).

With Mr-Dave version, I get the same error but without the number:

netcam_rtsp_open_context: unable to open input(rtsp://pippo:password@10.0.89.9:554): Server returned 4XX Client Error, but not one of 40{0,1,3,4}

[0] [NTC] [ALL] conf_load: Processing thread 0 - config file /etc/motion/motion.conf
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "control_port"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "control_localhost"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "control_html_output"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "control_authentication"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "sql_query"
[0] [NTC] [ALL] config_thread: Processing config file /etc/motion/thread1.conf
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "netcam_http"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "despeckle"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "gap"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "max_mpeg_time"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "output_all"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "output_normal"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "output_motion"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "ppm"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_cap_new"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "ffmpeg_cap_motion"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "locate"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "jpeg_filename"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_port"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_quality"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_motion"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_maxrate"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_localhost"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "webcam_limit"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "sql_log_image"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "sql_log_mpeg"
[0] [ALR] [ALL] conf_cmdparse: Unknown config option "sql_query"
[0] [NTC] [ALL] motion_startup: Using default log level (NTC) (6)
[0] [NTC] [ALL] motion_startup: Motion Git-8619d7c17ce112e7196975905c6e840f345141ba Started
[0] [NTC] [ALL] motion_startup: Logging to file (/var/log/motion/motion.log)

Environment

Motion version: 3.2.12 git hyperbolic2346
ffmpeg version: 2.6
Libraries: ffmpeg, mysql
Server OS: ubuntu server 14.04 kernel 3.13.0-48-generic 32bit
-- EmilioDefranco - 20 Apr 2015

Answer

I have SOLVED download https://github.com/tosiara/motion/tree/unstable (maybe also mr-dev working but I have not tried again) and changing in Threadxx.conf the parameter relative RTSP TCP protocol (default enabled) on OFF.

All working fine
Topic revision: r3 - 22 Apr 2015, EmilioDefranco
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.