Mercurial > mplayer.hg
annotate DOCS/xml/en/usage.xml @ 11964:d051cf39331e
- Cleaned up the Makefile, added some *.o's
- Added some declarations of variable's in netstream.c
Patch by Anton Verburg <anton@frog.nl>
author | gabucino |
---|---|
date | Tue, 17 Feb 2004 11:22:32 +0000 |
parents | 06474b60be53 |
children | 84e078fd64b4 |
rev | line source |
---|---|
9675 | 1 <?xml version="1.0" encoding="iso-8859-1"?> |
10913
49b1a67e7381
Add revision keyword to english xml files, to ease translation synchronization
lumag
parents:
10755
diff
changeset
|
2 <!-- $Revision$ --> |
9675 | 3 <chapter id="usage"> |
4 <title>Usage</title> | |
5 | |
6 <sect1 id="commandline"> | |
7 <title>Command line</title> | |
8 | |
9 <para> | |
10 <application>MPlayer</application> utilizes a complex playtree. It consists | |
11 of global options written as first, for example | |
12 | |
13 <screen>mplayer -vfm 5</screen> | |
14 | |
15 and options written after filenames, that apply only to the given | |
16 filename/URL/whatever, for example: | |
17 | |
11737 | 18 <screen>mplayer -vfm 5 <replaceable>movie1.avi</replaceable> <replaceable>movie2.avi</replaceable> -vfm 4</screen> |
9675 | 19 </para> |
20 | |
21 <para> | |
22 You can group filenames/URLs together using <literal>{</literal> and | |
23 <literal>}</literal>. It's useful with option <option>-loop</option>: | |
24 | |
10643 | 25 <screen>mplayer { 1.avi -loop 2 2.avi } -loop 3</screen> |
9675 | 26 |
27 The above command will play files in this order: 1, 1, 2, 1, 1, 2, 1, 1, 2. | |
28 </para> | |
29 | |
30 <para> | |
31 Playing a file: | |
32 <synopsis> | |
33 <command>mplayer</command><!-- | |
34 --> [<replaceable>options</replaceable>]<!-- | |
35 --> [<replaceable>path</replaceable>/]<replaceable>filename</replaceable> | |
36 </synopsis> | |
37 </para> | |
38 | |
39 <para> | |
40 Playing more files: | |
41 <synopsis> | |
42 <command>mplayer</command><!-- | |
43 --> [<replaceable>default options</replaceable>]<!-- | |
44 --> [<replaceable>path</replaceable>/]<replaceable>filename1</replaceable><!-- | |
45 --> [<replaceable>options for filename1</replaceable>]<!-- | |
46 --> <replaceable>filename2</replaceable><!-- | |
47 --> [<replaceable>options for filename2</replaceable>] ... | |
48 </synopsis> | |
49 </para> | |
50 | |
51 <para> | |
52 Playing VCD: | |
53 <synopsis> | |
54 <command>mplayer</command> [<replaceable>options</replaceable>]<!-- | |
10184
b6c63ab184a4
Changed a few remaining -dvd and -vcd options to dvd:// and vcd://.
diego
parents:
10144
diff
changeset
|
55 --> vcd://<replaceable>trackno</replaceable><!-- |
9675 | 56 --> [-cdrom-device <replaceable>/dev/cdrom</replaceable>] |
57 </synopsis> | |
58 </para> | |
59 | |
60 <para> | |
61 Playing DVD: | |
62 <synopsis> | |
63 <command>mplayer</command> [<replaceable>options</replaceable>]<!-- | |
10184
b6c63ab184a4
Changed a few remaining -dvd and -vcd options to dvd:// and vcd://.
diego
parents:
10144
diff
changeset
|
64 --> dvd://<replaceable>titleno</replaceable><!-- |
9675 | 65 --> [-dvd-device <replaceable>/dev/dvd</replaceable>] |
66 </synopsis> | |
67 </para> | |
68 | |
69 <para> | |
70 Playing from the WWW: | |
71 <synopsis> | |
72 <command>mplayer</command> [<replaceable>options</replaceable>]<!-- | |
73 --> http://<replaceable>site.com/file.asf</replaceable> | |
74 </synopsis> | |
75 (playlists can be used, too) | |
76 </para> | |
77 | |
78 <para> | |
79 Playing from RTSP: | |
80 <synopsis> | |
81 <command>mplayer</command> [<replaceable>options</replaceable>]<!-- | |
82 --> rtsp://<replaceable>server.example.com/streamName</replaceable> | |
83 </synopsis> | |
84 </para> | |
85 | |
86 <para> | |
87 Examples: | |
88 <screen> | |
11713 | 89 mplayer -vo x11 <replaceable>/mnt/Films/Contact/contact2.mpg</replaceable> |
90 mplayer vcd://<replaceable>2</replaceable> -cd-rom-device <replaceable>/dev/hdc</replaceable> | |
91 mplayer -afm 3 <replaceable>/mnt/DVDtrailers/alien4.vob</replaceable> | |
92 mplayer dvd://<replaceable>1</replaceable> -dvd-device <replaceable>/dev/hdc</replaceable> | |
93 mplayer -abs 65536 -delay -0.4 -nobps <replaceable>~/movies/test.avi</replaceable><!-- | |
9675 | 94 --></screen> |
95 </para> | |
96 </sect1> | |
97 | |
98 | |
99 <sect1 id="control"> | |
100 <title>Control</title> | |
101 | |
102 <para> | |
103 <application>MPlayer</application> has a fully configurable, command | |
104 driven, control layer which lets you control | |
105 <application>MPlayer</application> with keyboard, mouse, joystick or remote | |
106 control (using LIRC). See the man page for the complete list of keyboard controls. | |
107 </para> | |
108 | |
109 | |
110 <sect2 id="ctrl-cfg"> | |
111 <title>Controls configuration</title> | |
112 | |
113 <para> | |
114 <application>MPlayer</application> allows you bind any key/button to any | |
11540 | 115 <application>MPlayer</application> command using a simple config file. |
116 The syntax consist of a key name followed by a command. The default config file location is | |
9675 | 117 <filename>$HOME/.mplayer/input.conf</filename> but it can be overridden |
118 using the <option>-input <replaceable>conf</replaceable></option> option | |
119 (relative path are relative to <filename>$HOME/.mplayer</filename>). | |
120 </para> | |
121 | |
122 <example> | |
123 <title>A simple input control file</title> | |
124 <programlisting> | |
125 ## | |
126 ## MPlayer input control file | |
127 ## | |
128 | |
129 RIGHT seek +10 | |
130 LEFT seek -10 | |
131 - audio_delay 0.100 | |
132 + audio_delay -0.100 | |
133 q quit | |
134 > pt_step 1 | |
135 < pt_step -1 | |
136 ENTER pt_step 1 1<!-- | |
137 --></programlisting> | |
138 </example> | |
139 | |
140 | |
141 <sect3 id="ctrl-cfg-keys"> | |
142 <title>Key names</title> | |
143 | |
144 <para> | |
145 You can have a full list by running | |
146 <command>mplayer -input keylist</command>. | |
147 </para> | |
148 | |
149 <itemizedlist> | |
150 <title>Keyboard</title> | |
151 <listitem><simpara>Any printable character</simpara></listitem> | |
152 <listitem><simpara><literal>SPACE</literal></simpara></listitem> | |
153 <listitem><simpara><literal>ENTER</literal></simpara></listitem> | |
154 <listitem><simpara><literal>TAB</literal></simpara></listitem> | |
155 <listitem><simpara><literal>CTRL</literal></simpara></listitem> | |
156 <listitem><simpara><literal>BS</literal></simpara></listitem> | |
157 <listitem><simpara><literal>DEL</literal></simpara></listitem> | |
158 <listitem><simpara><literal>INS</literal></simpara></listitem> | |
159 <listitem><simpara><literal>HOME</literal></simpara></listitem> | |
160 <listitem><simpara><literal>END</literal></simpara></listitem> | |
161 <listitem><simpara><literal>PGUP</literal></simpara></listitem> | |
162 <listitem><simpara><literal>PGDWN</literal></simpara></listitem> | |
163 <listitem><simpara><literal>ESC</literal></simpara></listitem> | |
164 <listitem><simpara><literal>RIGHT</literal></simpara></listitem> | |
165 <listitem><simpara><literal>LEFT</literal></simpara></listitem> | |
166 <listitem><simpara><literal>UP</literal></simpara></listitem> | |
167 <listitem><simpara><literal>DOWN</literal></simpara></listitem> | |
168 </itemizedlist> | |
169 | |
170 <itemizedlist> | |
171 <title>Mouse (only supported under X)</title> | |
172 <listitem><simpara> | |
173 <literal>MOUSE_BTN0</literal> (Left button)</simpara></listitem> | |
174 <listitem><simpara> | |
175 <literal>MOUSE_BTN1</literal> (Right button)</simpara></listitem> | |
176 <listitem><simpara> | |
177 <literal>MOUSE_BTN2</literal> (Middle button)</simpara></listitem> | |
178 <listitem><simpara> | |
179 <literal>MOUSE_BTN3</literal> (Wheel)</simpara></listitem> | |
180 <listitem><simpara> | |
181 <literal>MOUSE_BTN4</literal> (Wheel)</simpara></listitem> | |
182 <listitem><simpara>...</simpara></listitem> | |
183 <listitem><simpara><literal>MOUSE_BTN9</literal></simpara></listitem> | |
184 </itemizedlist> | |
185 | |
186 <itemizedlist> | |
187 <title>Joystick (support must be enabled at compile time)</title> | |
188 <listitem><simpara> | |
189 <literal>JOY_RIGHT</literal> or | |
190 <literal>JOY_AXIS0_PLUS</literal></simpara></listitem> | |
191 <listitem><simpara> | |
192 <literal>JOY_LEFT</literal> or | |
193 <literal>JOY_AXIS0_MINUS</literal></simpara></listitem> | |
194 <listitem><simpara> | |
195 <literal>JOY_UP</literal> or | |
196 <literal>JOY_AXIS1_MINUS</literal></simpara></listitem> | |
197 <listitem><simpara> | |
198 <literal>JOY_DOWN</literal> or | |
199 <literal>JOY_AXIS1_PLUS</literal></simpara></listitem> | |
200 <listitem><simpara><literal>JOY_AXIS2_PLUS</literal></simpara></listitem> | |
201 <listitem><simpara><literal>JOY_AXIS2_MINUS</literal></simpara></listitem> | |
202 <listitem><simpara>...</simpara></listitem> | |
203 <listitem><simpara><literal>JOY_AXIS9_PLUS</literal></simpara></listitem> | |
204 <listitem><simpara><literal>JOY_AXIS9_MINUS</literal></simpara></listitem> | |
205 </itemizedlist> | |
206 </sect3> | |
207 | |
208 | |
209 <sect3 id="ctrl-cfg-commands"> | |
210 <title>Commands</title> | |
211 | |
212 <para> | |
213 You can have a full list of known commands by running | |
214 <command>mplayer -input cmdlist</command>. | |
215 </para> | |
216 | |
217 <itemizedlist> | |
218 <listitem><para><literal>seek</literal> (int) val [(int) type=0]</para> | |
219 <para> | |
220 Seek to some place in the movie. | |
221 Type <literal>0</literal> is a relative seek of +/- val seconds. | |
222 Type <literal>1</literal> seek to val % in the movie. | |
223 </para></listitem> | |
224 <listitem><para><literal>audio_delay</literal> (float) val</para> | |
225 <para> | |
226 Adjust the audio delay of val seconds | |
227 </para></listitem> | |
228 <listitem><para><literal>quit</literal></para> | |
229 <para> | |
230 Quit <application>MPlayer</application> | |
231 </para></listitem> | |
232 <listitem><para><literal>pause</literal></para> | |
233 <para> | |
234 Pause/unpause the playback | |
235 </para></listitem> | |
236 <listitem><para><literal>grap_frames</literal></para> | |
237 <para> | |
238 Somebody know ? | |
239 </para></listitem> | |
240 <listitem><para><literal>pt_step</literal> (int) val [(int) force=0]</para> | |
241 <para> | |
242 Go to next/previous entry in playtree. Val sign tell the direction. If | |
243 no other entry is available in the given direction it won't do anything | |
244 unless force is non 0. | |
245 </para></listitem> | |
246 <listitem><para><literal>pt_up_step</literal> (int) val [(int) force=0]</para> | |
247 <para> | |
248 Like pt_step but it jump to next/previous in the parent list. It's useful | |
249 to break inner loop in the playtree. | |
250 </para></listitem> | |
251 <listitem><para><literal>alt_src_step</literal> (int) val</para> | |
252 <para> | |
253 When more than one source is available it select the next/previous one | |
254 (only supported by asx playlist). | |
255 </para></listitem> | |
256 <listitem><para><literal>sub_delay</literal> (float) val [(int) abs=0]</para> | |
257 <para> | |
258 Adjust the subtitles delay of +/- val seconds or set it to val seconds | |
259 when abs is non zero. | |
260 </para></listitem> | |
261 <listitem><para><literal>osd</literal> [(int) level=-1]</para> | |
262 <para> | |
263 Toggle osd mode or set it to level when level > 0. | |
264 </para></listitem> | |
265 <listitem><para><literal>volume</literal> (int) dir</para> | |
266 <para>Increase/decrease volume | |
267 </para></listitem> | |
268 <listitem><simpara><literal>contrast</literal> (int) val [(int) abs=0] | |
269 </simpara></listitem> | |
270 <listitem><simpara><literal>brightness</literal> (int) val [(int) abs=0] | |
271 </simpara></listitem> | |
272 <listitem><simpara><literal>hue</literal> (int) val [(int) abs=0] | |
273 </simpara></listitem> | |
274 <listitem><para><literal>saturation</literal> (int) val [(int) abs=0]</para> | |
275 <para> | |
276 Set/Adjust video parameters. Val range from -100 to 100. | |
277 </para></listitem> | |
278 <listitem><para><literal>frame_drop</literal> [(int) type=-1]</para> | |
279 <para> | |
280 Toggle/Set frame dropping mode. | |
281 </para></listitem> | |
282 <listitem><para><literal>sub_visibility</literal></para> | |
283 <para> | |
284 Adjust subtitles visibility. | |
285 </para></listitem> | |
286 <listitem><para><literal>sub_pos</literal> (int) val</para> | |
287 <para> | |
288 Adjust subtitles position. | |
289 </para></listitem> | |
290 <listitem><para><literal>vobsub_lang</literal></para> | |
291 <para> | |
292 Change the language of VobSub subtitles. | |
293 </para></listitem> | |
294 <listitem><para><literal>vo_fullscreen</literal></para> | |
295 <para> | |
296 Switch fullscreen mode. | |
297 </para></listitem> | |
11542 | 298 <listitem><para><literal>vo_ontop</literal></para> |
299 <para> | |
300 Toggle stay-on-top. Supported by drivers which use X11, except SDL, | |
301 as well as directx and gl2 under Windows. | |
302 </para></listitem> | |
9675 | 303 <listitem><para><literal>tv_step_channel</literal> (int) dir</para> |
304 <para> | |
305 Select next/previous tv channel. | |
306 </para></listitem> | |
307 <listitem><para><literal>tv_step_norm</literal></para> | |
308 <para> | |
309 Change TV norm. | |
310 </para></listitem> | |
311 <listitem><para><literal>tv_step_chanlist</literal></para> | |
312 <para> | |
313 Change channel list. | |
314 </para></listitem> | |
315 <listitem><simpara><literal>gui_loadfile</literal></simpara></listitem> | |
316 <listitem><simpara><literal>gui_loadsubtitle</literal></simpara></listitem> | |
317 <listitem><simpara><literal>gui_about</literal></simpara></listitem> | |
318 <listitem><simpara><literal>gui_play</literal></simpara></listitem> | |
319 <listitem><simpara><literal>gui_stop</literal></simpara></listitem> | |
320 <listitem><simpara><literal>gui_playlist</literal></simpara></listitem> | |
321 <listitem><simpara><literal>gui_preferences</literal></simpara></listitem> | |
322 <listitem><para><literal>gui_skinbrowser</literal></para> | |
323 <para> | |
324 GUI actions | |
325 </para></listitem> | |
326 </itemizedlist> | |
327 </sect3> | |
328 </sect2> | |
329 | |
330 | |
331 <sect2 id="lirc"> | |
332 <title>Control from LIRC</title> | |
333 | |
334 <para> | |
335 Linux Infrared Remote Control - use an easy to build home-brewn IR-receiver, | |
336 an (almost) arbitrary remote control and control your linux box with it! | |
337 More about it at <ulink url="http://www.lirc.org">www.lirc.org</ulink>. | |
338 </para> | |
339 | |
340 <para> | |
341 If you have installed the lirc-package, configure will autodetect it. If | |
342 everything went fine, <application>MPlayer</application> will print a | |
343 message like "<computeroutput>Setting up lirc support...</computeroutput>" | |
344 on startup. If an error occurs it will tell you. If it doesn't tell you | |
345 anything about LIRC there's no support compiled in. That's it :-) | |
346 </para> | |
347 | |
348 <para> | |
349 The application name for <application>MPlayer</application> is - oh wonder | |
350 - <filename>mplayer</filename>. You can use any mplayer commands and even | |
351 pass more than one command by separating them with <literal>\n</literal>. | |
352 Don't forget to enable the repeat flag in <filename>.lircrc</filename> when | |
353 it make sense (seek, volume, etc). Here's an excerpt from my | |
354 <filename>.lircrc</filename>: | |
355 </para> | |
356 | |
357 <programlisting> | |
358 begin | |
359 button = VOLUME_PLUS | |
360 prog = mplayer | |
361 config = volume 1 | |
362 repeat = 1 | |
363 end | |
364 | |
365 begin | |
366 button = VOLUME_MINUS | |
367 prog = mplayer | |
368 config = volume -1 | |
369 repeat = 1 | |
370 end | |
371 | |
372 begin | |
373 button = CD_PLAY | |
374 prog = mplayer | |
375 config = pause | |
376 end | |
377 | |
378 begin | |
379 button = CD_STOP | |
380 prog = mplayer | |
381 config = seek 0 1\npause | |
382 end<!-- | |
383 --></programlisting> | |
384 | |
385 <para> | |
386 If you don't like the standard location for the lirc-config file | |
387 (<filename>~/.lircrc</filename>) use the <option>-lircconf | |
388 <replaceable>filename</replaceable></option> switch to specify another | |
389 file. | |
390 </para> | |
391 </sect2> | |
392 | |
393 | |
394 <sect2 id="slave-mode"> | |
395 <title>Slave mode</title> | |
396 <para> | |
397 The slave mode allow you to build simple frontend to | |
398 <application>MPlayer</application>. When enabled (with the | |
399 <option>-slave</option> option) <application>MPlayer</application> will | |
400 read commands separated by new line (\n) from stdin. | |
401 </para> | |
402 </sect2> | |
403 </sect1> | |
404 | |
405 | |
406 <sect1 id="streaming"> | |
407 <title>Streaming from network or pipes</title> | |
408 | |
409 <para> | |
410 <application>MPlayer</application> can play files from network, using the | |
10755 | 411 HTTP, FTP, MMS or RTSP/RTP protocol. |
9675 | 412 </para> |
413 | |
414 <para> | |
415 Playing goes by simply using adding the URL to the command line. | |
416 <application>MPlayer</application> also honors the | |
417 <envar>http_proxy</envar> environment variable, and uses proxy if | |
418 available. Proxy usage can also be forced: | |
11713 | 419 <screen>mplayer <replaceable>http_proxy://proxy.micorsops.com:3128/http://micorsops.com:80/stream.asf</replaceable></screen> |
9675 | 420 </para> |
421 | |
422 <para> | |
423 <application>MPlayer</application> can read from stdin | |
424 (<emphasis>not</emphasis> named pipes). This can be for example used to | |
425 play from FTP: | |
11713 | 426 <screen>wget <replaceable>ftp://micorsops.com/something.avi</replaceable> -O - | mplayer -</screen> |
9675 | 427 </para> |
428 | |
11035
094e0838e5a7
<para>Note:.... </para> really should be <note><para>....</para></note>
lumag
parents:
10968
diff
changeset
|
429 <note><para> |
11143
ebf702420f9b
Add some missing <option> tags, patch by Torinthiel.
diego
parents:
11035
diff
changeset
|
430 Note: it's also recommended to enable <option>-cache</option> when playback from network: |
11713 | 431 <screen>wget <replaceable>ftp://micorsops.com/something.avi</replaceable> -O - | mplayer -cache 8192 -</screen> |
11035
094e0838e5a7
<para>Note:.... </para> really should be <note><para>....</para></note>
lumag
parents:
10968
diff
changeset
|
432 </para></note> |
9675 | 433 </sect1> |
9966 | 434 |
435 <sect1 id="mpst" xreflabel="Remote streams"> | |
436 <title>Remote streams</title> | |
437 | |
438 <para> | |
439 Remote streams allow you to access most <application>MPlayer</application> | |
440 stream type from a remote host. The main purpose of this feature is to make | |
441 it possible to directly use the CD or DVD drive of another computer on the | |
442 network (provided you have the required bandwidth). On the downside some | |
11271
252fb0cf331a
spelling fixes, mostly by <ismail.donmez@boun.edu.tr>
diego
parents:
11143
diff
changeset
|
443 stream type (currently TV and MF) are not usable remotely because they are |
9966 | 444 implemented at the demuxer level. It's sad for MF but TV stream would anyway |
11271
252fb0cf331a
spelling fixes, mostly by <ismail.donmez@boun.edu.tr>
diego
parents:
11143
diff
changeset
|
445 require an insane amount of bandwidth. |
9966 | 446 </para> |
447 | |
448 <sect2 id="compile_mpst_server"> | |
449 <title>Compiling the server</title> | |
450 <para> | |
451 After having compiled <application>MPlayer</application> go to the | |
452 <filename>TOOLS/netstream</filename> directory and enter | |
453 <application>make</application> to build the server binary. | |
454 You can then copy the <application>netstream</application> binary | |
9969 | 455 to the right place on your system (usually |
456 <filename class="directory">/usr/local/bin</filename> on Linux). | |
9966 | 457 </para> |
458 </sect2> | |
459 | |
460 <sect2 id="use_mpst"> | |
461 <title>Using remote streams</title> | |
462 <para> | |
463 First you have to start the server on the computer you intend to remotely | |
464 access. Currently the server is very basic and doesn't have any commands | |
465 line arguments so just enter <filename>netstream</filename>. Now you can | |
466 for example play the second track of a VCD on the server with : | |
467 <screen> | |
11713 | 468 mplayer -cache 5000 <replaceable>mpst://servername/vcd://2</replaceable> |
9966 | 469 </screen> |
470 You can also access files on this server : | |
471 <screen> | |
11713 | 472 mplayer -cache 5000 <replaceable>mpst://servername//usr/local/movies/lol.avi</replaceable> |
9966 | 473 </screen> |
11271
252fb0cf331a
spelling fixes, mostly by <ismail.donmez@boun.edu.tr>
diego
parents:
11143
diff
changeset
|
474 Note that paths which aren't starting with a / will be relative to |
11143
ebf702420f9b
Add some missing <option> tags, patch by Torinthiel.
diego
parents:
11035
diff
changeset
|
475 the directory where the server is running. The <option>-cache</option> option is not |
9966 | 476 needed but highly recommended. |
477 </para> | |
478 | |
479 <para> | |
480 Be aware that currently the server is not secure at all. So don't complain | |
11271
252fb0cf331a
spelling fixes, mostly by <ismail.donmez@boun.edu.tr>
diego
parents:
11143
diff
changeset
|
481 about the numerous exploits which are possible through this. Instead send |
9966 | 482 some (good) patch to make it better or start writing your own server. |
483 </para> | |
484 | |
485 </sect2> | |
486 | |
487 </sect1> | |
11786 | 488 |
489 <sect1 id="edl" xreflabel="Edit Decision Lists (EDL)"> | |
490 <title>Edit Decision Lists (EDL)</title> | |
491 | |
492 <para> | |
493 The edit decision list (EDL) system allows you to automatically skip | |
494 or mute sections of videos during playback, based on a movie specific | |
495 EDL configuration file. | |
496 </para> | |
497 | |
498 <para> | |
499 This is useful for those who may want to watch a film in "family-friendly" | |
500 mode. You can cut out any violence, profanity, Jar-Jar Binks .. from a movie | |
501 according to your own personal preferences. Aside from this, there are other | |
502 uses, like automatically skipping over commercials in video files you watch. | |
503 </para> | |
504 | |
505 <para> | |
506 The EDL file format is pretty bare-bones. Once the EDL system has reached a | |
507 certain level of maturity, an XML-based file format will probably be implemented | |
508 (keeping backwards compatibility with previous EDL formats). | |
509 </para> | |
510 | |
511 <para> | |
512 The maximum number of EDL entries for the current incarnation of EDL is 1000. | |
513 If you happen to need more, change the <systemitem>#define MAX_EDL_ENTRIES</systemitem> | |
514 in the <filename>edl.h</filename> file. | |
515 </para> | |
516 | |
517 <sect2 id="edl_using"> | |
518 <title>Using an EDL file</title> | |
519 <para> | |
520 Include the <option>-edl <filename></option> flag when you run | |
521 <application>MPlayer</application>, with the name of the EDL file you | |
522 want applied to the video. | |
523 </para> | |
524 </sect2> | |
525 | |
526 <sect2 id="edl_making"> | |
527 <title>Making an EDL file</title> | |
528 <para> | |
529 The current EDL file format is: | |
530 <programlisting> | |
531 [begin second] [end second] [action] | |
532 </programlisting> | |
533 Where the seconds are floating-point numbers and the action is either | |
534 <literal>0</literal> for skip or <literal>1</literal> for mute. Example: | |
535 <programlisting> | |
536 5.3 7.1 0 | |
537 15 16.7 1 | |
538 420 422 0 | |
539 </programlisting> | |
540 This will skip from second 5.3 to second 7.1 of the video, then mute at | |
541 15 seconds, unmute at 16.7 seconds and skip from second 420 to second 422 | |
542 of the video. These actions will be performed when the playback timer | |
543 reaches the times given in the file. | |
544 </para> | |
545 | |
546 <para> | |
547 To create an EDL file to work from, use the <option>-edlout <filename></option> | |
548 flag. During playback, when you want to mark the previous two seconds to skip over, | |
549 hit <keycap>i</keycap>. A corresponding entry will be written to the file for | |
550 that time. You can then go back and fine-tune the generated EDL file. | |
551 </para> | |
552 </sect2> | |
553 | |
554 </sect1> | |
555 | |
9675 | 556 </chapter> |