comparison DOCS/xml/en/mencoder.xml @ 11710:d37d4bc38f26

<replaceable> tags by Qba <jim85@wp.pl>
author wight
date Thu, 01 Jan 2004 14:43:46 +0000
parents f2f7c22847b3
children d5784b575959
comparison
equal deleted inserted replaced
11709:4afcdb7b8aab 11710:d37d4bc38f26
36 Just two commands are needed: 36 Just two commands are needed:
37 <screen>rm frameno.avi</screen> 37 <screen>rm frameno.avi</screen>
38 remove this file, which can come from a previous 3-pass encoding (it interferes 38 remove this file, which can come from a previous 3-pass encoding (it interferes
39 with current one) 39 with current one)
40 <screen> 40 <screen>
41 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o movie.avi 41 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o <replaceable>movie.avi</replaceable>
42 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac copy -o movie.avi 42 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac copy -o <replaceable>movie.avi</replaceable>
43 </screen> 43 </screen>
44 </para> 44 </para>
45 45
46 <formalpara> 46 <formalpara>
47 <title>3-pass encoding</title> 47 <title>3-pass encoding</title>
97 <screen>rm frameno.avi</screen> 97 <screen>rm frameno.avi</screen>
98 remove this file, which can come from a previous 3-pass encoding 98 remove this file, which can come from a previous 3-pass encoding
99 (it interferes with current one) 99 (it interferes with current one)
100 <screen> 100 <screen>
101 mencoder dvd://2 -ovc frameno -o frameno.avi -oac mp3lame -lameopts vbr=3 101 mencoder dvd://2 -ovc frameno -o frameno.avi -oac mp3lame -lameopts vbr=3
102 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o movie.avi 102 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o <replaceable>movie.avi</replaceable>
103 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac copy -o movie.avi 103 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac copy -o <replaceable>movie.avi</replaceable>
104 </screen> 104 </screen>
105 </para> 105 </para>
106 </example> 106 </example>
107 </sect1> 107 </sect1>
108 108
128 </para> 128 </para>
129 129
130 <para> 130 <para>
131 Example: 131 Example:
132 <screen> 132 <screen>
133 mencoder -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -oac copy <replaceable>other options</replaceable> media.avi -o output.mpg 133 mencoder -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -oac copy <replaceable>other_options</replaceable> <replaceable>media.avi</replaceable> -o <replaceable>output.mpg</replaceable>
134 </screen> 134 </screen>
135 </para> 135 </para>
136 </sect1> 136 </sect1>
137 137
138 138
220 to append 2 (or more) AVI files: 220 to append 2 (or more) AVI files:
221 </para> 221 </para>
222 222
223 <para> 223 <para>
224 Command: 224 Command:
225 <screen>cat 1.avi 2.avi | mencoder -noidx -ovc copy -oac copy -o output.avi -</screen> 225 <screen>cat 1.avi 2.avi | mencoder -noidx -ovc copy -oac copy -o <replaceable>output.avi</replaceable> -</screen>
226 </para> 226 </para>
227 227
228 <note><para> 228 <note><para>
229 This expects <filename>1.avi</filename> and <filename>2.avi</filename> to use 229 This expects <filename>1.avi</filename> and <filename>2.avi</filename> to use
230 the same codecs, resolution, stream rate etc, and at least <filename>1.avi</filename> 230 the same codecs, resolution, stream rate etc, and at least <filename>1.avi</filename>
343 343
344 <informalexample> 344 <informalexample>
345 <para> 345 <para>
346 Creating a DivX4 file from all the JPEG files in the current dir: 346 Creating a DivX4 file from all the JPEG files in the current dir:
347 <screen> 347 <screen>
348 mencoder -mf on:w=800:h=600:fps=25 -ovc divx4 -o output.avi \*.jpg<!-- 348 mencoder -mf on:w=800:h=600:fps=25 -ovc divx4 -o <replaceable>output.avi</replaceable> \*.jpg<!--
349 --></screen> 349 --></screen>
350 </para> 350 </para>
351 </informalexample> 351 </informalexample>
352 352
353 <informalexample> 353 <informalexample>
354 <para> 354 <para>
355 Creating a DivX4 file from some JPEG files in the current dir: 355 Creating a DivX4 file from some JPEG files in the current dir:
356 <screen> 356 <screen>
357 mencoder -mf on:w=800:h=600:fps=25 -ovc divx4 -o output.avi frame001.jpg,frame002.jpg <!-- 357 mencoder -mf on:w=800:h=600:fps=25 -ovc divx4 -o <replaceable>output.avi</replaceable> <replaceable>frame001.jpg,frame002.jpg</replaceable> <!--
358 --></screen> 358 --></screen>
359 </para> 359 </para>
360 </informalexample> 360 </informalexample>
361 361
362 <informalexample> 362 <informalexample>
363 <para> 363 <para>
364 Creating a Motion JPEG (MJPEG) file from all the JPEG files in the current 364 Creating a Motion JPEG (MJPEG) file from all the JPEG files in the current
365 dir: 365 dir:
366 <screen> 366 <screen>
367 mencoder -mf on:w=800:h=600:fps=25 -ovc copy -o output.avi \*.jpg<!-- 367 mencoder -mf on:w=800:h=600:fps=25 -ovc copy -o <replaceable>output.avi</replaceable> \*.jpg<!--
368 --></screen> 368 --></screen>
369 </para> 369 </para>
370 </informalexample> 370 </informalexample>
371 371
372 <informalexample> 372 <informalexample>
373 <para> 373 <para>
374 Creating an uncompressed file from all the PNG files in the current dir: 374 Creating an uncompressed file from all the PNG files in the current dir:
375 <screen> 375 <screen>
376 mencoder -mf on:w=800:h=600:fps=25:type=png -ovc raw -o output.avi \*.png<!-- 376 mencoder -mf on:w=800:h=600:fps=25:type=png -ovc raw -o <replaceable>output.avi</replaceable> \*.png<!--
377 --></screen> 377 --></screen>
378 </para> 378 </para>
379 </informalexample> 379 </informalexample>
380 380
381 <note><para> 381 <note><para>
385 <informalexample> 385 <informalexample>
386 <para> 386 <para>
387 Creating a Motion PNG (MPNG) file from all the PNG files in the current 387 Creating a Motion PNG (MPNG) file from all the PNG files in the current
388 dir: 388 dir:
389 <screen> 389 <screen>
390 mencoder -mf on:w=800:h=600:fps=25:type=png -ovc copy -o output.avi \*.png<!-- 390 mencoder -mf on:w=800:h=600:fps=25:type=png -ovc copy -o <replaceable>output.avi</replaceable> \*.png<!--
391 --></screen> 391 --></screen>
392 </para> 392 </para>
393 </informalexample> 393 </informalexample>
394 394
395 <informalexample> 395 <informalexample>
396 <para> 396 <para>
397 Creating a Motion TGA (MTGA) file from all the TGA files in the current 397 Creating a Motion TGA (MTGA) file from all the TGA files in the current
398 dir: 398 dir:
399 <screen> 399 <screen>
400 mencoder -mf on:w=800:h=600:fps=25:type=tga -ovc copy -o output.avi \*.tga<!-- 400 mencoder -mf on:w=800:h=600:fps=25:type=tga -ovc copy -o <replaceable>output.avi</replaceable> \*.tga<!--
401 --></screen> 401 --></screen>
402 </para> 402 </para>
403 </informalexample> 403 </informalexample>
404 404
405 </para> 405 </para>
457 457
458 <example> 458 <example>
459 <title>Copying a french subtitle from an MPEG file</title> 459 <title>Copying a french subtitle from an MPEG file</title>
460 <screen> 460 <screen>
461 rm subtitles.idx subtitles.sub 461 rm subtitles.idx subtitles.sub
462 mencoder movie.mpg -ifo movie.ifo -vobsubout subtitles -vobsuboutindex 0 -vobsuboutid fr -sid 1<!-- 462 mencoder <replaceable>movie.mpg</replaceable> -ifo <replaceable>movie.ifo</replaceable> -vobsubout subtitles -vobsuboutindex 0 -vobsuboutid fr -sid 1<!--
463 --></screen> 463 --></screen>
464 </example> 464 </example>
465 465
466 </sect1> 466 </sect1>
467 467
498 <systemitem>crop</systemitem> filters. 498 <systemitem>crop</systemitem> filters.
499 </para> 499 </para>
500 500
501 <para> 501 <para>
502 Usage 502 Usage
503 <screen>mencoder sample-svcd.mpg -ovc lavc -lavcopts vcodec=mpeg4:autoaspect -vf crop=714:548:0:14 -oac copy -o output.avi</screen> 503 <screen>mencoder <replaceable>sample-svcd.mpg</replaceable> -ovc lavc -lavcopts vcodec=mpeg4:autoaspect -vf crop=714:548:0:14 -oac copy -o <replaceable>output.avi</replaceable></screen>
504 </para> 504 </para>
505 </sect1> 505 </sect1>
506 506
507 <sect1 id="custommatrices"><title>Custom inter/intra matrices</title> 507 <sect1 id="custommatrices"><title>Custom inter/intra matrices</title>
508 508
550 </para> 550 </para>
551 551
552 <para> 552 <para>
553 Usage: 553 Usage:
554 <screen> 554 <screen>
555 $ mencoder input.avi -o output.avi -oac copy -ovc lavc -lavcopts inter_matrix=...:intra_matrix=... 555 $ mencoder <replaceable>input.avi</replaceable> -o <replaceable>output.avi</replaceable> -oac copy -ovc lavc -lavcopts inter_matrix=...:intra_matrix=...
556 </screen> 556 </screen>
557 </para> 557 </para>
558 558
559 <para> 559 <para>
560 <screen> 560 <screen>
561 $ mencoder input.avi -ovc lavc -lavcopts 561 $ mencoder <replaceable>input.avi</replaceable> -ovc lavc -lavcopts
562 vcodec=mpeg2video:intra_matrix=8,9,12,22,26,27,29,34,9,10,14,26,27,29,34,37, 562 vcodec=mpeg2video:intra_matrix=8,9,12,22,26,27,29,34,9,10,14,26,27,29,34,37,
563 12,14,18,27,29,34,37,38,22,26,27,31,36,37,38,40,26,27,29,36,39,38,40,48,27, 563 12,14,18,27,29,34,37,38,22,26,27,31,36,37,38,40,26,27,29,36,39,38,40,48,27,
564 29,34,37,38,40,48,58,29,34,37,38,40,48,58,69,34,37,38,40,48,58,69,79 564 29,34,37,38,40,48,58,29,34,37,38,40,48,58,69,34,37,38,40,48,58,69,79
565 :inter_matrix=16,18,20,22,24,26,28,30,18,20,22,24,26,28,30,32,20,22,24,26, 565 :inter_matrix=16,18,20,22,24,26,28,30,18,20,22,24,26,28,30,32,20,22,24,26,
566 28,30,32,34,22,24,26,30,32,32,34,36,24,26,28,32,34,34,36,38,26,28,30,32,34, 566 28,30,32,34,22,24,26,30,32,32,34,36,24,26,28,32,34,34,36,38,26,28,30,32,34,