Motion terminating
Question
I am trying to setup motion for snapshop only use using a network camera.
I have set these parameters only. This is what another user has set in there tutorial.
netcam_url http://192.168.0.113/VIDEO.CGI
snapshot_interval 2
target_dir /usr/local/etc
I receive the following errors when running 'motion -n'
[0] Motion terminating
[root@localhost /usr/local/etc]# motion -n
[0] Processing thread 0 - config file motion.conf
[0] Unknown config option "ffmpeg_cap_new"
[0] Unknown config option "ffmpeg_cap_motion"
[0] Unknown config option "ffmpeg_timelapse"
[0] Unknown config option "ffmpeg_timelapse_mode"
[0] Unknown config option "ffmpeg_bps"
[0] Unknown config option "ffmpeg_variable_bitrate"
[0] Unknown config option "ffmpeg_video_codec"
[0] Unknown config option "ffmpeg_deinterlace"
[0] Unknown config option "movie_filename"
[0] Unknown config option "timelapse_filename"
[0] Unknown config option "sql_log_image"
[0] Unknown config option "sql_log_snapshot"
[0] Unknown config option "sql_log_mpeg"
[0] Unknown config option "sql_log_timelapse"
[0] Unknown config option "sql_query"
[0] Thread 1 is from motion.conf
[1] Thread started
[0] httpd bind(): Cannot assign requested address
[1] bind(): Cannot assign requested address
[1] Problem enabling stream server: Cannot assign requested address
[1] Started stream webcam server in port 8081
[1] netcam camera handler: finish set, exiting
[1] Thread exiting
[0] Motion terminating
[root@localhost /usr/local/etc]# vi motion.conf
[root@localhost /usr/local/etc]#
Environment
Motion version: |
3.2.7 |
ffmpeg version: |
|
Libraries: |
minimum. |
Server OS: |
rhel3 |
--
RichardBall - 04 Jul 2007
Answer
You have this in the config
# TCP/IP port for the http server to listen on (default: 0 = disabled)
control_port 80
which means that you assign the port normally used by Apache.
If Apache already runs then you cannot assign same port to another program.
If you start Motion as non-root user then you cannot assign port numbers below 1024. That is a security measure in Linux. This is why the default is 8080.
The other warnings are because you have settings in the config for features that you have not compiled Motion with.
Simple delete or comment those settings out to avoid the noise when Motion starts
You also have a strange setting
# Target base directory for pictures and films
# Recommended to use absolute path. (Default: current working directory)
target_dir /usr/local/etc
Normally etc directories /etc and /usr/local/etc are used for settings files. I would chose another directory to store picture files in.
--
KennethLavrsen - 05 Jul 2007