<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Case &#187; ffmpeg</title>
	<atom:link href="http://case.net.ru/tag/ffmpeg/feed/" rel="self" type="application/rss+xml" />
	<link>http://case.net.ru</link>
	<description>Just another technical weblog</description>
	<lastBuildDate>Sat, 19 Jun 2010 14:06:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Видеонаблюдение (часть 2)</title>
		<link>http://case.net.ru/2009/04/09/watching/</link>
		<comments>http://case.net.ru/2009/04/09/watching/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 16:19:15 +0000</pubDate>
		<dc:creator>Case</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[motion]]></category>
		<category><![CDATA[SK-2000F]]></category>
		<category><![CDATA[zoneminder]]></category>

		<guid isPermaLink="false">http://case.net.ru/?p=389</guid>
		<description><![CDATA[Имеется: SK-2000F (EK-500F) PCI плата видео захвата 4 канала 1-25 кадр/сек Вход для камеры: 4 канала Аудиовход: 1 канал Разрешение: 768*576 (PAL), 640*480 (NTSC) Контроль сигнализация: возможность подключения 16-каналов сигнализации Операционная система: 1 2 $ uname -rps FreeBSD 6.4-STABLE amd64 Прописываем в /boot/loader.conf: 1 bktr_load=&#34;YES&#34; Либо сразу в конфиг ядра: 1 2 3 4 device [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://case.net.ru/wp-content/uploads/2009/04/sk-2000f.jpg"><img class="alignright size-full wp-image-399" title="sk-2000f" src="http://case.net.ru/wp-content/uploads/2009/04/sk-2000f.jpg" alt="sk-2000f" width="300" height="182" /></a>Имеется:<br />
SK-2000F (EK-500F) PCI плата видео захвата 4 канала 1-25 кадр/сек<br />
Вход для камеры: 4 канала<br />
Аудиовход: 1 канал<br />
Разрешение: 768*576 (PAL), 640*480 (NTSC)<br />
Контроль сигнализация: возможность подключения 16-каналов сигнализации</p>
<p>Операционная система:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">uname</span> <span style="color: #660033;">-rps</span>
FreeBSD <span style="color: #000000;">6.4</span>-STABLE amd64</pre></td></tr></table></div>

<p>Прописываем в /boot/loader.conf:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">bktr_load</span>=<span style="color: #ff0000;">&quot;YES&quot;</span></pre></td></tr></table></div>

<p>Либо сразу в конфиг ядра:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">device  bktr
device  iicbus
device  iicbb
device  smbus</pre></td></tr></table></div>

<p>Устанавливаем плату. Перезагружаем компьютер. После загрузки видим:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>dmesg.boot <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> bktr
bktr0:  mem 0x90001000-0x90001fff irq <span style="color: #000000;">21</span> at device <span style="color: #000000;">0.0</span> on pci4
bktr0: <span style="color: #7a0874; font-weight: bold;">&#91;</span>GIANT-LOCKED<span style="color: #7a0874; font-weight: bold;">&#93;</span>
bktr0: Warning - card vendor 0x0000 <span style="color: #7a0874; font-weight: bold;">&#40;</span>model 0x0000<span style="color: #7a0874; font-weight: bold;">&#41;</span> unknown.
bktr0: Detected a DPL34-<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">@</span>-<span style="color: #000000; font-weight: bold;">@</span><span style="color: #000000;">0</span> at 0x84
bktr0: Intel Smart Video III<span style="color: #000000; font-weight: bold;">/</span>VideoLogic Captivator PCI,  tuner, dpl3518a dolby.
$ pciconf <span style="color: #660033;">-lv</span>
bktr0<span style="color: #000000; font-weight: bold;">@</span>pci4:<span style="color: #000000;">0</span>:<span style="color: #000000;">0</span>: <span style="color: #007800;">class</span>=0x040000 <span style="color: #007800;">card</span>=0x00000000 <span style="color: #007800;">chip</span>=0x036e109e <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">rev</span></span>=0x11 <span style="color: #007800;">hdr</span>=0x00
    vendor     = <span style="color: #ff0000;">'Conexant (Was: Brooktree Corp)'</span>
    device     = <span style="color: #ff0000;">'Bt878/Fusion 878A Mediastream Controller'</span>
    class      = multimedia
    subclass   = video
none1<span style="color: #000000; font-weight: bold;">@</span>pci4:<span style="color: #000000;">0</span>:<span style="color: #000000;">1</span>: <span style="color: #007800;">class</span>=0x048000 <span style="color: #007800;">card</span>=0x00000000 <span style="color: #007800;">chip</span>=0x0878109e <span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">rev</span></span>=0x11 <span style="color: #007800;">hdr</span>=0x00
    vendor     = <span style="color: #ff0000;">'Conexant (Was: Brooktree Corp)'</span>
    device     = <span style="color: #ff0000;">'7610144D&amp;amp;REV_02\4&amp;amp;1F7DBC9F&amp;amp;0&amp;amp;09F0 TV Video Capture'</span>
    class      = multimedia</pre></td></tr></table></div>

<h1>&nbsp;</h1>
<h2>ZoneMinder</h2>
<h1>&nbsp;</h1>
<p>Устанавливаем.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>matrix.gatewaynet.com<span style="color: #000000; font-weight: bold;">/</span>panix<span style="color: #000000; font-weight: bold;">/</span>zoneminder.tar.gz
$ <span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf zoneminder.tar.gz
$ <span style="color: #c20cb9; font-weight: bold;">mv</span> zoneminder <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>multimedia<span style="color: #000000; font-weight: bold;">/</span>
$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>multimedia<span style="color: #000000; font-weight: bold;">/</span>zoneminder
$ <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></td></tr></table></div>

<p>Если во время сборки возникла ошибка:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">zm_mpeg.cpp: In destructor <span style="color: #ff0000;">'VideoStream::~VideoStream()'</span>:
zm_mpeg.cpp:<span style="color: #000000;">281</span>: error: cannot convert <span style="color: #ff0000;">'ByteIOContext**'</span> to <span style="color: #ff0000;">'ByteIOContext*'</span> <span style="color: #000000; font-weight: bold;">for</span> argument <span style="color: #ff0000;">'1'</span> to <span style="color: #ff0000;">'int
url_fclose(ByteIOContext*)'</span></pre></td></tr></table></div>

<p>то удаляем патч и собираем заново:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>multimedia<span style="color: #000000; font-weight: bold;">/</span>zoneminder
$ <span style="color: #c20cb9; font-weight: bold;">rm</span> files<span style="color: #000000; font-weight: bold;">/</span>patch-zm_mpeg.cpp
$ <span style="color: #c20cb9; font-weight: bold;">make</span> reinstall clean</pre></td></tr></table></div>

<h1>&nbsp;</h1>
<p>Если во время работы программы возникает ошибка:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">zmwatch<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2320</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: ERR <span style="color: #7a0874; font-weight: bold;">&#91;</span>Shared memory <span style="color: #c20cb9; font-weight: bold;">size</span> conflict <span style="color: #000000; font-weight: bold;">in</span> shared_data, expected <span style="color: #000000;">312</span>, got <span style="color: #000000;">320</span><span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></td></tr></table></div>

<p>Удаляем патч и собираем заново:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>multimedia<span style="color: #000000; font-weight: bold;">/</span>zoneminder
$ <span style="color: #c20cb9; font-weight: bold;">rm</span> files<span style="color: #000000; font-weight: bold;">/</span>patch-SharedMem.pm
$ <span style="color: #c20cb9; font-weight: bold;">make</span> reinstall clean</pre></td></tr></table></div>

<h1>&nbsp;</h1>
<p>Если во время работы программы возникает ошибка:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"> WAR <span style="color: #7a0874; font-weight: bold;">&#91;</span>Buffer overrun at index <span style="color: #000000;">54</span>, slow down capture, speed up analysis or increase ring buffer <span style="color: #c20cb9; font-weight: bold;">size</span><span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></td></tr></table></div>

<p>То в настройках камеры надо уменьшить Maximum FPS	и Alarm Maximum FPS или увеличить буферы.</p>
<h1>&nbsp;</h1>
<p>Для корректной работы ZoneMinder прописываем в /etc/sysctl.conf:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">kern.ipc.shm_use_phys=<span style="color: #000000;">1</span>
kern.ipc.shmmax=<span style="color: #000000;">536870912</span>
kern.ipc.shmall=<span style="color: #000000;">524288</span></pre></td></tr></table></div>

<h1>&nbsp;</h1>
<p>Пояснение по режимам: None (и так понятно), Monitor (только просмотр), Modetect (запись только движения что я использую), Record (постоянная запись), Mocord (тоже что и Record, но дополнительно выделяются те области где было замечено движение). (c) densan</p>
<h1>&nbsp;</h1>
<h2>FFMPEG</h2>
<h1>&nbsp;</h1>
<p>Для захвата видео с помощью ffmpeg поэксперементируйте со следующими командами:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #007800;">BKTR_DEV</span>=<span style="color: #000000;">1</span> <span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-y</span> <span style="color: #660033;">-tvstd</span> pal <span style="color: #660033;">-r</span> <span style="color: #000000;">12</span> <span style="color: #660033;">-s</span> 768x576 <span style="color: #660033;">-deinterlace</span> <span style="color: #660033;">-isync</span> <span style="color: #660033;">-f</span> bktr <span style="color: #660033;">-i</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>bktr0 <span style="color: #660033;">-s</span> 768x576 <span style="color: #660033;">-vcodec</span> rawvideo raw.avi
$ <span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-y</span> <span style="color: #660033;">-tvstd</span> pal <span style="color: #660033;">-r</span> <span style="color: #000000;">12</span> <span style="color: #660033;">-s</span> 640x480 <span style="color: #660033;">-deinterlace</span> <span style="color: #660033;">-isync</span> <span style="color: #660033;">-f</span> bktr <span style="color: #660033;">-i</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>bktr0 <span style="color: #660033;">-s</span> 640x480 <span style="color: #660033;">-vcodec</span> rawvideo raw.av
$ <span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-y</span> <span style="color: #660033;">-tvstd</span> pal <span style="color: #660033;">-r</span> <span style="color: #000000;">12</span> <span style="color: #660033;">-s</span> 640x480 <span style="color: #660033;">-deinterlace</span> <span style="color: #660033;">-isync</span> <span style="color: #660033;">-f</span> bktr <span style="color: #660033;">-i</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>bktr0 <span style="color: #660033;">-s</span> 640x480 <span style="color: #660033;">-vcodec</span> mpeg4 <span style="color: #660033;">-vb</span> 800k raw.avi</pre></td></tr></table></div>

<h1>&nbsp;</h1>
<h2>Motion</h2>
<h1>&nbsp;</h1>
<p>Устанавливаем:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>multimedia<span style="color: #000000; font-weight: bold;">/</span>motion<span style="color: #000000; font-weight: bold;">/</span>
$ <span style="color: #c20cb9; font-weight: bold;">make</span> showconfig
===<span style="color: #000000; font-weight: bold;">&amp;</span>gt; The following configuration options are available <span style="color: #000000; font-weight: bold;">for</span> motion-3.2.11_1:
     <span style="color: #007800;">PWCBSD</span>=off <span style="color: #ff0000;">&quot;PWCBSD based Webcams (disables BKTR)&quot;</span>
     <span style="color: #007800;">BKTR</span>=on <span style="color: #ff0000;">&quot;Support for TV Capture cards&quot;</span>
     <span style="color: #007800;">LINUXTHREADS</span>=off <span style="color: #ff0000;">&quot;Use LinuxThreads&quot;</span>
===<span style="color: #000000; font-weight: bold;">&amp;</span>gt; Use <span style="color: #ff0000;">'make config'</span> to modify these settings
$ <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clean</pre></td></tr></table></div>

<p>Прописываем в /etc/rc.conf:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">motion_enable</span>=<span style="color: #ff0000;">&quot;YES&quot;</span></pre></td></tr></table></div>

<p>Взяв за основу /usr/local/etc/motion.conf.sample создаем свой конфиг /usr/local/etc/motion.conf (приведены только изменения):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">daemon on
process_id_file <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>motion.pid
setup_mode off
videodevice <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>bktr0
input <span style="color: #000000;">1</span>
norm <span style="color: #000000;">0</span>
framerate <span style="color: #000000;">5</span>
minimum_frame_time <span style="color: #000000;">0</span>
output_all off
output_normal on
output_motion off
quality <span style="color: #000000;">75</span>
ffmpeg_cap_new off
ffmpeg_cap_motion off
target_dir <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>case<span style="color: #000000; font-weight: bold;">/</span>motion<span style="color: #000000; font-weight: bold;">/</span>
jpeg_filename <span style="color: #000000; font-weight: bold;">%</span>s-<span style="color: #000000; font-weight: bold;">%</span>q
webcam_port <span style="color: #000000;">0</span>
control_port <span style="color: #000000;">0</span>
sql_log_image off
sql_log_snapshot off
sql_log_mpeg off
sql_log_timelapse off</pre></td></tr></table></div>

<h1>&nbsp;</h1>
<h2>Дублирование</h2>
<h1>&nbsp;</h1>
<p>Для дублирования изображения на другой сервер были написаны пару скриптов. На первом сервере list.php, лежащий в каталоге куда плодит картинки motion:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>?php system<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'ls -r -U *.jpg | head -n 100'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>; ?<span style="color: #000000; font-weight: bold;">&gt;</span></pre></td></tr></table></div>

<p>На втором сервере, скрипт на shell забирающий недостающий файлы с первого сервера:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>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
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
&nbsp;
<span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">file</span></span>=<span style="color: #ff0000;">&quot;http://example.com/list.php&quot;</span>
<span style="color: #007800;">url</span>=<span style="color: #ff0000;">&quot;http://example.com/&quot;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">dirname</span> $<span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">while</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #c20cb9; font-weight: bold;">true</span>
<span style="color: #000000; font-weight: bold;">do</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-f</span> list.php
    <span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #c20cb9; font-weight: bold;">rm</span> list.php
    <span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-f</span> files
    <span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #c20cb9; font-weight: bold;">rm</span> files
    <span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
    <span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-o</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #007800;">$file</span>
&nbsp;
    <span style="color: #c20cb9; font-weight: bold;">cat</span> list.php <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">read</span> line
    <span style="color: #000000; font-weight: bold;">do</span>
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-e</span> <span style="color: #007800;">$line</span>
        <span style="color: #000000; font-weight: bold;">then</span>
            <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$url</span><span style="color: #007800;">$line</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; files
        <span style="color: #000000; font-weight: bold;">fi</span>
    <span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-s</span> files
    <span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-o</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #660033;">-c</span> <span style="color: #660033;">-i</span> files
    <span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-e</span> stop <span style="color: #7a0874; font-weight: bold;">&#93;</span>
    <span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #c20cb9; font-weight: bold;">rm</span> stop
&nbsp;
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-f</span> list.php
        <span style="color: #000000; font-weight: bold;">then</span>
            <span style="color: #c20cb9; font-weight: bold;">rm</span> list.php
        <span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-f</span> files
        <span style="color: #000000; font-weight: bold;">then</span>
            <span style="color: #c20cb9; font-weight: bold;">rm</span> files
        <span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
        <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
    <span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
    <span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">1</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">done</span></pre></td></tr></table></div>

<h1>&nbsp;</h1>
<p>Ссылки:</p>
<ul>
<li>Журнал «Системный администратор» №60 (ноябрь, 2007 год).<br />
Строим систему видеонаблюдения и охраны на основе ZoneMinder (стр. 62—67).<br />
Автор: Виталий Банковский.</li>
<li><a href="http://www.chip-dip.ru/product0/9000027604.aspx">SK-2000F (EK-500F) PCI плата видео захвата 4 канала 1-25 кадр/сек</a></li>
<li><a href="http://www.lissyara.su/?id=1861">Lissyara &#8211; ZoneMinder</a></li>
<li><a href="http://www.lissyara.su/?id=1869">Lissyara &#8211; ZoneMinder 2</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://case.net.ru/2009/04/09/watching/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
