Debian Codegraph @

doc/avicap/configuration.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <title>Avicap Configuration</title>
5
6 <meta http-equiv="content-type"
7 content="text/html; charset=ISO-8859-1">
8 </head>
9 <body>
10
11 <h2>Configuring Avicap</h2>
12 <br>
13 docu by: Alexander Rawass (<a
14 href="mailto:[email protected]">[email protected]</a>)<br>
15 if anyone can write a better documentation - please do it and tell
16 me<br>
17 <br>
18 To configure Avicap, press the right mouse button and select 'Configure'
19 from the pop-up menu.<br>
20 <br>
21 If overlay mode is enabled, the overlay TV-picture may be drawn above
22 the menues, so can't read/use them.<br>
23 Best is, to go to the very right of the TV-window and click right mouse
24 there, so the menu will pop up beside the TV window.<br>
25 <br>
26 The configure dialog will show these Tabs:<br>
27 <br>
28
29 <ul>
30 <li>Device<br>
31 you can set up your v4l device here, select video input, color mode, capturing
32 size and color space</li>
33 <li>File</li>
34
35 <ul>
36 <li>Destination file<br>
37 this will be the default destination file if you do 'Capture Avi'</li>
38 <li>never overwrite existing files<br>
39 &lt;does not work fully yet&gt;</li>
40 <li><a href="#dirpool">Directory Pool</a><br>
41 you can add directories there that you want to use for your recordings</li>
42 <li>Segmentation<br>
43 you should always use segmentation, because the filesystem you might use
44 might not allow files greater than 2 or 4MB or whatever<br>
45 I've set the segmentation size to 1900000 Kb (1.9GB), so I can be sure
46 that the files work fine on linux as well as my windows-partitions</li>
47
48 </ul>
49 <li>Video</li>
50
51 <ul>
52 <li>Video Compression Format<br>
53 you can select between different video-encoders and there options, when
54 you press 'Change'</li>
55 <li>Video frame rate</li>
56
57 </ul>
58 <li>Audio</li>
59
60 <ul>
61 <li>Audio compression format<br>
62 is not yet implemented<br>
63 you can only record to uncompressed PCM audio, you have to recompress
64 the audio later with tools like qtrecompress, mencoder or transcode or else</li>
65 <li>Audio format</li>
66
67 </ul>
68 <li>Limits</li>
69
70 <ul>
71 <li>you can limit the duration and file size of your recordings<br>
72 I might advise you to leave these options unchecked, but others might
73 think different<br>
74 if you want to record for a specific time, better use the programmable
75 timertable<br>
76 to limit the size of the file, so that your HD doesn't overflow, better
77 use segmentation together with the Directory Pool</li>
78
79 </ul>
80 <li><a href="shutdown_resume.html">Shutdown &amp; Resume</a><br>
81 here you can allow Avicap to shutdown/poweroff and poweron/reboot your
82 computer automatically<br>
83 read here in full length about the <a href="shutdown_resume.html">shutdown
84 &amp; resume modes</a><br>
85 read this, if you want to know about the options to <a
86 href="shutdown_resume.html">configure shutdown &amp; resume</a></li>
87 <li>other</li>
88 <ul>
89 <li>Log to file<br>
90 all important actions get logged into ~/.avm/avicap-userlog.log<br>
91 you have to restart avicap for changes to have effect</li>
92 <li><a href="#password_lock">Password Lock</a><br>
93 here you can set the Lock password or lock avicap<br>
94 if Avicap is locked, programs which are blocked by the EPG cannot be watched<br>
95 </li>
96 </ul>
97
98 </ul>
99 <br>
100
101 <h3><a name="dirpool"></a>Directory Pool</h3>
102 The direcory pool is a list of directories, where you want Avicap to save
103 your recordings.<br>
104 <br>
105 Enter the name of a directory and select, how much space should be always
106 free on this device, then click 'add'<br>
107 <br>
108 The directory will be shown in the Direcory pool table, along with the
109 keep-free setting and the currently free disk space.<br>
110 <br>
111 You can enable or disable each entry per checkbox, disabled entries will
112 not be used for saving.<br>
113 <br>
114 With these checkboxes, you can easilty disable a directory for now and
115 turn it on back later.<br>
116 <br>
117 To actually use the DirPool feature, you have to learn about the 'special
118 way' Avicap uses to select how your files are named, and in which dir they
119 go:<br>
120 <br>
121
122 <h4><a name="naming_files"></a>Naming your files</h4>
123 Avicap saves files in different ways, depending on the way you name them
124 (either in the Configure/File/File Destionation dialog or in the Timertable/Filename
125 entry:<br>
126
127 <ul>
128 <li>absolute or relative paths (filename starts with either '/' or '.')<br>
129 the file will get written to that absolute or relative path, like you'd
130 expect it<br>
131 the filename might get changed if you enabled 'never overwrite existing
132 files'<br>
133 examples:
134 <ul>
135 <li>/home/alex/video/record/movie.avi</li>
136 <li>/windata/record/movie.avi</li>
137 <li>./movie.avi</li>
138 <li>./subdir/movie.avi</li>
139
140 </ul>
141 </li>
142
143 </ul>
144
145 <ul>
146 <li>filename has no path and ends on .avi<br>
147 avicap will select the <a href="#best_directory">'best' directory</a>
148 from the dirpool and write the file into that direcory<br>
149 examples:</li>
150
151 <ul>
152 <li>movie.avi &nbsp; &nbsp; &nbsp; &nbsp;-&gt; /path/from/dirpool/movie.avi</li>
153 <li>movie123.avi &nbsp; &nbsp; -&gt; /another/path/from/dirpool/movie123.avi<br>
154 <br>
155 </li>
156
157 </ul>
158 <li>filename has got no path and hasn't got an .avi ending<br>
159 avicap will select the 'best' directory from the dirpool<br>
160 avicap will append the current date as '-yymmdd-hhmmss.avi' to the filename<br>
161 examples:</li>
162
163 <ul>
164 <li>movie &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-&gt; /path/from/dirpool/movie-030401-190000.avi</li>
165 <li>movie347beta &nbsp; &nbsp; -&gt; /another/path/from/dirpool/movie347beta-030402-201500.avi<br>
166 <br>
167 </li>
168
169 </ul>
170 <li>no filename at all<br>
171 avicap will select the 'best' directory from the dirpool<br>
172 avicap will name the file 'avicap-yymmdd-hhmmss.avi' , depending on your
173 date<br>
174 use this to never care for filenames any more<br>
175 no example ;-)</li>
176
177 </ul>
178 <br>
179 Warning:<br>
180 If you use absolute or relative paths, the dirpool doesn't get used and
181 Avicap also doesn't check for free space on disk or segements to different
182 directory<br>
183 <br>
184 When you use the dirpool, avicap will try to find a directory with enough
185 free space and then segments there.<br>
186 <br>
187 It is recommended to not use absolute/relative paths at all.<br>
188 <br>
189
190 <h4><a name="best_directory"></a>How Avicap finds the 'best' directory</h4>
191 Avicap will select the directory from the dirpool as 'best' , where Avicap
192 has the most free space to write to.<br>
193 <br>
194 Avicap respect the 'keep free' setting, and will stop recording into that
195 directory if the 'keep free' limit is reached.<br>
196 Avicap will then try to select another dir from the dirpool, and continue
197 the current recording by segmenting it.<br>
198 <br>
199 &lt;noy yet&gt; If Avicap cannot find free space anymore, avicap will abort
200 the current recording and disable all other recordings, then it will go into
201 shutdown (if selected).<br>
202 <br>
203 <br>
204
205 <h3><a name="password_lock"></a>Password Lock</h3>
206 The password lock is a feature for parents, who don't have the time to care
207 about their children and simply park them before the TV (or rather Avicap),
208 so they don't have to communicate with their children.<br>
209 <br>
210 If you don't want to care what your children are watching, or if you have
211 better things to do than be with your children, you can use the password
212 lock to simply forbid your children to watch any TV shows you don't like
213 them to watch.<br>
214 <br>
215 <h4>Setting up your unix system for use with password lock</h4>
216 <br>
217 First, you need separate accounts for parent 'parent' and child 'child'.<br>
218 <br>
219 Install avicap as root like you normally do.<br>
220 <br>
221 Now change the owner of your /dev/video device to 'parent' and make sure
222 that your children have no access to /dev/video at all.<br>
223 <br>
224 Then make sure that the home dir of 'parent', the dir ~parent/.avm and especially
225 the files<br>
226 ~parent/.avm/default and ~parent/.avm/avicap-regexps<br>
227 are not readable (or writable) for your children.<br>
228 <br>
229 Then change (as root) the owner of the avicap binary (usually /usr/local/bin/avicap
230 ) to 'parent' and set the setuid-bit on the binary.<br>
231 <br>
232 That way, when avicap is started, it runs as user 'parent'<br>
233 <br>
234 Now start avicap as parent.<br>
235 <br>
236 Go to config/others and do 'Set Password'<br>
237 <br>
238 You get prompted for a password, enter it twice and click the button.<br>
239 <br>
240 Then click 'press to lock'.<br>
241 <br>
242 After that, Avicap will get locked, with those effects:<br>
243 <ul>
244 <li>the epg window will start up</li>
245 <li>on a channel switch, avicap will verify what program/show is currently
246 running on this channel.</li>
247 <li>if the current program is blocked in the EPG, avicap will not allow
248 to switch to that channel</li>
249 <li>avicap won't allow free editing of the regexps file (deleting blocked
250 regeps is not possible)</li>
251 <li>avicap won't allow changing of the EPG provider</li>
252 <li>avicap won't allow unlocking unless password given</li>
253 <li>at a restart of avicap, avicap is still locked</li>
254 </ul>
255 Your children can now use Avicap to watch TV, but it is not possible for
256 them to switch to a blocked channel.<br>
257 <br>
258 WARNING: the timertable has still full access to all channels YET!!<br>
259 <br>
260 You have to have a valid EPG provier, you should have sensible regexps for
261 blocking, and you should make sure that the epg xml date is updated at least
262 every day.<br>
263 <br>
264 If the epg data doesn't get updated, or if avicap cannot find the epg xml
265 file, the lock will not be able to block channels any more.<br>
266 <br>
267 Make also sure that your children also cannot read/write the epg xml data
268 and the nxtvepg data directory etc<br>
269 <br>
270 <br>
271 Security thoughts:<br>
272 <ul>
273 <li>your children could download, compile, run or use other TV software<br>
274 BUT since /dev/video is setuid of 'parent', only TV software which runs as
275 root or 'parent' can access the video device, and your children have to get
276 root access for that</li>
277 <li>the password is saved into the file ~parent/.avm/default unencrypted
278 (yet)<br>
279 BUT, if the permissions of 'parent' and its subdirs are okay, it is not possible
280 for your children to read or write this file</li>
281 <li>the regexps in ~parent/avicap-regexps can also not be edited or read
282 without special permissions</li>
283 <li>you should set the umask of 'parent' to secure values<br>
284 </li>
285 </ul>
286 If you've got ideas to improve security or a flaw in the password lock feature,
287 tell us.<br>
288 <br>
289 </body>
290 </html>