Mercurial > mplayer.hg
annotate DOCS/xml/en/usage.xml @ 13710:d7af73cc38da
allow changing playback speed during playback.
Based on patch by Steve Mueller (diffusor <at> ugcs (dot) caltech [dot] edu),
OSD support by Frank Schertan (scherthan (at) uni-landau <dot> de),
several modifications by me.
author | reimar |
---|---|
date | Wed, 20 Oct 2004 20:07:50 +0000 |
parents | 96a19fe69062 |
children | 10acb5e309e2 |
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> |
12833 | 90 mplayer vcd://<replaceable>2</replaceable> -cdrom-device <replaceable>/dev/hdc</replaceable> |
11713 | 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> | |
13710 | 224 <listitem><para><literal>speed_mult</literal> (float) val</para> |
225 <para> | |
226 Multiply the current speed with val. | |
227 </para></listitem> | |
228 <listitem><para><literal>speed_incr</literal> (float) val</para> | |
229 <para> | |
230 Add val to the current playback speed. | |
231 </para></listitem> | |
232 <listitem><para><literal>speed_set</literal> (float) val</para> | |
233 <para> | |
234 Set the speed to val. | |
235 </para></listitem> | |
9675 | 236 <listitem><para><literal>audio_delay</literal> (float) val</para> |
237 <para> | |
238 Adjust the audio delay of val seconds | |
239 </para></listitem> | |
240 <listitem><para><literal>quit</literal></para> | |
241 <para> | |
242 Quit <application>MPlayer</application> | |
243 </para></listitem> | |
244 <listitem><para><literal>pause</literal></para> | |
245 <para> | |
246 Pause/unpause the playback | |
247 </para></listitem> | |
248 <listitem><para><literal>grap_frames</literal></para> | |
249 <para> | |
250 Somebody know ? | |
251 </para></listitem> | |
252 <listitem><para><literal>pt_step</literal> (int) val [(int) force=0]</para> | |
253 <para> | |
254 Go to next/previous entry in playtree. Val sign tell the direction. If | |
255 no other entry is available in the given direction it won't do anything | |
256 unless force is non 0. | |
257 </para></listitem> | |
258 <listitem><para><literal>pt_up_step</literal> (int) val [(int) force=0]</para> | |
259 <para> | |
260 Like pt_step but it jump to next/previous in the parent list. It's useful | |
261 to break inner loop in the playtree. | |
262 </para></listitem> | |
263 <listitem><para><literal>alt_src_step</literal> (int) val</para> | |
264 <para> | |
265 When more than one source is available it select the next/previous one | |
266 (only supported by asx playlist). | |
267 </para></listitem> | |
268 <listitem><para><literal>sub_delay</literal> (float) val [(int) abs=0]</para> | |
269 <para> | |
270 Adjust the subtitles delay of +/- val seconds or set it to val seconds | |
271 when abs is non zero. | |
272 </para></listitem> | |
273 <listitem><para><literal>osd</literal> [(int) level=-1]</para> | |
274 <para> | |
275 Toggle osd mode or set it to level when level > 0. | |
276 </para></listitem> | |
277 <listitem><para><literal>volume</literal> (int) dir</para> | |
278 <para>Increase/decrease volume | |
279 </para></listitem> | |
280 <listitem><simpara><literal>contrast</literal> (int) val [(int) abs=0] | |
281 </simpara></listitem> | |
282 <listitem><simpara><literal>brightness</literal> (int) val [(int) abs=0] | |
283 </simpara></listitem> | |
284 <listitem><simpara><literal>hue</literal> (int) val [(int) abs=0] | |
285 </simpara></listitem> | |
286 <listitem><para><literal>saturation</literal> (int) val [(int) abs=0]</para> | |
287 <para> | |
288 Set/Adjust video parameters. Val range from -100 to 100. | |
289 </para></listitem> | |
290 <listitem><para><literal>frame_drop</literal> [(int) type=-1]</para> | |
291 <para> | |
292 Toggle/Set frame dropping mode. | |
293 </para></listitem> | |
294 <listitem><para><literal>sub_visibility</literal></para> | |
295 <para> | |
296 Adjust subtitles visibility. | |
297 </para></listitem> | |
298 <listitem><para><literal>sub_pos</literal> (int) val</para> | |
299 <para> | |
300 Adjust subtitles position. | |
301 </para></listitem> | |
302 <listitem><para><literal>vobsub_lang</literal></para> | |
303 <para> | |
12615 | 304 Change the language of VOBsub subtitles. |
9675 | 305 </para></listitem> |
306 <listitem><para><literal>vo_fullscreen</literal></para> | |
307 <para> | |
308 Switch fullscreen mode. | |
309 </para></listitem> | |
11542 | 310 <listitem><para><literal>vo_ontop</literal></para> |
311 <para> | |
312 Toggle stay-on-top. Supported by drivers which use X11, except SDL, | |
313 as well as directx and gl2 under Windows. | |
314 </para></listitem> | |
9675 | 315 <listitem><para><literal>tv_step_channel</literal> (int) dir</para> |
316 <para> | |
317 Select next/previous tv channel. | |
318 </para></listitem> | |
319 <listitem><para><literal>tv_step_norm</literal></para> | |
320 <para> | |
321 Change TV norm. | |
322 </para></listitem> | |
323 <listitem><para><literal>tv_step_chanlist</literal></para> | |
324 <para> | |
325 Change channel list. | |
326 </para></listitem> | |
327 <listitem><simpara><literal>gui_loadfile</literal></simpara></listitem> | |
328 <listitem><simpara><literal>gui_loadsubtitle</literal></simpara></listitem> | |
329 <listitem><simpara><literal>gui_about</literal></simpara></listitem> | |
330 <listitem><simpara><literal>gui_play</literal></simpara></listitem> | |
331 <listitem><simpara><literal>gui_stop</literal></simpara></listitem> | |
332 <listitem><simpara><literal>gui_playlist</literal></simpara></listitem> | |
333 <listitem><simpara><literal>gui_preferences</literal></simpara></listitem> | |
334 <listitem><para><literal>gui_skinbrowser</literal></para> | |
335 <para> | |
336 GUI actions | |
337 </para></listitem> | |
338 </itemizedlist> | |
339 </sect3> | |
340 </sect2> | |
341 | |
342 | |
343 <sect2 id="lirc"> | |
344 <title>Control from LIRC</title> | |
345 | |
346 <para> | |
347 Linux Infrared Remote Control - use an easy to build home-brewn IR-receiver, | |
348 an (almost) arbitrary remote control and control your linux box with it! | |
349 More about it at <ulink url="http://www.lirc.org">www.lirc.org</ulink>. | |
350 </para> | |
351 | |
352 <para> | |
353 If you have installed the lirc-package, configure will autodetect it. If | |
354 everything went fine, <application>MPlayer</application> will print a | |
355 message like "<computeroutput>Setting up lirc support...</computeroutput>" | |
356 on startup. If an error occurs it will tell you. If it doesn't tell you | |
357 anything about LIRC there's no support compiled in. That's it :-) | |
358 </para> | |
359 | |
360 <para> | |
361 The application name for <application>MPlayer</application> is - oh wonder | |
362 - <filename>mplayer</filename>. You can use any mplayer commands and even | |
363 pass more than one command by separating them with <literal>\n</literal>. | |
364 Don't forget to enable the repeat flag in <filename>.lircrc</filename> when | |
365 it make sense (seek, volume, etc). Here's an excerpt from my | |
366 <filename>.lircrc</filename>: | |
367 </para> | |
368 | |
369 <programlisting> | |
370 begin | |
371 button = VOLUME_PLUS | |
372 prog = mplayer | |
373 config = volume 1 | |
374 repeat = 1 | |
375 end | |
376 | |
377 begin | |
378 button = VOLUME_MINUS | |
379 prog = mplayer | |
380 config = volume -1 | |
381 repeat = 1 | |
382 end | |
383 | |
384 begin | |
385 button = CD_PLAY | |
386 prog = mplayer | |
387 config = pause | |
388 end | |
389 | |
390 begin | |
391 button = CD_STOP | |
392 prog = mplayer | |
393 config = seek 0 1\npause | |
394 end<!-- | |
395 --></programlisting> | |
396 | |
397 <para> | |
398 If you don't like the standard location for the lirc-config file | |
399 (<filename>~/.lircrc</filename>) use the <option>-lircconf | |
400 <replaceable>filename</replaceable></option> switch to specify another | |
401 file. | |
402 </para> | |
403 </sect2> | |
404 | |
405 | |
406 <sect2 id="slave-mode"> | |
407 <title>Slave mode</title> | |
408 <para> | |
409 The slave mode allow you to build simple frontend to | |
410 <application>MPlayer</application>. When enabled (with the | |
411 <option>-slave</option> option) <application>MPlayer</application> will | |
412 read commands separated by new line (\n) from stdin. | |
413 </para> | |
414 </sect2> | |
415 </sect1> | |
416 | |
417 | |
418 <sect1 id="streaming"> | |
419 <title>Streaming from network or pipes</title> | |
420 | |
421 <para> | |
422 <application>MPlayer</application> can play files from network, using the | |
10755 | 423 HTTP, FTP, MMS or RTSP/RTP protocol. |
9675 | 424 </para> |
425 | |
426 <para> | |
427 Playing goes by simply using adding the URL to the command line. | |
428 <application>MPlayer</application> also honors the | |
429 <envar>http_proxy</envar> environment variable, and uses proxy if | |
430 available. Proxy usage can also be forced: | |
11713 | 431 <screen>mplayer <replaceable>http_proxy://proxy.micorsops.com:3128/http://micorsops.com:80/stream.asf</replaceable></screen> |
9675 | 432 </para> |
433 | |
434 <para> | |
435 <application>MPlayer</application> can read from stdin | |
436 (<emphasis>not</emphasis> named pipes). This can be for example used to | |
437 play from FTP: | |
11713 | 438 <screen>wget <replaceable>ftp://micorsops.com/something.avi</replaceable> -O - | mplayer -</screen> |
9675 | 439 </para> |
440 | |
11035
094e0838e5a7
<para>Note:.... </para> really should be <note><para>....</para></note>
lumag
parents:
10968
diff
changeset
|
441 <note><para> |
11143
ebf702420f9b
Add some missing <option> tags, patch by Torinthiel.
diego
parents:
11035
diff
changeset
|
442 Note: it's also recommended to enable <option>-cache</option> when playback from network: |
11713 | 443 <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
|
444 </para></note> |
9675 | 445 </sect1> |
9966 | 446 |
447 <sect1 id="mpst" xreflabel="Remote streams"> | |
448 <title>Remote streams</title> | |
449 | |
450 <para> | |
451 Remote streams allow you to access most <application>MPlayer</application> | |
452 stream type from a remote host. The main purpose of this feature is to make | |
453 it possible to directly use the CD or DVD drive of another computer on the | |
454 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
|
455 stream type (currently TV and MF) are not usable remotely because they are |
9966 | 456 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
|
457 require an insane amount of bandwidth. |
9966 | 458 </para> |
459 | |
460 <sect2 id="compile_mpst_server"> | |
461 <title>Compiling the server</title> | |
462 <para> | |
463 After having compiled <application>MPlayer</application> go to the | |
464 <filename>TOOLS/netstream</filename> directory and enter | |
465 <application>make</application> to build the server binary. | |
466 You can then copy the <application>netstream</application> binary | |
9969 | 467 to the right place on your system (usually |
468 <filename class="directory">/usr/local/bin</filename> on Linux). | |
9966 | 469 </para> |
470 </sect2> | |
471 | |
472 <sect2 id="use_mpst"> | |
473 <title>Using remote streams</title> | |
474 <para> | |
475 First you have to start the server on the computer you intend to remotely | |
476 access. Currently the server is very basic and doesn't have any commands | |
477 line arguments so just enter <filename>netstream</filename>. Now you can | |
478 for example play the second track of a VCD on the server with : | |
479 <screen> | |
11713 | 480 mplayer -cache 5000 <replaceable>mpst://servername/vcd://2</replaceable> |
9966 | 481 </screen> |
482 You can also access files on this server : | |
483 <screen> | |
11713 | 484 mplayer -cache 5000 <replaceable>mpst://servername//usr/local/movies/lol.avi</replaceable> |
9966 | 485 </screen> |
11271
252fb0cf331a
spelling fixes, mostly by <ismail.donmez@boun.edu.tr>
diego
parents:
11143
diff
changeset
|
486 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
|
487 the directory where the server is running. The <option>-cache</option> option is not |
9966 | 488 needed but highly recommended. |
489 </para> | |
490 | |
491 <para> | |
492 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
|
493 about the numerous exploits which are possible through this. Instead send |
9966 | 494 some (good) patch to make it better or start writing your own server. |
495 </para> | |
496 | |
497 </sect2> | |
498 | |
499 </sect1> | |
11786 | 500 |
501 <sect1 id="edl" xreflabel="Edit Decision Lists (EDL)"> | |
502 <title>Edit Decision Lists (EDL)</title> | |
503 | |
504 <para> | |
505 The edit decision list (EDL) system allows you to automatically skip | |
506 or mute sections of videos during playback, based on a movie specific | |
507 EDL configuration file. | |
508 </para> | |
509 | |
510 <para> | |
511 This is useful for those who may want to watch a film in "family-friendly" | |
512 mode. You can cut out any violence, profanity, Jar-Jar Binks .. from a movie | |
513 according to your own personal preferences. Aside from this, there are other | |
514 uses, like automatically skipping over commercials in video files you watch. | |
515 </para> | |
516 | |
517 <para> | |
518 The EDL file format is pretty bare-bones. Once the EDL system has reached a | |
519 certain level of maturity, an XML-based file format will probably be implemented | |
520 (keeping backwards compatibility with previous EDL formats). | |
521 </para> | |
522 | |
523 <para> | |
524 The maximum number of EDL entries for the current incarnation of EDL is 1000. | |
525 If you happen to need more, change the <systemitem>#define MAX_EDL_ENTRIES</systemitem> | |
526 in the <filename>edl.h</filename> file. | |
527 </para> | |
528 | |
529 <sect2 id="edl_using"> | |
530 <title>Using an EDL file</title> | |
531 <para> | |
532 Include the <option>-edl <filename></option> flag when you run | |
533 <application>MPlayer</application>, with the name of the EDL file you | |
534 want applied to the video. | |
535 </para> | |
536 </sect2> | |
537 | |
538 <sect2 id="edl_making"> | |
539 <title>Making an EDL file</title> | |
540 <para> | |
541 The current EDL file format is: | |
542 <programlisting> | |
543 [begin second] [end second] [action] | |
544 </programlisting> | |
545 Where the seconds are floating-point numbers and the action is either | |
546 <literal>0</literal> for skip or <literal>1</literal> for mute. Example: | |
547 <programlisting> | |
548 5.3 7.1 0 | |
549 15 16.7 1 | |
550 420 422 0 | |
551 </programlisting> | |
552 This will skip from second 5.3 to second 7.1 of the video, then mute at | |
553 15 seconds, unmute at 16.7 seconds and skip from second 420 to second 422 | |
554 of the video. These actions will be performed when the playback timer | |
555 reaches the times given in the file. | |
556 </para> | |
557 | |
558 <para> | |
559 To create an EDL file to work from, use the <option>-edlout <filename></option> | |
560 flag. During playback, when you want to mark the previous two seconds to skip over, | |
561 hit <keycap>i</keycap>. A corresponding entry will be written to the file for | |
562 that time. You can then go back and fine-tune the generated EDL file. | |
563 </para> | |
564 </sect2> | |
565 | |
566 </sect1> | |
567 | |
9675 | 568 </chapter> |