-
Notifications
You must be signed in to change notification settings - Fork 1
/
motion_guide.html
5021 lines (5011 loc) · 372 KB
/
motion_guide.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<h1><a name="Motion_Guide_One_Large_Document"></a> Motion Guide - One Large Document. </h1>
This version of the Guide is made for inclusion in the Motion download package for off line reading.
<p />
If you read this document from the distribution package of Motion or from some not up to date mirror you should know that the URL for the always up to date version is <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionGuide" target="_top">http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionGuide</a>. If you are already on the Foswiki based Motion site clicking the link just mentioned will lead you to the index page for the Motion Guide documents.
<hr />
This topic consists of the following subtopics:
<a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionOverview">MotionOverview</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/KnownProblems">KnownProblems</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/InstallOverview">InstallOverview</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/PrepareInstall">PrepareInstall</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/ConfigureScript">ConfigureScript</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MakeInstall">MakeInstall</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/UpgradingFromOlderVersion">UpgradingFromOlderVersion</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/RunningMotionConfigFiles">RunningMotionConfigFiles</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/CommandLineOptions">CommandLineOptions</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/ConfigFileOptions">ConfigFileOptions</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/SignalsKill">SignalsKill</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/ErrorLogging">ErrorLogging</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/CaptureDeviceOptions">CaptureDeviceOptions</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionDetectionSettings">MotionDetectionSettings</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/ImageFileOutput">ImageFileOutput</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/TuningMotion">TuningMotion</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MpegFilmsFFmpeg">MpegFilmsFFmpeg</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/SnapshotsWebCam">SnapshotsWebCam</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/TextFeatures">TextFeatures</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/AdvancedFilenames">AdvancedFilenames</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/ConversionSpecifiers">ConversionSpecifiers</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/WebcamServer">WebcamServer</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/RemoteControlHttp">RemoteControlHttp</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/ExternalCommands">ExternalCommands</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/TrackingControl">TrackingControl</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/UsingDatabases">UsingDatabases</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/LoopbackDevice">LoopbackDevice</a>.
<hr />
<p />
<a name="foswikiTOC"></a><div class="foswikiToc"> <ul>
<li> <a href="#Motion_Guide_Installation"> Motion Guide - Installation</a> <ul>
<li> <a href="#Motion_Overview"> Motion Overview</a> <ul>
<li> <a href="#What_is_Motion"> What is Motion?</a>
</li> <li> <a href="#How_do_I_get_Motion_and_what_doe"> How do I get Motion and what does it cost?</a>
</li> <li> <a href="#Maintenance_and_Support"> Maintenance and Support</a>
</li> <li> <a href="#Which_version_to_download_and_us"> Which version to download and use?</a>
</li> <li> <a href="#What_features_does_Motion_have"> What features does Motion have?</a>
</li> <li> <a href="#FreeBSD"> FreeBSD</a>
</li> <li> <a href="#MacOSX"> MacOSX</a>
</li> <li> <a href="#Documentation"> Documentation</a>
</li> <li> <a href="#Supported_Hardware"> Supported Hardware</a>
</li></ul>
</li> <li> <a href="#Known_Problems"> Known Problems</a>
</li> <li> <a href="#How_do_I_install_Motion"> How do I install Motion?</a>
</li> <li> <a href="#Preparation_For_Install"> Preparation For Install</a>
</li> <li> <a href="#Configure_Script"> Configure Script</a>
</li> <li> <a href="#Make"> Make</a> <ul>
<li> <a href="#Make_Install"> Make Install</a>
</li> <li> <a href="#Un_install"> Un-install</a>
</li> <li> <a href="#Additional_Make_Options"> Additional Make Options</a>
</li></ul>
</li> <li> <a href="#Upgrading_From_Older_Version"> Upgrading From Older Version</a>
</li> <li> <a href="#Running_Motion"> Running Motion</a> <ul>
<li> <a href="#Important_Definitions"> Important Definitions</a>
</li> <li> <a href="#The_Config_Files"> The Config Files</a>
</li></ul>
</li> <li> <a href="#Command_Line_Options"> Command Line Options</a>
</li> <li> <a href="#Config_File_Options"> Config File Options</a> <ul>
<li> <a href="#Options_in_Alphabetical_Order"> Options in Alphabetical Order.</a>
</li> <li> <a href="#Obsolete_Options"> Obsolete Options</a>
</li></ul>
</li> <li> <a href="#Signals_sent_with_e_g_kill_comma"> Signals (sent with e.g. kill command)</a>
</li> <li> <a href="#Error_Logging"> Error Logging</a>
</li></ul>
</li> <li> <a href="#Motion_Guide_Basic_Features"> Motion Guide - Basic Features</a> <ul>
<li> <a href="#Capture_Device_Options_The_Basic"> Capture Device Options - The Basic Setup</a>
</li> <li> <a href="#video4linux_V4L_devices"> video4linux (V4L) devices</a> <ul>
<li> <a href="#auto_brightness"> auto_brightness</a>
</li> <li> <a href="#brightness"> brightness</a>
</li> <li> <a href="#contrast"> contrast</a>
</li> <li> <a href="#framerate"> framerate</a>
</li> <li> <a href="#frequency"> frequency</a>
</li> <li> <a href="#height"> height </a>
</li> <li> <a href="#hue"> hue</a>
</li> <li> <a href="#input"> input </a>
</li> <li> <a href="#minimum_frame_time"> minimum_frame_time</a>
</li> <li> <a href="#norm"> norm</a>
</li> <li> <a href="#rotate"> rotate</a>
</li> <li> <a href="#saturation"> saturation</a>
</li> <li> <a href="#tunerdevice"> tunerdevice</a>
</li> <li> <a href="#v4l2_palette"> v4l2_palette</a>
</li> <li> <a href="#videodevice"> videodevice</a>
</li> <li> <a href="#width"> width</a>
</li></ul>
</li> <li> <a href="#Network_Cameras"> Network Cameras</a> <ul>
<li> <a href="#netcam_http"> netcam_http</a>
</li> <li> <a href="#netcam_proxy"> netcam_proxy</a>
</li> <li> <a href="#netcam_tolerant_check"> netcam_tolerant_check</a>
</li> <li> <a href="#netcam_url"> netcam_url</a>
</li> <li> <a href="#netcam_userpass"> netcam_userpass</a>
</li></ul>
</li> <li> <a href="#Round_Robin_feature"> Round Robin feature</a> <ul>
<li> <a href="#roundrobin_frames"> roundrobin_frames</a>
</li> <li> <a href="#roundrobin_skip"> roundrobin_skip</a>
</li> <li> <a href="#switchfilter"> switchfilter</a>
</li></ul>
</li> <li> <a href="#Motion_Detection_Settings"> Motion Detection Settings</a> <ul>
<li> <a href="#area_detect"> area_detect</a>
</li> <li> <a href="#despeckle"> despeckle</a>
</li> <li> <a href="#gap"> gap</a>
</li> <li> <a href="#lightswitch"> lightswitch </a>
</li> <li> <a href="#mask_file"> mask_file</a>
</li> <li> <a href="#max_mpeg_time"> max_mpeg_time</a>
</li> <li> <a href="#minimum_motion_frames"> minimum_motion_frames</a>
</li> <li> <a href="#noise_level"> noise_level</a>
</li> <li> <a href="#noise_tune"> noise_tune</a>
</li> <li> <a href="#output_all"> output_all</a>
</li> <li> <a href="#post_capture"> post_capture</a>
</li> <li> <a href="#pre_capture"> pre_capture</a>
</li> <li> <a href="#smart_mask_speed"> smart_mask_speed</a>
</li> <li> <a href="#threshold"> threshold</a>
</li> <li> <a href="#threshold_tune"> threshold_tune</a>
</li></ul>
</li> <li> <a href="#Image_File_Output"> Image File Output</a> <ul>
<li> <a href="#output_motion"> output_motion</a>
</li> <li> <a href="#output_normal"> output_normal</a>
</li> <li> <a href="#ppm"> ppm</a>
</li> <li> <a href="#quality"> quality</a>
</li></ul>
</li> <li> <a href="#Tuning_Motion"> Tuning Motion</a>
</li> <li> <a href="#Generating_MPEG_films_with_ffmpe"> Generating MPEG films with ffmpeg</a> <ul>
<li> <a href="#ffmpeg_bps"> ffmpeg_bps</a>
</li> <li> <a href="#ffmpeg_cap_motion"> ffmpeg_cap_motion</a>
</li> <li> <a href="#ffmpeg_cap_new"> ffmpeg_cap_new</a>
</li> <li> <a href="#ffmpeg_deinterlace"> ffmpeg_deinterlace</a>
</li> <li> <a href="#ffmpeg_timelapse"> ffmpeg_timelapse</a>
</li> <li> <a href="#ffmpeg_timelapse_mode"> ffmpeg_timelapse_mode</a>
</li> <li> <a href="#ffmpeg_variable_bitrate"> ffmpeg_variable_bitrate</a>
</li> <li> <a href="#ffmpeg_video_codec"> ffmpeg_video_codec</a>
</li></ul>
</li> <li> <a href="#Snapshots_The_Traditional_Period"> Snapshots - The Traditional Periodic Web Camera</a> <ul>
<li> <a href="#snapshot_interval"> snapshot_interval</a>
</li></ul>
</li> <li> <a href="#Text_Features"> Text Features</a> <ul>
<li> <a href="#locate"> locate</a>
</li> <li> <a href="#text_changes"> text_changes</a>
</li> <li> <a href="#text_double"> text_double</a>
</li> <li> <a href="#text_event"> text_event</a>
</li> <li> <a href="#text_left"> text_left</a>
</li> <li> <a href="#text_right"> text_right</a>
</li></ul>
</li> <li> <a href="#Advanced_Filenames"> Advanced Filenames</a> <ul>
<li> <a href="#ffmpeg_filename_now_called_movie"> ffmpeg_filename (now called movie_filename)</a>
</li> <li> <a href="#jpeg_filename"> jpeg_filename</a>
</li> <li> <a href="#movie_filename"> movie_filename</a>
</li> <li> <a href="#snapshot_filename"> snapshot_filename</a>
</li> <li> <a href="#target_dir"> target_dir</a>
</li> <li> <a href="#timelapse_filename"> timelapse_filename</a>
</li></ul>
</li> <li> <a href="#Conversion_Specifiers_for_Advanc"> Conversion Specifiers for Advanced Filename and Text Features</a>
</li> <li> <a href="#Webcam_Server"> Webcam Server</a> <ul>
<li> <a href="#webcam_limit"> webcam_limit</a>
</li> <li> <a href="#webcam_localhost"> webcam_localhost</a>
</li> <li> <a href="#webcam_maxrate"> webcam_maxrate</a>
</li> <li> <a href="#webcam_motion"> webcam_motion</a>
</li> <li> <a href="#webcam_port"> webcam_port</a>
</li> <li> <a href="#webcam_quality"> webcam_quality</a>
</li></ul>
</li> <li> <a href="#Remote_Control_with_http"> Remote Control with http</a> <ul>
<li> <a href="#control_authentication"> control_authentication</a>
</li> <li> <a href="#control_html_output"> control_html_output</a>
</li> <li> <a href="#control_localhost"> control_localhost</a>
</li> <li> <a href="#control_port"> control_port</a>
</li></ul>
</li> <li> <a href="#External_Commands"> External Commands</a> <ul>
<li> <a href="#on_area_detected"> on_area_detected</a>
</li> <li> <a href="#on_camera_lost"> on_camera_lost</a>
</li> <li> <a href="#on_event_end"> on_event_end</a>
</li> <li> <a href="#on_event_start"> on_event_start</a>
</li> <li> <a href="#on_motion_detected"> on_motion_detected</a>
</li> <li> <a href="#on_movie_end"> on_movie_end</a>
</li> <li> <a href="#on_movie_start"> on_movie_start</a>
</li> <li> <a href="#on_picture_save"> on_picture_save</a>
</li> <li> <a href="#quiet"> quiet</a>
</li> <li> <a href="#What_happened_to_mail_and_sms"> What happened to mail and sms?</a> <ul>
<li> <a href="#Sending_email_at_start_of_event"> Sending email at start of event</a>
</li> <li> <a href="#Sending_SMS_at_start_of_event"> Sending SMS at start of event</a>
</li></ul>
</li></ul>
</li></ul>
</li> <li> <a href="#Motion_Guide_Special_Features"> Motion Guide - Special Features</a> <ul>
<li> <a href="#Tracking_Control"> Tracking Control</a> <ul>
<li> <a href="#Tracking_Feature_with_Logitech_Q"> Tracking Feature with Logitech Quickcam Sphere/Orbit</a>
</li> <li> <a href="#track_auto"> track_auto</a>
</li> <li> <a href="#track_iomojo_id"> track_iomojo_id</a>
</li> <li> <a href="#track_maxx"> track_maxx</a>
</li> <li> <a href="#track_maxy"> track_maxy</a>
</li> <li> <a href="#track_motorx"> track_motorx</a>
</li> <li> <a href="#track_motory"> track_motory</a>
</li> <li> <a href="#track_move_wait"> track_move_wait</a>
</li> <li> <a href="#track_port"> track_port</a>
</li> <li> <a href="#track_speed"> track_speed</a>
</li> <li> <a href="#track_step_angle_x"> track_step_angle_x</a>
</li> <li> <a href="#track_step_angle_y"> track_step_angle_y</a>
</li> <li> <a href="#track_stepsize"> track_stepsize</a>
</li> <li> <a href="#track_type"> track_type</a>
</li></ul>
</li> <li> <a href="#Using_Databases"> Using Databases</a> <ul>
<li> <a href="#sql_log_image"> sql_log_image</a>
</li> <li> <a href="#sql_log_mpeg"> sql_log_mpeg</a>
</li> <li> <a href="#sql_log_snapshot"> sql_log_snapshot</a>
</li> <li> <a href="#sql_log_timelapse"> sql_log_timelapse</a>
</li> <li> <a href="#sql_query"> sql_query</a>
</li></ul>
</li> <li> <a href="#MySQL"> MySQL</a> <ul>
<li> <a href="#mysql_db"> mysql_db</a>
</li> <li> <a href="#mysql_host"> mysql_host</a>
</li> <li> <a href="#mysql_password"> mysql_password</a>
</li> <li> <a href="#mysql_user"> mysql_user</a>
</li></ul>
</li> <li> <a href="#PostgreSQL"> PostgreSQL</a> <ul>
<li> <a href="#pgsql_db"> pgsql_db</a>
</li> <li> <a href="#pgsql_host"> pgsql_host</a>
</li> <li> <a href="#pgsql_password"> pgsql_password</a>
</li> <li> <a href="#pgsql_port"> pgsql_port</a>
</li> <li> <a href="#pgsql_user"> pgsql_user</a>
</li></ul>
</li> <li> <a href="#Video4Linux_Loopback_Device"> Video4Linux Loopback Device</a> <ul>
<li> <a href="#motion_video_pipe"> motion_video_pipe</a>
</li> <li> <a href="#video_pipe"> video_pipe</a>
</li></ul>
</li></ul>
</li></ul>
</div>
<p />
<h1><a name="Motion_Guide_Installation"></a> Motion Guide - Installation </h1>
<p />
<h2><a name="Motion_Overview"></a> <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionOverview">Motion Overview</a> </h2>
<p />
<h3><a name="What_is_Motion"></a> What is Motion? </h3>
Motion is a program that monitors the video signal from one or more cameras and is able to detect if a significant part of the picture has changed. Or in other words, it can detect motion.
<p />
The program is written in C and is made for the Linux operating system.
<p />
Motion is a command line based tool. It has absolutely no graphical user interface. Everything is setup either via the command line or via a set of configuration files (simple ASCII files that can be edited by any ASCII editor).
<p />
The output from motion can be:
<p /> <ul>
<li> jpg files
</li> <li> ppm format files
</li> <li> mpeg video sequences
</li></ul>
<p />
<h3><a name="How_do_I_get_Motion_and_what_doe"></a> How do I get Motion and what does it cost? </h3>
Motion is an open source type of project. It does not cost anything. Motion is published under the <a href="http://www.gnu.org/licenses/gpl.html" rel="nofollow" target="_top">GNU GENERAL PUBLIC LICENSE</a> (GPL) version 2 or later. It may be a bit difficult to understand all the details of the license text (especially if your first language is not English). It means that you can get the program, install it and use it freely. You do not have to pay anything and you do not have to register anywhere or ask the author or publisher for permission. The GPL gives you both rights and some very reasonable duties when it comes to copying, distribution and modification of the program. So in very general terms you do not have to worry about licensing as a normal hobby user. If you want to use Motion in a commercial product, if you want to distribute either modified or original versions of Motion - for free or for a fee, you should read the license carefully. For more information about free software and the GPL, I encourage you to study the very interesting documents about the subject available the of the Free Software Foundation pages about the <a href="http://www.gnu.org/philosophy/philosophy.html" rel="nofollow" target="_top">Philosophy of the GNU Project</a>.
<p />
<h3><a name="Maintenance_and_Support"></a> Maintenance and Support </h3>
Both Motion and the Motion Guide are written by people that do all this as a hobby and without asking for any payments or donations. We have a life other than developing Motion and its documentation. This means that bugfixes and updates to this guide are done as our time and families allow it. You are however encouraged to participate and contribute in a very active <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MailingList">mailing list</a>. It is a list with a very "positive attitude" and with many contributors that propose features, post patches, discuss problems and patiently answer newbie questions with a very positive spirit. Expect 1-10 emails per day.
<p />
To get motion direct your browser to the <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome" class="foswikiCurrentWebHomeLink">Motion Homepage</a>.
<p />
On the <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/DownloadFiles">Download Files</a> page you will find a links to the latest stable version both as sources and binaries for some of the most popular Linux distributions. You will also find links to development versions. Snapshot releases are special test releases that are normally very stable. Every day a <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionDailySourceSnap">Motion Daily Source Snap</a> is created from the <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionSubversion">Motion Subversion</a>
<p />
Motion was originally written by Jeroen Vreeken who still actively participates in the development of Motion and later Folkert van Heusden continued as a lead programmer with Kenneth Lavrsen responsible for Motion Guide, website and releases on Sourceforge.
<p />
From version 3.1.12 Motion is now project managed entirely by Kenneth Lavrsen, and the project now shift towards being developed by many contributers.
<p />
For support we encourage you to join the mailing list instead of writing to Jeroen, Folkert or Kenneth directly. We are all very active on the mailing list and by using the mailing list much more users will have benefit of the answers. Newbies and stupid questions are welcome on the list. Contributions in the form of patches are also very welcome on the mailing list.
<p />
<h3><a name="Which_version_to_download_and_us"></a> Which version to download and use? </h3>
Versions 3.2.X are the current version. There is at the moment no development branch. The versions 3.1.X ended at 3.1.20 and there will be no more 3.1.X releases. If you use use a version older than 3.2.X you are encouraged to update.
<p />
Since 3.1.13 quite many options have been renamed to make setting up Motion easier. From 3.1.17-18 some unfinished features have been removed. The Berkeley mpeg feature is now removed because the ffmpeg feature is now mature and much better working. At version 3.1.18 a new network camera feature was introduced replacing the old cURL based netcam code and introducing support of mjpeg streaming cameras. However this new code was quite difficult to get stable. During the development of 3.2.2 the network camera code was totally rewritten again learning from our experience and now finally it seems to be stable.
<p />
Motion is included in Debian, while Ubuntu and RPM users can find binary packages on the Motion Sourceforge file download page.
<p />
<h3><a name="What_features_does_Motion_have"></a> What features does Motion have? </h3>
See more description at the <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome" class="foswikiCurrentWebHomeLink">Motion Homepage</a>. <ul>
<li> Taking snapshots of movement
</li> <li> Watch multiple video devices at the same time
</li> <li> Watch multiple inputs on one capture card at the same time
</li> <li> Live streaming webcam (using multipart/x-mixed-replace)
</li> <li> Real time creation of mpeg movies using libraries from ffmpeg
</li> <li> Take automated snapshots on regular intervals
</li> <li> Take automated snapshots at irregular intervals using cron
</li> <li> Executing external program when detecting movement
</li> <li> Execute external program at the beginning of an event of several motion detections.
</li> <li> Execute external program at the end of an event of several motion detections.
</li> <li> Execute external program when a picture is saved.
</li> <li> Execute external program when a movie mpeg is created (opened)
</li> <li> Execite external program when a movie mpeg ends (closed)
</li> <li> Motion tracking
</li> <li> Feed events to an MySQL or PostgreSQL database.
</li> <li> Feed video back to a video4linux loopback for real time viewing
</li> <li> Web interface using <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/RelatedProjects">Motion Related Projects</a> such as <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionCGI">motion.cgi</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/KennethsWebcamPackage">Kenneths Webcam Package</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/KevinsWebpage">Kevins Webpage</a>, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/XMotionTool">X-Motion</a> and many more.
</li> <li> User configurable and user defined on screen display.
</li> <li> Control via simple web interface.
</li> <li> Automatic noise and threshold control
</li> <li> Ability to control the pan/tilt of a Logitech Sphere (or Orbit) camera
</li> <li> Highly configurable display of text on images.
</li> <li> High configurable definition of path and file names of the stored images and films.
</li></ul>
<p />
You can find more information and links at the <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome" target="_top">Motion Homepage</a>.
<p />
<h3><a name="FreeBSD"></a> FreeBSD </h3>
<p />
Motion is originally developed for Linux and it is still mainly developed and supported for this platform. From version 3.1.15 an experimental port has been made by Angel Carpintero. Not all features of Motion are supported at this time and it still needs a lot of test time on different hardware. Angel is very interested in feedback. Join the Motion Mailing List and give your feedback there. Patches for bugfixes and for enabling the missing features are very welcome. The rest of this guide is still mainly targeted for Linux users. Follow this topic to <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/FreeBSD" target="_top">Install FreeBSD</a>.
<p />
<h3><a name="MacOSX"></a> MacOSX </h3>
<p />
From Motion version 3.2.4 it is now also possible to build and install Motion under <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MacOSX">MacOSX</a>. Feature set it the same as for FreeBSD. See the <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MacOSX">MacOSX</a> topic for specific help how to install Motion and its dependencies on <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MacOSX">MacOSX</a>. Again this port has been contributed by Angel Carpintero.
<p />
<h3><a name="Documentation"></a> Documentation </h3>
You have the following sources of information:
<p /> <ul>
<li> This <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionGuide">Motion Guide</a>.
</li> <li> The <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/FrequentlyAskedQuestions">Frequently Asked Questions</a>
</li> <li> The author of the program has written a description of the <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionTechnology">technology behind motion</a>.
</li> <li> The man page. After installation simply write man motion
</li> <li> The default motion.conf file (motion-dist.conf) that comes with the package.
</li></ul>
<p />
<h3><a name="Supported_Hardware"></a> Supported Hardware </h3>
Input devices: Here we are thinking about the cameras.
<p />
Motion supports video input from two kinds of sources.
<p />
Standard video4linux devices (e.g. /dev/video0). Motion has no drivers for cameras. Installing the camera itself is outside the scope of this document. But here are some nice links. <ul>
<li> <a href="http://www.saillard.org/pwc/" rel="nofollow" target="_top">Driver for USB Philips cameras (and more)</a> This driver is a fork of the old pcw(x) driver which got kicked out of the kernel. (see: <a href="http://www.smcc.demon.nl/webcam/" rel="nofollow" target="_top">http://www.smcc.demon.nl/webcam/</a>). See also the new <a href="http://www.lavrsen.dk/foswiki/bin/view/PWC/WebHome">PWC Documentation Site</a> which is hosted in this wiki.
</li> <li> <a href="http://bytesex.org/bttv/index.html" rel="nofollow" target="_top">BTTV Driver</a> (capture cards). Part of many distributions now.
</li> <li> <a href="http://alpha.dyndns.org/ov511/" rel="nofollow" target="_top">OV511</a> based USB cameras are supported as standard by newer Kernels.
</li> <li> <a href="http://spca50x.sourceforge.net/spca50x.php" rel="nofollow" target="_top">kernel driver for USB cameras based on Sunplus spca50</a>
</li> <li> <a href="http://rivatv.sourceforge.net/" rel="nofollow" target="_top">rivatv.sourceforge.net</a> Driver for tv/composite/svideo input with most Nvidia based video cards. Network cameras (which are actually cameras with a built in web server that can be connected directory to your network).
</li> <li> <a href="http://www.axis.com/" rel="nofollow" target="_top">Axis Communications</a>
</li></ul>
<p />
<p />
<h2><a name="Known_Problems"></a> <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/KnownProblems">Known Problems</a> </h2>
See also the <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/FrequentlyAskedQuestions">Frequently Asked Questions</a> and <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/BugReports">Bug Reports</a> for known open bugs.
<p />
<strong>Kernel 2.6 and pwc.</strong> Note that for kernel 2.6 there is a new release of the Philips WebCam (pwc) drivers 10.0.X. It is recommended to install this. At the time of this being written the 2.6.12+ kernels have a version of pwc built-in but it is a cripled version which can only support very small picture size. You can however download the latest source code of the pwc driver (at this time 10.0.11) and build it without having to rebuild your kernel. But you will need to have either the kernel sources or a special kernel-header package installed to compile it. See <a href="http://www.lavrsen.dk/foswiki/bin/view/PWC/InstallationOfPWC">Installation of PWC</a> page which is also hosted in this wiki.
<p />
If you use use a <strong>Logitech Quickcam Orbit or Sphere</strong> using the driver pwc/pwcx and kernel 2.6.X you should replace the file in the Motion sources called pwc-ioctl.h with the one that comes with the your pwc version. Motion is shipped with 3 versions of pwc-ioctl.h-VERSION. Rename the one that fits your major pwc version number best to pwc-ioctl.h (after renaming the current to something else). There has been some small adjustments in the API that requires that you have the right header file.
<p />
<strong>Camera picture dimensions must be multiple of 16</strong>
Dimentions of camera image must have both height and width that are a multiple of 16. Thís is normally not a problem. All standard sizes like 640, 480, 352, 320, 288, 240, ...etc are multiples of 16. But if you intend to monitor a network camera which is saving jpeg images you may have to pay attention to the dimensions of the picture.
<p />
<strong>ffmpeg_filename has changed name to movie_filename</strong>
The 3.2.5 release contains a motion_guide and man page in which it was forgotten to change ffmpeg_filename to movie_filename. Please note that the option that defines the filenames for mpeg movies is now called movie_filename. This change is made because we may soon implement alternatives to ffmpeg and then ffmpeg_filename will be a bad name. This is fixed in release 3.2.5.1.
<p />
<strong>error: `time_current_frame' undeclared (first use in this function)</strong>
A bug in 3.2.5 and 3.2.5.1 where a bugfix related to snapshot feature has created a new bug when you compile Motion without ffmpeg libs installed. This is fixed in 3.2.6.
<p />
<p />
<p />
<h2><a name="How_do_I_install_Motion"></a> <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/InstallOverview">How do I install Motion</a>? </h2>
Motion is mainly distributed as source files that you must compile yourself. There is also an RPM made on Fedora Core 3. And Debian packages are available for selected versions.
<p />
The short overview of the steps to install Motion from sources. <ul>
<li> <strong>Preparation</strong>: Motion uses a number of shared libraries that must be installed on your computer before you can build Motion. The needed shared libraries depends on the features you wish to use. Features network camera, ffmpeg, MySQL and PostgreSQL needs specific shared libraries installed. See preparation section for more information.
</li></ul>
<p /> <ul>
<li> <strong>Download</strong> the motion source files (distributed as tar'ed and compressed files). Place the file in a place of your own choice.
</li></ul>
<p /> <ul>
<li> <strong>Untar and uncompress</strong> the file to the place you want the program installed. Editor recommends placing the motion source file directory in /usr/local. If you do not have write access to the /usr/local directory (you are under the mercy of an ignorant system administrator with a severe case of paranoia) - you can install the program in a directory in your home directory. You will then need to read the next section about how to configure before you compile the program. Below is shown the exact commands using version 3.2.X installed in /usr/local as an example (replace /path/to with the actual placement of the tar.gz file).
</li></ul>
<UL>
<pre>
cd /usr/local
tar -xvzf /path/to/motion-3.2.X.tar.gz
</pre>
</UL> <ul>
<li> You will now have created a directory called motion-3.2.X. You can rename it to motion (mv motion-3.1.X motion). I recommend creating a symbolic link to the current version. This way you can more easily experiment with different version simply by changing the link.
</li></ul>
<UL>
<pre>
ln -s motion-3.2.X motion
</pre>
</UL> <ul>
<li> Now change to the new directory
</li></ul>
<UL>
<pre>
cd motion
</pre>
</UL> <ul>
<li> Run configure. You can start with the defaults. If you need to modify the installation parameters you can read the next section.
</li></ul>
<UL>
<pre>
./configure
</pre>
</UL> <ul>
<li> Build the code
</li></ul>
<UL>
<pre>
make
</pre>
</UL> <ul>
<li> Install the code, manual page, etc
</li></ul>
<UL>
<pre>
make install
</pre>
</UL> <ul>
<li> In /etc/motion/etc you will find a file called motion-dist.conf. If it is the first time you install Motion - rename this file to <strong>motion.conf</strong> and edit as a minimum the settings: <strong>videodevice</strong>, <strong>input</strong>, <strong>norm</strong>, <strong>frequency</strong>, <strong>width</strong>, <strong>height</strong> and <strong>target_dir</strong>. That should get you going.
</li></ul>
<p /> <ul>
<li> Run the program. To enable more features you must modify the config file.
</li></ul>
<UL>
<pre>
motion
</pre>
</UL>
<p />
<p />
<h2><a name="Preparation_For_Install"></a> <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/PrepareInstall">Preparation For Install</a> </h2>
<p />
Note: If you're using SuSE 9.2, you might want to <strong>ADDITIONALLY</strong> have a look at <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/SuSE92Prep">Compiling on SuSE 9.2</a>. As mentioned on that page as well, <em>you will still need to read the instructions here as well</em>.
<p />
Before you start you may need to install a number of shared libraries that Motion uses. If they are missing the feature will simply normally not be included. Most of these libraries can be found on the CDs of your distribution. A few will have to be downloaded from the Internet. Note that when you install software using pre-compiled binaries (Redhat type RPMs, Debian debs etc) you normally only get what is needed to run the programs themselves. In order to compile other programs from source that uses these pre-compiled libraries you also need to installed the development packages. These are normally called the same name as the package suffixed by -devel or -dev. These development packages contains the header files (xxx.h) that Motion needs to build with the shared libraries. If you build a library from sources you already have these header files. It is recommended to simply install the pre-compiled binary packages and their development brothers.
<p />
This is a list of shared libraries used by Motion and the RPM packages that provides them.
<p />
Motion will always need these libraries to be built and work
<table cellspacing="0" id="table1" cellpadding="0" class="foswikiTable" rules="rows" border="1">
<thead>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<th bgcolor="#687684" valign="top" class="foswikiTableCol0 foswikiFirstCol"> <a rel="nofollow" href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionGuideOneLargeDocument;sortcol=0;table=1;up=0#sorted_table" title="Sort by this column"><font color="#ffffff">Library</font></a> </th>
<th bgcolor="#687684" valign="top" class="foswikiTableCol1"> <a rel="nofollow" href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionGuideOneLargeDocument;sortcol=1;table=1;up=0#sorted_table" title="Sort by this column"><font color="#ffffff">RPM Packages</font></a> </th>
<th bgcolor="#687684" valign="top" class="foswikiTableCol2 foswikiLastCol"> <a rel="nofollow" href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionGuideOneLargeDocument;sortcol=2;table=1;up=0#sorted_table" title="Sort by this column"><font color="#ffffff">Debian Packages</font></a> </th>
</tr>
</thead>
<tbody>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> libm, libresolv, libdl, libpthread, libc, ld-linux, libcrypt, and libnsl </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1"> glibc and glibc-devel </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol"> libc6 , libc6-dev ,libglib1.2 </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> libjpeg </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol1"> libjpeg and libjpeg-devel </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol2 foswikiLastCol"> libjpeg62 and libjpeg62-dev ( optional libjpeg-mmx-dev ) </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol foswikiLast"> libz </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLast"> zlib and zlib-devel </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol foswikiLast"> zlib1g and zlib1g-dev </td>
</tr>
</tbody></table>
<p />
For generating mpeg films with <strong>ffmpeg</strong> you need this library:<br>
(See also the section <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MpegFilmsFFmpeg">Generating MPEG films with ffmpeg</a> for how to install ffmpeg and libavformat/libavcodec)<br>
<em>Motion must be installed with revision 0.4.8 or 0.4.9pre1 of ffmpeg. Motion will also work with later CVS snapshots of ffmpeg but the API of the ffmpeg libraries changes all the time and without warning. If you have problems compiling Motion or with running an RPM of Motion you may try with an older CVS snapshot of ffmpeg. The Motion developers will like to know when ffmpeg changes and breaks Motion so we can fix it. Please file a bug report then with the exact date of the ffmpeg CVS version you have trouble with.</em>
<p />
<table cellspacing="0" id="table2" cellpadding="0" class="foswikiTable" rules="rows" border="1">
<thead>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<th bgcolor="#687684" valign="top" class="foswikiTableCol0 foswikiFirstCol"> <a rel="nofollow" href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionGuideOneLargeDocument;sortcol=0;table=2;up=0#sorted_table" title="Sort by this column"><font color="#ffffff">Library</font></a> </th>
<th bgcolor="#687684" valign="top" class="foswikiTableCol1"> <a rel="nofollow" href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionGuideOneLargeDocument;sortcol=1;table=2;up=0#sorted_table" title="Sort by this column"><font color="#ffffff">RPM Packages</font></a> </th>
<th bgcolor="#687684" valign="top" class="foswikiTableCol2 foswikiLastCol"> <a rel="nofollow" href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionGuideOneLargeDocument;sortcol=2;table=2;up=0#sorted_table" title="Sort by this column"><font color="#ffffff">Debian Packages</font></a> </th>
</tr>
</thead>
<tbody>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol foswikiLast"> libavcodec, libavformat </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLast"> ffmpeg and ffmpeg-devel or install from source </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol foswikiLast"> libavcodec-dev libavcodec0d libavformat-dev libavformat0d (*) </td>
</tr>
</tbody></table>
<p />
<strong>Debian</strong> has not provided deb packages for ffmpeg due patent issues. However this is about to change so checkout for availability of newer versions of debian ffmpeg debs. You can build yourself from source or from <a href="http://debian-multimedia.org/" rel="nofollow" target="_top">Christian Marillat website</a> or apt repository.
<pre>
deb http://www.debian-multimedia.org stable main # ( etch )
deb http://www.debian-multimedia.org testing main # ( lenny )
deb http://www.debian-multimedia.org unstable main # ( sid )
</pre>
Add the suitable line to your /etc/apt/sources.list and run this:
<pre>
apt-get update ; apt-get -y install libavcodec-dev libavcodec0d libavformat-dev libavformat0d
</pre>
<p />
For logging in <strong>MySQL</strong> you need this library:
<table cellspacing="0" id="table3" cellpadding="0" class="foswikiTable" rules="rows" border="1">
<thead>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<th bgcolor="#687684" valign="top" class="foswikiTableCol0 foswikiFirstCol"> <a rel="nofollow" href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionGuideOneLargeDocument;sortcol=0;table=3;up=0#sorted_table" title="Sort by this column"><font color="#ffffff">Library</font></a> </th>
<th bgcolor="#687684" valign="top" class="foswikiTableCol1"> <a rel="nofollow" href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionGuideOneLargeDocument;sortcol=1;table=3;up=0#sorted_table" title="Sort by this column"><font color="#ffffff">RPM Packages</font></a> </th>
<th bgcolor="#687684" valign="top" class="foswikiTableCol2 foswikiLastCol"> <a rel="nofollow" href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionGuideOneLargeDocument;sortcol=2;table=3;up=0#sorted_table" title="Sort by this column"><font color="#ffffff">Debian Packages</font></a> </th>
</tr>
</thead>
<tbody>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol foswikiLast"> libmysqlclient </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLast"> mysql and mysql-devel </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol foswikiLast"> libmysqlclient15-off and libmysqlclient15-dev </td>
</tr>
</tbody></table>
<p />
For logging in <strong>PostgreSQL</strong> you need this library:
<table cellspacing="0" id="table4" cellpadding="0" class="foswikiTable" rules="rows" border="1">
<thead>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<th bgcolor="#687684" valign="top" class="foswikiTableCol0 foswikiFirstCol"> <a rel="nofollow" href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionGuideOneLargeDocument;sortcol=0;table=4;up=0#sorted_table" title="Sort by this column"><font color="#ffffff">Library</font></a> </th>
<th bgcolor="#687684" valign="top" class="foswikiTableCol1"> <a rel="nofollow" href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionGuideOneLargeDocument;sortcol=1;table=4;up=0#sorted_table" title="Sort by this column"><font color="#ffffff">RPM Packages</font></a> </th>
<th bgcolor="#687684" valign="top" class="foswikiTableCol2 foswikiLastCol"> <a rel="nofollow" href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionGuideOneLargeDocument;sortcol=2;table=4;up=0#sorted_table" title="Sort by this column"><font color="#ffffff">Debian Packages</font></a> </th>
</tr>
</thead>
<tbody>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol foswikiLast"> libpq </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLast"> postgresql-libs and postgresql-devel </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol foswikiLast"> libpq-dev and libpq4 </td>
</tr>
</tbody></table>
<p />
<p />
<h2><a name="Configure_Script"></a> <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/ConfigureScript">Configure Script</a> </h2>
Configure is script that you run to setup the build environment for the C-compiler. It generates the "Makefile" which the program "make" uses to compile and install the software.
<p />
To run configure your current directory must be the motion directory. You type
<p />
<code>./configure</code>
<p />
You can add the parameter <code>./configure --help</code> to get help on the different switches.
<p />
This is walk through of the options.
<p />
<div class="editTable">
<form name="edittable1_Motion_MotionGuideOneLargeDocument" action="http://www.lavrsen.dk/foswiki/bin/viewauth/Motion/ConfigureScript#edittable1" method="post" onsubmit="foswikiStrikeOne(this)"><input type='hidden' name='validation_key' value='?fd8fc4e77a93cc2c570a08a93d66e7dd' />
<input type="hidden" name="ettablenr" value="1" />
<input type="hidden" name="etedit" value="on" />
<table cellspacing="0" id="table5" cellpadding="0" class="foswikiTable" rules="rows" border="1">
<thead>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<th width="160" bgcolor="#687684" align="left" valign="top" class="foswikiTableCol0 foswikiFirstCol"> <font color="#ffffff">Option</font> </th>
<th bgcolor="#687684" align="left" valign="top" class="foswikiTableCol1"> <font color="#ffffff">Description <br /> Defaults for the options <br /> are specified in brackets [ ]</font> </th>
<th bgcolor="#687684" align="left" valign="top" class="foswikiTableCol2 foswikiLastCol"> <font color="#ffffff">Editors comment</font> </th>
</tr>
</thead>
<tbody>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="160" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> -h, --help </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1"> display this help and exit </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="160" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --help=short </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol1"> display options specific to this package </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol2 foswikiLastCol"> This command shows the options special to motion. Recommended </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="160" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --help=recursive </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1"> display the short help of all the included packages </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="160" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> -V, --version </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol1"> display version information and exit </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol2 foswikiLastCol"> Gives no useful information </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="160" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> -q, --quiet, --silent </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1"> do not print `checking...' messages </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol"> Not very useful. Output to screen is only a few lines anyway. </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="160" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --cache-file=FILE </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol1"> cache test results in FILE. [disabled] </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol2 foswikiLastCol"> No function </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="160" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> -C, --config-cach </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1"> alias for `--cache-file=config.cache' </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol"> No function </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="160" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> -n, --no-create </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol1"> do not create output files </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol2 foswikiLastCol"> Used for testing if other switches produce error - without writing anything to the disk </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="160" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --srcdir=DIR </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1"> find the sources in DIR. [configure dir or `..'] </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol"> DIR is a directory path. Editor recommends having the current directory being the motion installation directory and not using this switch. Then it defaults to the same directory as where the configure script is which is the current directory. </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<th width="160" bgcolor="#687684" align="left" valign="top" class="foswikiTableCol0 foswikiFirstCol"> <font color="#ffffff">Installation directories:</font> </th>
<th bgcolor="#687684" align="left" valign="top" class="foswikiTableCol1"> <font color="#ffffff"> </font> </th>
<th bgcolor="#687684" align="left" valign="top" class="foswikiTableCol2 foswikiLastCol"> <font color="#ffffff"> </font> </th>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="160" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --prefix=PREFIX </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1"> install architecture-independent files in PREFIX <br /> [/usr/local] </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol"> The default /usr/local means that the executable binary "motion" is installed in /usr/local/bin, the manual page in /usr/local/man/man1, the document files in /usr/local/docs/motion-version, configuration file in /usr/local/etc, and some examples config files in /usr/local/examples/motion-versionEditor recommends keeping this default setting. <br /> If you are experimenting with many parallel versions it may be interesting to set the PREFIX to e.g. /usr/local/motion and then add /usr/local/motion/bin to your search path (or simply cd /usr/local/motion/bin before execution). <br /> This way you can change version just by changing the symbolic link in /usr/local/motion as suggested earlier in this guide. <br /> If you are installing the software on a machine where you have no access to the /usr/local but have write access to a home directory, then you should change this to point to a directory within your home tree. <br /> Example: --prefix=$HOME </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="160" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --exec-prefix=EPREFIX </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol1"> install architecture-dependent files in EPREFIX <br /> [PREFIX] </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol2 foswikiLastCol"> If you set this it only defines an alternative installation directory for the executable binary. <br /> Note: The executable binary will be placed in a directory "bin" below the directory specified by this option <br /> Editor recommends leaving this as default (i.e. not setting it). </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="160" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --bindir=DIR </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1"> user executables [EPREFIX/bin] </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol"> With this option you can control exactly in which directory the executable binary is installed. The previous option automatically adds the bin directory. Here you are in fill control. </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="160" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --sbindir=DIR </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol1"> System admin executables [EPREFIX/sbin] </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol2 foswikiLastCol"> Not used by motion. Ignore it. </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="160" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --libexecdir=DIR </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1"> program executables [EPREFIX/libexec] </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol"> Not used by motion. Ignore it. </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="160" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --datadir=DIR </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol1"> read-only architecture-independent data [PREFIX/share] </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol2 foswikiLastCol"> Not used by motion. Ignore it. </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="160" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --sysconfdir=DIR </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1"> read-only single-machine data [PREFIX/etc] </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol"> This is where motion both installs the default configuration file and also where it later searches for it. <br /> Motion searches for the configuration file "motion.conf" in the following order: <br /> <UL> <br /> 1. Current directory from where motion was invoked <br /> 2. $HOME/.motion <br /> 3. The sysconfig directory set by this switch. If not defined the default is /usr/local/etc/ <br /> </UL> <br /> Editor recommends leaving this at default. Be careful if you run "make install" again. This will overwrite the motion.conf file that you have edited and experimented with for hours. Make sure to keep a copy in a safe place. Alternatively, copy the working file to the motion base install directory. Then make install will simply copy the same file back again. </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="160" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --sharedstatedir=DIR </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol1"> modifiable architecture-independent data [PREFIX/com] </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol2 foswikiLastCol"> Not used by motion. Ignore it. </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="160" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --localstatedir=DIR </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1"> modifiable single-machine data [PREFIX/var] </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol"> Not used by motion. Ignore it. </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="160" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --libdir=DIR </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol1"> object code libraries [EPREFIX/lib] </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol2 foswikiLastCol"> Not used by motion. Ignore it. </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="160" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --includedir=DIR </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1"> C header files [PREFIX/include] </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol"> Not used by motion. Ignore it. </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="160" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --oldincludedir=DIR </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol1"> C header files for non-gcc [/usr/include] </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol2 foswikiLastCol"> Not used by motion. Ignore it. </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="160" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --infodir=DIR </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1"> info documentation [PREFIX/info] </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol"> Not used by motion. Ignore it. </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="160" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --mandir=DIR </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol1"> man documentation [PREFIX/man] </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol2 foswikiLastCol"> Editor recommends the default. </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<th width="160" bgcolor="#687684" align="left" valign="top" class="foswikiTableCol0 foswikiFirstCol"> <font color="#ffffff">Optional Packages:</font> </th>
<th bgcolor="#687684" align="left" valign="top" class="foswikiTableCol1"> <font color="#ffffff"> </font> </th>
<th bgcolor="#687684" align="left" valign="top" class="foswikiTableCol2 foswikiLastCol"> <font color="#ffffff"> </font> </th>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="160" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --with-linuxthreads </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1"> Use linuxthreads in BSD instead of native phtreads </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol"> Only relevant for BSD. In Linux we always use this per default. </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="160" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --with-pwcbsd </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol1"> Use pwcbsd based webcams ( only BSD ) </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol2 foswikiLastCol"> This option allow to build motion to support <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/V4L">V4L</a>/V4L2 in BSD. <br /> <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/HowtoMotionPwcFreeBSD">HowtoMotionPwcFreeBSD</a> </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="160" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --without-bktr </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1"> Exclude to use bktr subsystem , that usually useful for devices as network cameras </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol"> ONLY used in *BSD </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="160" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --without-v4l </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol1"> Exclude using v4l (video4linux) subsystem. Makes Motion so it only supports network cameras. </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol2 foswikiLastCol"> Can be used if you do not need <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/V4L">V4L</a> support and maybe lack some of the libraries for it. </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="160" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --with-jpeg-mmx=DIR </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1"> Specify the prefix for the install path for jpeg-mmx for optimized jpeg handling (optional). If this is not specified motion will try to find the library /usr/lib/libjpeg-mmx.a /usr/local/lib/libjpeg-mmx.a. </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol"> Considered experimental </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="160" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --with-ffmpeg=DIR </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol1"> Specify the path for the directory prefix in which the library and headers are installed. <br /> If not specified configure will search in /usr/ and /usr/local/ </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol2 foswikiLastCol"> DIR is the directory PREFIX in which the ffmpeg shared libraries and their headers are installed. <br /> If you install ffmpeg from sources and use the default directories or if ffmpeg is installed as a binary package (RPM or deb) you do not need to specify the directory prefix. Configure will find the libraries automatically. If you installed ffmpeg from sources and specified a different --prefix when building ffmpeg you must use the same value for the DIR ( --with-ffmpeg=DIR). <br /> For more information on FFmpeg see the <a href="http://ffmpeg.sourceforge.net/" rel="nofollow" target="_top">FFmpeg project home page</a>. <br /> FFmpeg is a package that enables streamed video mpeg signal from your web camera to a browser. <br /> Editor recommends installing ffmpeg from source and in the directory /usr/local/ffmpeg and build ffmpeg with ./configure --enable-shared. <br /> This places libraries in /usr/local/lib and headers in /usr/local/include. </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="160" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --without-ffmpeg </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1"> Do not compile with ffmpeg </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol"> Use this if you do not want to compile with ffmpeg. If ffmpeg is not installed you do not need to specify that Motion must build without ffmpeg. </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="160" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --with-mysql-lib=DIR </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol1"> Lib directory of MySQL </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol2 foswikiLastCol"> Normally, configure will scan all possible default installation paths for MySQL libs. When its fail, use this command to tell configure where MySQL libs installation root directory is. </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="160" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --with-mysql-include=DIR </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1"> Include directory with headers for MySQL </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol"> Normally, configure will scan all possible default installation paths for MySQL include. When its fail, use this command to tell configure where MySQL include installation directory is. This is the directory with the MySQL header files. </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="160" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --without-mysql </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol1"> Do not compile with MySQL support </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol2 foswikiLastCol"> Use this if you do not want to include MySQL support in the package. <br /> This can also be useful if you get compilation errors related to MySQL and you actually do not need the feature anyway. </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="160" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --without-pgsql </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1"> Do not compile with PostgreSQL support </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol"> Use this if you do not want to include PostgreSQL support in the package. <br /> This can also be useful if you get compilation errors related to PostgreSQL and you actually do not need the feature anyway. </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="160" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --with-pgsql-include=DIR </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol1"> Normally, configure will scan all possible default installation paths for pgsql include. When it fails, use this command to tell configure where pgsql include installation root directory is. </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol2 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="160" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --with-pgsql-lib=DIR </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1"> Normally, configure will scan all possible default installation paths for pgsql libs. When it fails, use <br /> this command to tell configure where pgsql libs installation root directory is. </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="160" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> --without-optimizecpu </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol1"> Exclude autodetecting platform and cpu type. This will disable the compilation of gcc optimizing code by platform and cpu. </td>
<td bgcolor="#edf4f9" valign="top" class="foswikiTableCol2 foswikiLastCol"> Use this if the optimization causes problems. Typically if you build on some non X386 compatible CPU. </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<th width="160" bgcolor="#687684" align="left" valign="top" class="foswikiTableCol0 foswikiFirstCol"> <font color="#ffffff">Developers options</font> </th>
<th bgcolor="#687684" align="left" valign="top" class="foswikiTableCol1"> <font color="#ffffff"> </font> </th>
<th bgcolor="#687684" align="left" valign="top" class="foswikiTableCol2 foswikiLastCol"> <font color="#ffffff"> </font> </th>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="160" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol foswikiLast"> --with-developer-flags </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLast"> Add additional warning flags for the compiler. </td>
<td bgcolor="#ffffff" valign="top" class="foswikiTableCol2 foswikiLastCol foswikiLast"> This option is for developers only. It produces a flood of warnings that helps the developer to write more robust code. These warnings are normally harmless but can sometimes be a latent defect. <br /> For more information about these flags, see <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/CompileWithDeveloperFlags">CompileWithDeveloperFlags</a> </td>
</tr>
</tbody></table>
<input type="hidden" name="ettablechanges" value="" />
<input type="hidden" name="etheaderrows" value="0" />
<input type="hidden" name="etfooterrows" value="0" />
<input class="editTableEditImageButton" type="image" src="http://www.lavrsen.dk/foswiki/pub/System/EditTablePlugin/edittable.gif" alt="Edit this table" /> </form>
</div><!-- /editTable -->
<p />
<p />
<h2><a name="Make"></a> <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MakeInstall">Make</a> </h2>
When you run make, all the C-source files are automatically compiled and linked. Just look out for error messages.
<p />
Make uses a file called "Makefile" which is generated by the "configure" script you just ran. If you have special needs you can manually edit this file. Next time you run configure a new Makefile will be generated and your changes are lost.
<p />
<img src="http://www.lavrsen.dk/foswiki/pub/System/DocumentGraphics/warning.gif" alt="ALERT!" title="ALERT!" width="16" height="16" border="0" /> Attention!
<p />
If you have run <code>make</code> before, you should run a <code>make clean</code> before running <code>make</code> again. This cleans out all the object files that were generated the previous time you ran <code>make</code>. If you do not run <code>make clean</code> first before you rebuild Motion you may not get the additional feature included. For example: If you built Motion without ffmpeg support and then add it later - and rebuild Motion without running <code>make clean</code> first - the ffmpeg feature does not get compiled into the Motion binary.
<p />
First time you build motion run <code>./configure</code>, <code>make</code>, <code>make install</code>. If you need to build it again (to run with different configure options) run <code>./configure</code>, <code>make clean</code>, <code>make</code>, <code>make install</code>.
<p />
<h3><a name="Make_Install"></a> Make Install </h3>
<code>make install</code> simply copies all the nice files that were generated during the compilation/linking that make did.
<p />
Makes the directories (if they do not already exist)(path shown are the defaults): /usr/local/bin, usr/local/man/man1, /usr/local/etc, /usr/local/share/doc/motion-3.2.X, and /usr/local/share/doc/examples/motion-3.2.X.
<p />
Copies the following files from the base motion directory (assuming the default PREFIX /usr/local was used when running configure - otherwise adjust to the actuals you chose) <ul>
<li> Executable binary "motion" to /usr/local/bin
</li> <li> Manual page "motion.1" to /usr/local/man/man1
</li> <li> Document files "CHANGELOG, COPYING, CREDITS, INSTALL, and README to /usr/local/share/doc/motion-3.2.X
</li> <li> Example configuration files "*.conf" to /usr/local/share/doc/examples/motion-3.2.X
</li> <li> Configuration file "motion-dist.conf" to /usr/local/etc
</li></ul>
Note that the any existing files are overwritten. The default config file motion-dist.conf is named like this so that you do not get your working motion.conf file overwritten when you upgrade Motion.
<p />
<h3><a name="Un_install"></a> Un-install </h3>
From the motion base installation directory you simply run <code>make uninstall</code>
<p />
And delete the base installation directory in /usr/local and any link pointing to it. If you have forgotten where you installed it or someone else did it for you, simply search for the files and directories starting with motion. If the filenames and the directories match the names described in the "Make Install" section of this document, you can safely delete them.
<p />
<h3><a name="Additional_Make_Options"></a> Additional Make Options </h3>
The make command can be run with several options. <code>make</code>, <code>make install</code> and <code>make uninstall</code> has already been described above.
<p /> <dl>
<dt> <strong>make clean</strong> </dt><dd> deletes all the binary files (object files) and the motion binary generated by make. It also deletes temporary files and any jpg files that motion has saved in the motion source directory. It is very important to always run <code>make clean</code> before you run <code>make</code> if you change the configuration (like adding features such as ffmpeg) and rebuild motion.
</dd></dl>
<p /> <dl>
<dt> <strong>make distclean</strong> </dt><dd> deletes the files: config.status, config.log, config.cache, Makefile, and motion.spec.
</dd></dl>
<p /> <dl>
<dt> <strong>make updateguide</strong> </dt><dd> fetches a fresh new copy of this guide and place it in your motion source directory. Note that the pictures are not downloaded.
</dd></dl>
<p /> <dl>
<dt> <strong>make dist</strong> </dt><dd> performs make clean, make distclean and make updateguide in one single operation.
</dd></dl>
<p />
<p />
<h2><a name="Upgrading_From_Older_Version"></a> <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/UpgradingFromOlderVersion">Upgrading From Older Version</a> </h2>
If you are upgrading from motion 3.0.X or from an older version of 3.1.X you should note that many options have been removed from version 3.1.13 and forward and many new have arrived. You still have most of the old features. The options have been changed for two reasons. New more flexible features and to simplify getting started with Motion. With 3.2.1 the changes are significant. You should also note these major differences. <ul>
<li> The use of thread files has completely changed. Read the section "The Config Files" carefully.
</li> <li> The mask file format has changed. Read the section about "Mask File"
</li> <li> Pre_capture feature introduced in 3.1.12
</li> <li> Advanced filename feature enables very flexible filename definitions (3.1.13)
</li> <li> onffmpegclose options enables running external scripts when mpeg file is closed (3.1.13)
</li> <li> despeckle feature improves motion detection and noise immunity (3.1.13)
</li> <li> Minimum_motion_frames feature prevents short noise events from being saved (3.1.14)
</li> <li> If you use the database features you need to note that from version 3.1.15 and forward the fields have been redefined. Removed are second, minute, hour, day, month and year. Instead these six have been replaced by a real timestamp field called time_stamp. The relatively new field 'type' has been renamed to 'file_type' to avoid reserved SQL words. A new field 'text_left' has been added which stores the text given by the config option text_left. And last a field called 'camera' has been added which stores the thread number.
</li> <li> From 3.1.15 the ffmpeg feature now also supports mpeg4 and msmpeg4. The build process of Motion now use ffmpeg libraries as shared libraries. The --with-libavcodec has been replaced by a --with-ffmpeg which only needed to specify if you are installing ffmpeg from sources in a non-standard location. If you have installed ffmpeg from sources already you will need to rebuild by running (from within the ffmpeg source file root) ./configure --enable-shared followed by make and make install. If you had installed ffmpeg from a binary RPM or deb you probably don't have to do anything.
</li> <li> Rotate feature was introduced in 3.1.15
</li> <li> Berkeley mpeg feature has been removed in 3.1.18 (use ffmpeg - it is much better)
</li> <li> Incomplete prediction feature was removed in 3.1.18. (lack of interest in finishing it)
</li> <li> Smart Mask feature introduced in 3.1.18
</li> <li> output_normal can now also have the value "first" which means only save first jpg from each event (3.1.18)
</li> <li> ffmpeg-0.4.9 is now supported. Motion detection mpegs can no longer be saved as mpeg1 (ffmpeg does not support non-standard framerates in 0.4.9) (3.1.18)
</li> <li> Motion now supports most (not all) mjpeg streaming cameras (3.1.18).
</li> <li> output_normal can now have values "first" or "best". It is used when you need to present a link to an mpeg movie shown as a single jpeg image. "First" saves the first picture frame in the new event. "Best" saves the picture frame with most motion content (most changed pixels) when the event is over. "on" still saves all motion detection picture frames plus pre and post captured images. With "best" you can set jpeg_filename = "preview" and it gets the same filename as the mpeg file but with extension .jpg. Option "locate" can also take the value "preview" which makes it only draw a rectangel on the jpeg but not on the mpeg movie. (3.2.1)
</li> <li> The xmlrpc remote control interface is replaced by a much nicer http remote control interface. (3.2.1)
</li> <li> All the options that calls external programs have been made much more generic. New onxxxx options have been added. Execute, sms and mail have been replaced by the generic on_event_start. (3.2.1)
</li> <li> New setup mode makes setting all the detection options much easier.
</li> <li> netcam now also supports proxies (3.2.2) and ftp (3.2.4)
</li> <li> text on the pictures can be set to double size (3.2.2)
</li> <li> Tracking with Logitech Sphere/Orbit improved (3.2.4)
</li> <li> SQL database feature is now fully configurable so you can control which fields you have in the database.
</li> <li> Many new conversion specifiers have been added which can be used both in filenames, commands, text, and SQL database features (3.2.2-3.2.4)
</li> <li> Stepper motor tracking feature extended to also include a Y axis (3.2.5)
</li> <li> ffmpeg_filename has been renamed to movie_filename to prepare for alternative implementation to mpeg files made with ffmpeg (3.2.5)
</li> <li> New feature: ffmpeg_deinterlace which can de-interlace using the ffmpeg libs (3.2.5)
</li> <li> New feature: minimum_frame_time which enables Motion to run at frame rates below 2. minimum_gap feature was removed since this was useless and the new minimum_frame_time feature replaces it with much better function. (3.2.7)
</li> <li> New feature: process_id_file which writes a PID file when started and removes it when stopped (3.2.7)
</li> <li> <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/V4L2">V4L2</a> support with many new supported palettes : <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/V4L2">V4L2</a>_PIX_FMT_SBGGR8, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/V4L2">V4L2</a>_PIX_FMT_SN9C10X, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/V4L2">V4L2</a>_PIX_FMT_JPEG, <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/V4L2">V4L2</a>_PIX_FMT_UYVY (3.2.8)
</li> <li> ffmpeg_video_codec allow swf (3.2.8)
</li> <li> <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/V4L2">V4L2</a> fix support for : <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/V4L2">V4L2</a>_PIX_FMT_MJPEG (3.2.9)
</li> <li> ffmpeg_video_codec allow flv and ffv1(3.2.9)
</li> <li> v4l2_palette: allow to choose preferable palette to be use by motion to capture from those supported by your videodevice.
</li> <li> netcam_http: setup keep_alive , 1.1 or 1.0 http method to be used by netcam.
</li> <li> on_camera_lost: Command to be executed when a camera can't be opened or if it is lost.
</li> <li> <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/AreaDetect">AreaDetect</a>, on_area_detected: Command to be executed by area_detect trigger.
</li> <li> <a href="http://www.lavrsen.dk/foswiki/bin/view/Motion/ConfigOptionNetcamTolerantCheck">ConfigOptionNetcamTolerantCheck</a> , netcam_tolerant_check less strict jpeg checks for network cameras with a poor/buggy firmware ( 3.2.11 ).
</li></ul>
<p />
The table below shows the new options in the left column, and obsolete options in the right column. If the there are options on both sides in a row it means that the options in the left column replaced the options in the right column.
<p />
<p />
<div class="editTable">
<form name="edittable1_Motion_MotionGuideOneLargeDocument" action="http://www.lavrsen.dk/foswiki/bin/viewauth/Motion/UpgradingFromOlderVersion#edittable1" method="post" onsubmit="foswikiStrikeOne(this)"><input type='hidden' name='validation_key' value='?fd8fc4e77a93cc2c570a08a93d66e7dd' />
<input type="hidden" name="ettablenr" value="1" />
<input type="hidden" name="etedit" value="on" />
<table cellspacing="0" id="table6" cellpadding="0" class="foswikiTable" rules="rows" border="1">
<thead>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<th width="50%" bgcolor="#687684" valign="top" class="foswikiTableCol0 foswikiFirstCol"> <a rel="nofollow" href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionGuideOneLargeDocument;sortcol=0;table=6;up=0#sorted_table" title="Sort by this column"><font color="#ffffff">New Options</font></a> </th>
<th width="50%" bgcolor="#687684" valign="top" class="foswikiTableCol1 foswikiLastCol"> <a rel="nofollow" href="http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionGuideOneLargeDocument;sortcol=1;table=6;up=0#sorted_table" title="Sort by this column"><font color="#ffffff">Obsolete Options</font></a> </th>
</tr>
</thead>
<tbody>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> text_left (3.1.13) <br /> text_right (3.1.13) <br /> text_changes (3.1.13) </td>
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLastCol"> drawtext_user (3.1.13) <br /> drawtext_shots (3.1.13) <br /> drawtext_changes (3.1.13) </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> jpeg_filename (3.1.13) <br /> ffmpeg_filename (3.1.13) <br /> snapshot_filename (3.1.13) <br /> timelapse_filename (3.1.13) <br /> predict_filename (3.1.13) <br /> (predict_filename removed in 3.1.18) </td>
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol1 foswikiLastCol"> oldlayout (3.1.13) <br /> snapshots_overwrite (3.1.13) </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> snapshot_interval (3.1.13) </td>
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLastCol"> snapshots (3.1.13) </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> </td>
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol1 foswikiLastCol"> realmotion (3.1.13) </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> despeckle (3.1.13) </td>
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> pre_capture (3.1.12) </td>
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> ffmpeg_timelapse (v. 3.1.14) </td>
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLastCol"> ffmpeg_timelaps (renamed v 3.1.14) </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> ffmpeg_timelapse_mode (3.1.14) </td>
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> sql_log_image (3.1.14) <br /> sql_log_snapshot (3.1.14) <br /> sql_log_mpeg (3.1.14) <br /> sql_log_timelapse (3.1.14) <br /> sql_log_prediction (3.1.14) </td>
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> minimum_motion_frames (3.1.14) </td>
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> rotate (3.1.15) </td>
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> ffmpeg_variable_bitrate (3.1.15) <br /> ffmpeg_video_codec (3.1.15) </td>
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> </td>
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLastCol"> berkeley_single_directory (3.1.18) <br /> mpeg_encode (3.1.18) <br /> mpeg_encode_bin (3.1.18) <br /> adjust_rate off (3.1.18) <br /> jpg_cleanup (3.1.18) </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> </td>
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol1 foswikiLastCol"> predict_filename (3.1.18) <br /> predict_enable (3.1.18) <br /> predict_threshold (3.1.18) <br /> predict_description (3.1.18) <br /> sql_log_prediction (3.1.18) </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> brightness (3.1.18) <br /> contrast (3.1.18) <br /> saturation (3.1.18) <br /> hue (3.1.18) </td>
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> smart_mask_speed (3.1.18) </td>
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> output_normal <br /> valid values are now "on", "off", "first" (3.1.18) and "best" (3.2.1) </td>
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> setup_mode (3.2.1) </td>
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol1 foswikiLastCol"> always_changes (3.2.1) </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> locate <br /> valid values are now "on", "off", "preview" (3.2.1) </td>
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> jpeg_filename <br /> Besides normal path names the value "preview" has speciel meaning together with output_normal = "best" (3.2.1) </td>
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> control_html_output (3.2.1) </td>
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> on_event_start (3.2.1) </td>
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol1 foswikiLastCol"> execute (3.2.1) <br /> sms (3.2.1) <br /> mail (3.2.1) </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> on_event_end (3.2.1) </td>
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> on_motion_detected (3.2.1) </td>
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> on_picture_save (3.2.1) </td>
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLastCol"> onsave (3.2.1) </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> on_movie_start (3.2.1) <br /> on_movie_end (3.2.1) </td>
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol1 foswikiLastCol"> onmpeg (3.2.1) <br /> onffmpegclose (introduced 3.1.13)(renamed to on_movie_end 3.2.1) </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> netcam_proxy (3.2.2) </td>
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> text_double (3.2.2) </td>
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> webcam_motion <br /> Feature has been heavily improved so it is actually usefull now (3.2.2). </td>
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> netcam_url <br /> Now also supports fetching single frame jpeg pictures via ftp using ftp:// syntax (3.2.4) </td>
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> track_step_angle_x (3.2.4) <br /> track_step_angle_y (3.2.4) <br /> Add better configuration of auto tracking with a Logitech Sphere/Orbit camera. </td>
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> track_move_wait (3.2.4) <br /> track_auto (3.2.4) <br /> Adds better configuration of auto tracking feature </td>
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> sql_query (3.2.4) <br /> Adds full flexibility of defining fields when using the SQL database features. </td>
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> track_maxy (3.2.5) <br /> track_motory (3.2.5) </td>
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> movie_filename (3.2.5) </td>
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLastCol"> ffmpeg_filename (3.2.5) </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> ffmpeg_deinterlace (3.2.5) </td>
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> minimum_frame_time (3.2.7) </td>
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLastCol"> minimum_gap (3.2.7) </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> process_id_file (3.2.7) </td>
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> ffmpeg_video_codec allow swf (3.2.8) </td>
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol0 foswikiFirstCol"> ffmpeg_video_codec allow flv and ffv1 (3.2.9) </td>
<td width="50%" bgcolor="#edf4f9" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableEven foswikiTableRowdataBgSorted0 foswikiTableRowdataBg0">
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol0 foswikiFirstCol"> v4l2_palette (3.2.10) <br /> netcam_http (3.2.10) <br /> on_camera_lost (3.2.10) <br /> area_detect, on_area_detected(3.2.10) <br /> ffmpeg_video_codec mov(3.2.10) <br /> output_normal center(3.2.10) </td>
<td width="50%" bgcolor="#ffffff" valign="top" class="foswikiTableCol1 foswikiLastCol"> </td>
</tr>
<tr class="foswikiTableOdd foswikiTableRowdataBgSorted1 foswikiTableRowdataBg1">