From: Jeffrey G. <jg...@kr...> - 2008-02-03 03:31:35
|
Could the issue be that you are not waiting for the machine to finish the boot process before trying to launch motion? Jeff G. On 2/2/08, Sergio A.S. de Aguiar <ssa...@ss...> wrote: > > Sao Jose, february 2 - 2008 > > My dear friend: > > My motion.con, thread1.conf and thread2.conf are below (If this e-mail > is too big, I apologise - I removed as much as possible of the comments). > > There's no visible errors (I run motion at linux start as daemon). > Another observation : I saw that there is no need to kill the process > and restart motion. I just access the configuration web page (at port > 8080) and the 2 threads are there. I just have to tell it to restart the > thread of cam 2. > > Obs: I have 2 capture boards, bt-878-based, on 2 pci slots - one for > cam1 and other for cam2 (I was experimenting problems due to the switch > from cam1 to cam2, when using just one board that is a pico2000 clone, > with 4 inputs). > So, I am using one input for the pico2000 clone and the input of another > generic bt-878 board. > > Just another question : does motion generate a log file? If so, where? > If not, is this possible? > > Thanks a lot for your suport. > > > Sergio > > motion.conf: > > daemon on > process_id_file /var/run/motion.pid > setup_mode off > norm 1 > frequency 0 > rotate 0 > width 352 > height 288 > framerate 10 # was 2 > minimum_frame_time 0 > auto_brightness off > brightness 0 > contrast 0 > saturation 0 > hue 0 > > > ############################################################ > # Round Robin (multiple inputs on same video device name) > ############################################################ > > roundrobin_frames 1 > roundrobin_skip 1 > switchfilter off > > > ############################################################ > # Motion Detection Settings: > ############################################################ > > threshold 1500 > threshold_tune off > noise_level 32 > noise_tune on > night_compensate off > despeckle EedDl > smart_mask_speed 0 > lightswitch 0 > minimum_motion_frames 1 > pre_capture 0 > post_capture 0 > gap 60 > max_mpeg_time 600 > low_cpu 10 # was 2 > output_all off > > > ############################################################ > # Image File Output > ############################################################ > > output_normal on > output_motion off > quality 75 > ppm off > > > ############################################################ > # FFMPEG related options > # Film (mpeg) file output, and deinterlacing of the video input > # The options movie_filename and timelapse_filename are also used > # by the ffmpeg feature > ############################################################ > > ffmpeg_cap_new on > ffmpeg_cap_motion off > ffmpeg_timelapse 1 > ffmpeg_timelapse_mode hourly > ffmpeg_bps 500000 > ffmpeg_variable_bitrate 0 > ffmpeg_video_codec msmpeg4 > ffmpeg_deinterlace off > > ############################################################ > # Snapshots (Traditional Periodic Webcam File Output) > ############################################################ > > snapshot_interval 0 > > ############################################################ > # Text Display > # %Y = year, %m = month, %d = date, > # %H = hour, %M = minute, %S = second, %T = HH:MM:SS, > # %v = event, %q = frame number, %t = thread (camera) number, > # %D = changed pixels, %N = noise level, \n = new line, > # %i and %J = width and height of motion area, > # %K and %L = X and Y coordinates of motion center > # %C = value defined by text_event - do not use with text_event! > # You can put quotation marks around the text to allow > # leading spaces > ############################################################ > > locate off > > text_right %d/%m/%Y\n%T > text_changes off > text_event %Y%m%d%H%M%S > text_double off > > > ############################################################ > # Target Directories and filenames For Images And Films > # For the options snapshot_, jpeg_, mpeg_ and timelapse_filename > # you can use conversion specifiers > # %Y = year, %m = month, %d = date, > # %H = hour, %M = minute, %S = second, > # %v = event, %q = frame number, %t = thread (camera) number, > # %D = changed pixels, %N = noise level, > # %i and %J = width and height of motion area, > # %K and %L = X and Y coordinates of motion center > # %C = value defined by text_event > # Quotation marks round string are allowed. > ############################################################ > > snapshot_filename snapshot/%d%m%Y/%H/%Y%m%d_%H%M%S-%v-snapshot > jpeg_filename jpeg/%d%m%Y/%H/%Y%m%d_%H%M%S-%v-%q > movie_filename movie/%d%m%Y/%H/%Y%m%d%H%M%S-%v > ffmpeg_filename movie/%d%m%Y/%H/%Y%m%d_%H%M%S-%v > timelapse_filename time_lapse/%d%m%Y/%H/%Y%m%d-%H-timelapse > > > ############################################################ > # Live Webcam Server > ############################################################ > > webcam_quality 50 > webcam_motion off > webcam_maxrate 4 # was 1 > webcam_localhost off > webcam_limit 0 > > > ############################################################ > # HTTP Based Control > ############################################################ > > control_port 8080 > control_localhost on # was off > control_html_output on > > ############################################################ > # Tracking (Pan/Tilt) > ############################################################ > > track_type 0 > track_auto off > ; track_port value > track_motorx -1 > track_motory -1 > track_maxx 0 > track_maxy 0 > track_iomojo_id 0 > track_step_angle_x 10 > track_step_angle_y 10 > track_move_wait 10 > track_speed 255 > track_stepsize 40 > > > ############################################################ > # External Commands, Warnings and Logging: > # You can use conversion specifiers for the on_xxxx commands > # %Y = year, %m = month, %d = date, > # %H = hour, %M = minute, %S = second, > # %v = event, %q = frame number, %t = thread (camera) number, > # %D = changed pixels, %N = noise level, > # %i and %J = width and height of motion area, > # %K and %L = X and Y coordinates of motion center > # %C = value defined by text_event > # %f = filename with full path > # %n = number indicating filetype > # Both %f and %n are only defined for on_picture_save, > # on_movie_start and on_movie_end > # Quotation marks round string are allowed. > ############################################################ > > quiet on > ; on_event_start value > ; on_event_end value > ; on_picture_save value > ; on_motion_detected value > ; on_movie_start value > ; on_movie_end value > > > ############################################################ > # Common Options For MySQL and PostgreSQL database features. > # Options require the MySQL/PostgreSQL options to be active also. > ############################################################ > > sql_log_image off > sql_log_snapshot off > sql_log_mpeg off > sql_log_timelapse off > > sql_query insert into security(camera, filename, frame, file_type, > time_stamp, event_time_stamp) values('%t', '%f', '%q', '%n', '%Y-%m-%d > %T', '%C') > > > ############################################################ > # Database Options For MySQL > ############################################################ > > ; mysql_db value > ; mysql_host value > ; mysql_user value > ; mysql_password value > > > ############################################################ > # Database Options For PostgreSQL > ############################################################ > > ; pgsql_db value > ; pgsql_host value > ; pgsql_user value > ; pgsql_password value > ; pgsql_port 5432 > > > ############################################################ > # Video Loopback Device (vloopback project) > ############################################################ > > ; video_pipe value > ; motion_video_pipe value > > > ############################################################## > # Thread config files - One for each camera. > # Except if only one camera - You only need this config file. > # If you have more than one camera you MUST define one thread > # config file for each camera in addition to this config file. > ############################################################## > > thread /etc/motion/thread1.conf > thread /etc/motion/thread2.conf > # thread /etc/motion/thread3.conf > # thread /etc/motion/thread4.conf > > > > > > > Now, the thread1.conf file: > > # /usr/local/etc/thread1.conf > # > videodevice /dev/video0 > input 1 > text_left CAMERA 1 > > > ############################################################ > # Target Directories and filenames For Images And Films > # For the options snapshot_, jpeg_, mpeg_ and timelapse_filename > # you can use conversion specifiers > # %Y = year, %m = month, %d = date, > # %H = hour, %M = minute, %S = second, > # %v = event, %q = frame number > # %D = changed pixels, %N = noise level, > # %i and %J = width and height of motion area, > # %K and %L = X and Y coordinates of motion center > # Quotation marks round string are allowed. > ############################################################ > > # Target base directory for pictures and films > # Recommended to use absolute patch. (Default: current working directory) > target_dir /mnt/hdc1/www/cameras/cam1 > > > ############################################################ > # Live Webcam Server > ############################################################ > > # The mini-http server listens to this port for requests (default: 0 = > disabled) > webcam_port 8081 > > > > Now, the thread2.conf file: > > > # /usr/local/etc/thread2.conf > # > > videodevice /dev/video1 > input 1 > text_left CAMERA 2 > > > ############################################################ > # Target Directories and filenames For Images And Films > # For the options snapshot_, jpeg_, mpeg_ and timelapse_filename > # you can use conversion specifiers > # %Y = year, %m = month, %d = date, > # %H = hour, %M = minute, %S = second, > # %v = event, %q = frame number > # %D = changed pixels, %N = noise level, > # %i and %J = width and height of motion area, > # %K and %L = X and Y coordinates of motion center > # Quotation marks round string are allowed. > ############################################################ > > # Target base directory for pictures and films > # Recommended to use absolute patch. (Default: current working directory) > target_dir /mnt/hdc1/www/cameras/cam2 > > > ############################################################ > # Live Webcam Server > ############################################################ > > # The mini-http server listens to this port for requests (default: 0 = > disabled) > webcam_port 8082 > > > > > > > RV escreveu: > > Are there any errors in messages? > > > > what do your three config files look like ? > > > > > > > >> Sao Jose, january 30 - 2008 > >> > >> Hi to all: > >> > >> I am loving motion. > >> I mounted a small server with a pentium II 266MHz and 2 capture boards > >> (bt878 based). > >> I configured one motion.conf and two thread configs (thread1.conf and > >> thread2.conf). > >> I also put motion to start automatically with the linux. > >> > >> The problem: > >> When I was using only one thread, there was no start problem, but now I > >> am using 2 threads, when I reboot the linux box, only one camera show > up > >> (port 8081), but camera 2 is not active (port 8082). > >> If I access the control port (8080) the 2 threads are showed there. > >> It works only after I kill the motion process and, then, restart > motion. > >> > >> Any ideas? > >> > >> Thanks > >> > >> My system link is : www.ssaguiar.com/camera/ > >> > >> > >> > ------------------------------------------------------------------------- > >> This SF.net email is sponsored by: Microsoft > >> Defy all challenges. Microsoft(R) Visual Studio 2008. > >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >> _______________________________________________ > >> Motion-user mailing list > >> Mot...@li... > >> https://lists.sourceforge.net/lists/listinfo/motion-user > >> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > >> > >> > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Motion-user mailing list > > Mot...@li... > > https://lists.sourceforge.net/lists/listinfo/motion-user > > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Motion-user mailing list > Mot...@li... > https://lists.sourceforge.net/lists/listinfo/motion-user > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > -- Jeffrey A. Groves jg...@kr... Web Site: http://www.krenim.org/ |