annotate DOCS/xml/en/mencoder.xml @ 21450:275446fef914

[cosmetics] Consistent XML source formatting
author torinthiel
date Sun, 03 Dec 2006 12:19:22 +0000
parents 77088392a591
children b210a229fbcb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20535
c0687e92d463 convert DOCS/xml/en and help_mp-en.h to UTF-8
kraymer
parents: 20037
diff changeset
1 <?xml version="1.0" encoding="utf-8"?>
10913
49b1a67e7381 Add revision keyword to english xml files, to ease translation synchronization
lumag
parents: 10869
diff changeset
2 <!-- $Revision$ -->
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
3 <chapter id="mencoder">
16080
baae7cdb0726 re-organize MEncoder doc in a more sensible way: splitting "basic mencoder usage" and "encoding with mencoder".
gpoirier
parents: 16020
diff changeset
4 <title>Basic usage of <application>MEncoder</application></title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
5
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
6 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
7 For the complete list of available <application>MEncoder</application> options
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
8 and examples, please see the man page. For a series of hands-on examples and
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
9 detailed guides on using several encoding parameters, read the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
10 <ulink url="../../tech/encoding-tips.txt">encoding-tips</ulink> that were
15029
b0dd473ed38a correct spelling for mailing list names
diego
parents: 15010
diff changeset
11 collected from several mailing list threads on MPlayer-users. Search the
19679
8accad9b453f Fix mailing list URLs.
diego
parents: 19260
diff changeset
12 <ulink url="http://lists.mplayerhq.hu/pipermail/mplayer-users/">archives</ulink>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
13 for a wealth of discussions about all aspects of and problems related to
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
14 encoding with <application>MEncoder</application>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
15 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
16
21450
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
17
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
18 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
19
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
20
16534
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
21 <sect1 id="menc-feat-selecting-codec">
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
22 <title>Selecting codecs and container formats</title>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
23
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
24 <para>
21449
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
25 Audio and video codecs for encoding are selected with the
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
26 <option>-oac</option> and <option>-ovc</option> options, respectively.
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
27 Type for instance:
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
28 <screen>mencoder -ovc help</screen>
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
29 to list all video codecs supported by the version of
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
30 <application>MEncoder</application> on your machine.
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
31 The following choices are available:
16534
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
32 </para>
21450
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
33
16534
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
34 <para>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
35 Audio Codecs:
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
36 <informaltable frame="all">
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
37 <tgroup cols="2">
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
38 <thead>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
39 <row><entry>Audio codec name</entry><entry>Description</entry></row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
40 </thead>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
41 <tbody>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
42 <row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
43 <entry>mp3lame</entry>
21407
0f38d7413770 Consistent capitalization of table entries
torinthiel
parents: 21378
diff changeset
44 <entry>encode to VBR, ABR or CBR MP3 with LAME</entry>
16534
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
45 </row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
46 <row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
47 <entry>lavc</entry>
21407
0f38d7413770 Consistent capitalization of table entries
torinthiel
parents: 21378
diff changeset
48 <entry>use one of <link linkend="menc-feat-enc-libavcodec-audio-codecs"><systemitem class="library">libavcodec</systemitem>'s audio codecs</link>
16541
4a9808f6cacc add some internal links between "codecs supported by mencoder" and
gpoirier
parents: 16534
diff changeset
49 </entry>
16534
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
50 </row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
51 <row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
52 <entry>faac</entry>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
53 <entry>FAAC AAC audio encoder</entry>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
54 </row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
55 <row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
56 <entry>toolame</entry>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
57 <entry>MPEG Audio Layer 2 encoder</entry>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
58 </row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
59 <row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
60 <entry>twolame</entry>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
61 <entry>MPEG Audio Layer 2 encoder based on tooLAME</entry>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
62 </row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
63 <row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
64 <entry>pcm</entry>
21407
0f38d7413770 Consistent capitalization of table entries
torinthiel
parents: 21378
diff changeset
65 <entry>uncompressed PCM audio</entry>
16534
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
66 </row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
67 <row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
68 <entry>copy</entry>
21407
0f38d7413770 Consistent capitalization of table entries
torinthiel
parents: 21378
diff changeset
69 <entry>do not reencode, just copy compressed frames</entry>
16534
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
70 </row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
71 </tbody>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
72 </tgroup>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
73 </informaltable>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
74 </para>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
75
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
76 <para>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
77 Video codecs:
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
78 <informaltable frame="all">
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
79 <tgroup cols="2">
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
80 <thead>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
81 <row><entry>Video codec name</entry><entry>Description</entry></row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
82 </thead>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
83 <tbody>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
84 <row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
85 <entry>lavc</entry>
21407
0f38d7413770 Consistent capitalization of table entries
torinthiel
parents: 21378
diff changeset
86 <entry>use one of <link linkend="menc-feat-enc-libavcodec-video-codecs"><systemitem class="library">libavcodec</systemitem>'s video codecs</link>
16541
4a9808f6cacc add some internal links between "codecs supported by mencoder" and
gpoirier
parents: 16534
diff changeset
87 </entry>
16534
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
88 </row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
89 <row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
90 <entry>xvid</entry>
20860
f95698d9d53c rename: XviD -> Xvid
kraymer
parents: 20535
diff changeset
91 <entry>Xvid, MPEG-4 Advanced Simple Profile (ASP) codec</entry>
16534
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
92 </row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
93 <row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
94 <entry>x264</entry>
16558
1d524afe2f9c Nits and fixes
gpoirier
parents: 16550
diff changeset
95 <entry>x264, MPEG-4 Advanced Video Coding (AVC), AKA H.264 codec</entry>
16534
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
96 </row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
97 <row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
98 <entry>nuv</entry>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
99 <entry>nuppel video, used by some realtime applications</entry>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
100 </row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
101 <row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
102 <entry>raw</entry>
21407
0f38d7413770 Consistent capitalization of table entries
torinthiel
parents: 21378
diff changeset
103 <entry>uncompressed video frames</entry>
16534
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
104 </row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
105 <row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
106 <entry>copy</entry>
21407
0f38d7413770 Consistent capitalization of table entries
torinthiel
parents: 21378
diff changeset
107 <entry>do not reencode, just copy compressed frames</entry>
16534
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
108 </row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
109 <row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
110 <entry>frameno</entry>
21407
0f38d7413770 Consistent capitalization of table entries
torinthiel
parents: 21378
diff changeset
111 <entry>used for 3-pass encoding (not recommended)</entry>
16534
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
112 </row>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
113 </tbody>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
114 </tgroup>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
115 </informaltable>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
116 </para>
21450
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
117
16746
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
118 <para>
21449
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
119 Output container formats are selected with the <option>-of</option>
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
120 option.
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
121 Type:
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
122 <screen>mencoder -of help</screen>
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
123 to list all containers supported by the version of
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
124 <application>MEncoder</application> on your machine.
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
125 The following choices are available:
16746
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
126 </para>
21450
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
127
16746
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
128 <para>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
129 Container formats:
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
130 <informaltable frame="all">
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
131 <tgroup cols="2">
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
132 <thead>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
133 <row><entry>Container format name</entry><entry>Description</entry></row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
134 </thead>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
135 <tbody>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
136 <row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
137 <entry>lavf</entry>
21407
0f38d7413770 Consistent capitalization of table entries
torinthiel
parents: 21378
diff changeset
138 <entry>one of the containers supported by
16746
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
139 <systemitem class="library">libavformat</systemitem></entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
140 </row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
141 <row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
142 <entry>avi</entry>
16754
a2a291299ae1 fixes suggested by Diego and Alex
gpoirier
parents: 16746
diff changeset
143 <entry>Audio-Video Interleaved</entry>
16746
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
144 </row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
145 <row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
146 <entry>mpeg</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
147 <entry>MPEG-1 and MPEG-2 PS</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
148 </row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
149 <row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
150 <entry>rawvideo</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
151 <entry>raw video stream (no muxing - one video stream only)</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
152 </row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
153 <row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
154 <entry>rawaudio</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
155 <entry>raw audio stream (no muxing - one audio stream only)</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
156 </row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
157 </tbody>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
158 </tgroup>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
159 </informaltable>
21449
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
160 The AVI container is the native container format for
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
161 <application>MEncoder</application>, which means that it's the one that
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
162 is best handled, and the one for which <application>MEncoder</application>
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
163 was designed.
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
164 As noted above, other container formats are usable, but you may
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
165 experience problems when using them.
16746
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
166 </para>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
167
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
168 <para>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
169 <systemitem class="library">libavformat</systemitem> containers:
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
170 </para>
21450
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
171
16746
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
172 <para>
21449
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
173 If you selected <systemitem class="library">libavformat</systemitem>
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
174 to do the muxing of the output file (by using the <option>-of lavf</option>),
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
175 the appropriate container format will be determined by the file extension
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
176 of the output file.
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
177 You may force a particular container format with
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
178 <systemitem class="library">libavformat</systemitem>'s
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
179 <option>format</option> option.
16746
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
180
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
181 <informaltable frame="all">
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
182 <tgroup cols="2">
21450
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
183 <thead><row>
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
184 <entry><systemitem class="library">libavformat</systemitem> container name</entry>
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
185 <entry>Description</entry>
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
186 </row></thead>
16746
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
187 <tbody>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
188 <row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
189 <entry>mpg</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
190 <entry>MPEG-1 and MPEG-2 PS</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
191 </row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
192 <row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
193 <entry>asf</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
194 <entry>Advanced Streaming Format</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
195 </row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
196 <row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
197 <entry>avi</entry>
16754
a2a291299ae1 fixes suggested by Diego and Alex
gpoirier
parents: 16746
diff changeset
198 <entry>Audio-Video Interleaved</entry>
16746
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
199 </row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
200 <row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
201 <entry>wav</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
202 <entry>Waveform Audio</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
203 </row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
204 <row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
205 <entry>swf</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
206 <entry>Macromedia Flash</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
207 </row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
208 <row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
209 <entry>flv</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
210 <entry>Macromedia Flash video</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
211 </row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
212 <row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
213 <entry>rm</entry>
16754
a2a291299ae1 fixes suggested by Diego and Alex
gpoirier
parents: 16746
diff changeset
214 <entry>RealMedia</entry>
16746
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
215 </row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
216 <row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
217 <entry>au</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
218 <entry>SUN AU</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
219 </row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
220 <row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
221 <entry>nut</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
222 <entry>NUT open container (experimental and not yet spec-compliant)</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
223 </row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
224 <row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
225 <entry>mov</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
226 <entry>QuickTime</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
227 </row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
228 <row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
229 <entry>mp4</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
230 <entry>MPEG-4 format</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
231 </row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
232 <row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
233 <entry>dv</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
234 <entry>Sony Digital Video container</entry>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
235 </row>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
236 </tbody>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
237 </tgroup>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
238 </informaltable>
21449
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
239 As you can see, <systemitem class="library">libavformat</systemitem>
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
240 allows <application>MEncoder</application> to mux into a considerable
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
241 variety of containers.
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
242 Unfortunately, as <application>MEncoder</application> was not designed
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
243 from the beginning to support container formats other than AVI,
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
244 your should really be paranoid about the resulting file.
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
245 Please check to be sure that the audio/video synchronization is OK
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
246 and that the file can be played correctly by players other than
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
247 <application>MPlayer</application>.
16746
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
248 </para>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
249
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
250 <informalexample>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
251 <para>Example:</para>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
252 <para>
21449
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
253 Creating a Macromedia Flash video suitable for playback in a web browser
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
254 with the Macromedia Flash plugin:
16746
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
255 <screen>
21408
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
256 mencoder <replaceable>input.avi</replaceable> -o <replaceable>output.flv</replaceable> -of lavf \
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
257 -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc \
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
258 -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3
16746
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
259 </screen>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
260 </para>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
261 </informalexample>
14a22bff8228 List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents: 16560
diff changeset
262
16534
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
263 </sect1>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
264
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
265
21450
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
266 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
267
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
268
16534
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
269 <sect1 id="menc-feat-selecting-input">
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
270 <title>Selecting input file or device</title>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
271
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
272 <para>
21449
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
273 <application>MEncoder</application> can encode from files or directly
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
274 from a DVD or VCD disc.
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
275 Simply include the filename on the command line to encode from a file,
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
276 or <option>dvd://</option><replaceable>titlenumber</replaceable> or
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
277 <option>vcd://</option><replaceable>tracknumber</replaceable> to encode
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
278 from a DVD title or VCD track.
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
279 If you have already copied a DVD to your hard drive (you can use a tool
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
280 such as <application>dvdbackup</application>, available on most systems),
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
281 and wish to encode from the copy, you should still use the
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
282 <option>dvd://</option> syntax, along with <option>-dvd-device</option>
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
283 followed by the path to the copied DVD root.
16534
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
284
21449
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
285 The <option>-dvd-device</option> and <option>-cdrom-device</option>
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
286 options can also be used to override the paths to the device nodes
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
287 for reading directly from disc, if the defaults of
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
288 <filename>/dev/dvd</filename> and <filename>/dev/cdrom</filename> do
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
289 not work on your system.
16534
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
290 </para>
21450
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
291
16534
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
292 <para>
21449
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
293 When encoding from DVD, it is often desirable to select a chapter or
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
294 range of chapters to encode.
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
295 You can use the <option>-chapter</option> option for this purpose.
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
296 For example, <option>-chapter</option> <replaceable>1-4</replaceable>
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
297 will only encode chapters 1 through 4 from the DVD.
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
298 This is especially useful if you will be making a 1400 MB encode
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
299 targetted for two CDs, since you can ensure the split occurs exactly
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
300 at a chapter boundary rather than in the middle of a scene.
16534
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
301 </para>
21450
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
302
16534
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
303 <para>
21449
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
304 If you have a supported TV capture card, you can also encode from the
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
305 TV-in device.
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
306 Use <option>tv://</option><replaceable>channelnumber</replaceable> as
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
307 the filename, and <option>-tv</option> to configure various capture
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
308 settings.
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
309 DVB input works similarly.
16534
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
310 </para>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
311 </sect1>
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
312
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
313
21450
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
314 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
315
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
316
12400
903ac68f2bc8 divx --> lavc, spelling, more sensible section name
diego
parents: 12399
diff changeset
317 <sect1 id="menc-feat-mpeg4">
14421
4a70b65cd2ae consistent "two pass" spelling
diego
parents: 14131
diff changeset
318 <title>Encoding two pass MPEG-4 (&quot;DivX&quot;)</title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
319
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
320 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
321 The name comes from the fact that this method encodes the file <emphasis>twice</emphasis>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
322 The first encoding (dubbed pass) creates some temporary files
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
323 (<filename>*.log</filename>) with a size of few megabytes, do not delete
16534
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
324 them yet (you can delete the AVI or rather just not create any video by
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
325 redirecting it into <filename>/dev/null</filename>).
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
326 In the second pass, the two pass output
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
327 file is created, using the bitrate data from the temporary files. The
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
328 resulting file will have much better image quality. If this is the first
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
329 time you heard about this, you should consult some guides available on the
12484
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
330 net.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
331 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
332
20035
e53a2222de61 Add IDs to some examples/tables.
diego
parents: 19679
diff changeset
333 <example id="copy_audio_track">
12484
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
334 <title>copy audio track</title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
335 <para>
16534
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
336 Two pass encode of the second track a DVD to an MPEG-4 (&quot;DivX&quot;)
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
337 AVI while copying the audio track.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
338 <screen>
17039
5c87173bb774 fixes in examples, minor details
wight
parents: 16767
diff changeset
339 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o /dev/null
21408
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
340 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vpass=2 \
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
341 -oac copy -o <replaceable>output.avi</replaceable>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
342 </screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
343 </para>
12484
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
344 </example>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
345
20035
e53a2222de61 Add IDs to some examples/tables.
diego
parents: 19679
diff changeset
346 <example id="encode_audio_track">
12484
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
347 <title>encode audio track</title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
348 <para>
14421
4a70b65cd2ae consistent "two pass" spelling
diego
parents: 14131
diff changeset
349 Two pass encode of a DVD to an MPEG-4 (&quot;DivX&quot;) AVI while encoding
12484
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
350 the audio track to MP3.
16534
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
351 Be careful using this method as it may lead to audio/video desync in
cf10f859d829 Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents: 16228
diff changeset
352 some cases.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
353 <screen>
21408
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
354 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 \
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
355 -oac mp3lame -lameopts vbr=3 -o /dev/null
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
356 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vpass=2 \
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
357 -oac mp3lame -lameopts vbr=3 -o <replaceable>output.avi</replaceable>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
358 </screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
359 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
360 </example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
361 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
362
19260
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
363
21450
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
364 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
365
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
366
19260
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
367 <sect1 id="menc-feat-handheld-psp">
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
368 <title>Encoding to Sony PSP video format</title>
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
369
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
370 <para>
21449
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
371 <application>MEncoder</application> supports encoding to Sony PSP's video
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
372 format, but, depending on the revision of the PSP software, the constraints
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
373 may differ.
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
374 You should be safe if you respect the following constraints:
19260
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
375 <itemizedlist>
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
376 <listitem><para>
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
377 <emphasis role="bold">Bitrate</emphasis>: it should not exceed 1500kbps,
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
378 however, past versions supported pretty much any bitrate as long as the
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
379 header claimed it was not too high.
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
380 </para></listitem>
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
381 <listitem><para>
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
382 <emphasis role="bold">Dimensions</emphasis>: the width and height of the
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
383 PSP video should be multiples of 16, and the product width * height must
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
384 be &lt;= 64000.
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
385 Under some circumstances, it may be possible for the PSP to play higher
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
386 resolutions.
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
387 </para></listitem>
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
388 <listitem><para>
20037
50113e22db17 Fix hz vs Hz typo.
diego
parents: 20035
diff changeset
389 <emphasis role="bold">Audio</emphasis>: its samplerate should be 24kHz
50113e22db17 Fix hz vs Hz typo.
diego
parents: 20035
diff changeset
390 for MPEG-4 videos, and 48kHz for H.264.
19260
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
391 </para></listitem>
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
392 </itemizedlist>
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
393 </para>
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
394
20035
e53a2222de61 Add IDs to some examples/tables.
diego
parents: 19679
diff changeset
395 <example id="encode_for_psp">
e53a2222de61 Add IDs to some examples/tables.
diego
parents: 19679
diff changeset
396 <title>encode for PSP</title>
19260
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
397 <para>
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
398 <screen>
21409
7bf6eae39180 Some fixes for previous commit, 10l for me
torinthiel
parents: 21408
diff changeset
399 mencoder -ofps 30000/1001 -af lavcresample=24000 -vf harddup -of lavf \
21449
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
400 -oac lavc -ovc lavc -lavcopts aglobal=1:vglobal=1:vcodec=mpeg4:acodec=aac \
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
401 -lavfopts format=psp:i_certify_that_my_video_stream_does_not_use_b_frames \
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
402 <replaceable>input.video</replaceable> -o <replaceable>output.psp</replaceable>
19260
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
403 </screen>
21449
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
404 Note that you can set the title of the video with
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
405 <option>-info name=<replaceable>MovieTitle</replaceable></option>.
19260
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
406 </para>
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
407 </example>
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
408 </sect1>
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
409
afc63a0f266f How to encode movies for PSP
gpoirier
parents: 18254
diff changeset
410
21450
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
411 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
412
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
413
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
414 <sect1 id="menc-feat-mpeg">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
415 <title>Encoding to MPEG format</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
416 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
417 <application>MEncoder</application> can create MPEG (MPEG-PS) format output
16157
809452f0da6e Fix outdated "Encoding to MPEG format" (MEncoder improved a lot :-) )
gpoirier
parents: 16080
diff changeset
418 files.
809452f0da6e Fix outdated "Encoding to MPEG format" (MEncoder improved a lot :-) )
gpoirier
parents: 16080
diff changeset
419 Usually, when you are using MPEG-1 or MPEG-2 video, it is because you are
809452f0da6e Fix outdated "Encoding to MPEG format" (MEncoder improved a lot :-) )
gpoirier
parents: 16080
diff changeset
420 encoding for a constrained format such as SVCD, VCD, or DVD.
809452f0da6e Fix outdated "Encoding to MPEG format" (MEncoder improved a lot :-) )
gpoirier
parents: 16080
diff changeset
421 The specific requirements for these formats are explained in the
809452f0da6e Fix outdated "Encoding to MPEG format" (MEncoder improved a lot :-) )
gpoirier
parents: 16080
diff changeset
422 <link linkend="menc-feat-vcd-dvd"> VCD and DVD creation guide</link>
809452f0da6e Fix outdated "Encoding to MPEG format" (MEncoder improved a lot :-) )
gpoirier
parents: 16080
diff changeset
423 section.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
424 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
425
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
426 <para>
12578
3f543ec01d1e 's should be outside of <application> tags.
diego
parents: 12484
diff changeset
427 To change <application>MEncoder</application>'s output file format,
11540
d480f7e36b74 <application> attack
wight
parents: 11271
diff changeset
428 use the <option>-of mpeg</option> option.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
429 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
430
16550
2b0df753ddd3 Creating a MPEG-1 file suitable for exchange, taken from the example posted by James Courtier-Dutton on mplayer-users
gpoirier
parents: 16549
diff changeset
431 <informalexample>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
432 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
433 Example:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
434 <screen>
21408
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
435 mencoder <replaceable>input.avi</replaceable> -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video \
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
436 -oac copy <replaceable>other_options</replaceable> -o <replaceable>output.mpg</replaceable>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
437 </screen>
16560
0e8048ca6af1 wording fix suggested by the Wanderer
diego
parents: 16558
diff changeset
438 Creating an MPEG-1 file suitable to be played on systems with minimal
0e8048ca6af1 wording fix suggested by the Wanderer
diego
parents: 16558
diff changeset
439 multimedia support, such as default Windows installs:
16550
2b0df753ddd3 Creating a MPEG-1 file suitable for exchange, taken from the example posted by James Courtier-Dutton on mplayer-users
gpoirier
parents: 16549
diff changeset
440 <screen>
21408
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
441 mencoder <replaceable>input.avi</replaceable> -of mpeg -mpegopts format=mpeg1:tsaf:muxrate=2000 \
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
442 -o <replaceable>output.mpg</replaceable> -oac lavc -lavcoptc acodec=mp2:abitrate=224 -ovc lavc \
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
443 -lavcopts vcodec=mpeg1video:vbitrate=1152:keyint=15:mbd=2:aspect=4/3
16550
2b0df753ddd3 Creating a MPEG-1 file suitable for exchange, taken from the example posted by James Courtier-Dutton on mplayer-users
gpoirier
parents: 16549
diff changeset
444 </screen>
21063
75152ed200e7 Add a new MPEG encoding example using lavf
gpoirier
parents: 20860
diff changeset
445 Same, but using <systemitem class="library">libavformat</systemitem> MPEG muxer:
75152ed200e7 Add a new MPEG encoding example using lavf
gpoirier
parents: 20860
diff changeset
446 <screen>
21408
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
447 mencoder <replaceable>input.avi</replaceable> -o <replaceable>VCD.mpg</replaceable> -ofps 25 -vf scale=352:288,harddup -of lavf \
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
448 -lavfopts format=mpg:i_certify_that_my_video_stream_does_not_use_b_frames \
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
449 -oac lavc -lavcopts acodec=mp2:abitrate=224 -ovc lavc \
21409
7bf6eae39180 Some fixes for previous commit, 10l for me
torinthiel
parents: 21408
diff changeset
450 -lavcopts vcodec=mpeg1video:vrc_buf_size=327:keyint=15:vrc_maxrate=1152:vbitrate=1152:vmax_b_frames=0
21063
75152ed200e7 Add a new MPEG encoding example using lavf
gpoirier
parents: 20860
diff changeset
451 </screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
452 </para>
16550
2b0df753ddd3 Creating a MPEG-1 file suitable for exchange, taken from the example posted by James Courtier-Dutton on mplayer-users
gpoirier
parents: 16549
diff changeset
453 </informalexample>
2b0df753ddd3 Creating a MPEG-1 file suitable for exchange, taken from the example posted by James Courtier-Dutton on mplayer-users
gpoirier
parents: 16549
diff changeset
454
18022
b5b16f92b842 Add a note explaining that it's okay to use a different target bitrate on the various passes of a video encode
gpoirier
parents: 17594
diff changeset
455 <note><title>Hint:</title>
b5b16f92b842 Add a note explaining that it's okay to use a different target bitrate on the various passes of a video encode
gpoirier
parents: 17594
diff changeset
456 <para>
21449
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
457 If for some reason the video quality of the second pass did not
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
458 satisfy you, you may re-run your video encode with a different target
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
459 bitrate, provided that you saved the statistics file of the previous
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
460 pass.
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
461 This is possible because the statistics file's primary goal is to
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
462 record the complexity of each frame, which doesn't depend heavily on
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
463 bitrate. You should note, though, that you'll get the best results if
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
464 all passes are run with target bitrates that do not differ very much.
18022
b5b16f92b842 Add a note explaining that it's okay to use a different target bitrate on the various passes of a video encode
gpoirier
parents: 17594
diff changeset
465 </para>
b5b16f92b842 Add a note explaining that it's okay to use a different target bitrate on the various passes of a video encode
gpoirier
parents: 17594
diff changeset
466 </note>
21450
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
467 </sect1>
18022
b5b16f92b842 Add a note explaining that it's okay to use a different target bitrate on the various passes of a video encode
gpoirier
parents: 17594
diff changeset
468
21450
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
469
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
470 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
471
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
472
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
473 <sect1 id="menc-feat-rescale">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
474 <title>Rescaling movies</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
475
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
476 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
477 Often the need to resize movie images' size emerges. Its reasons can be
17039
5c87173bb774 fixes in examples, minor details
wight
parents: 16767
diff changeset
478 many: decreasing file size, network bandwidth, etc. Most people even do
12484
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
479 rescaling when converting DVDs or SVCDs to DivX AVI. If you wish to rescale,
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
480 read the <link linkend="aspect">Preserving aspect ratio</link> section.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
481 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
482
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
483 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
484 The scaling process is handled by the <literal>scale</literal> video filter:
9677
142c42fa0986 sync with HTML
nicolas
parents: 9675
diff changeset
485 <option>-vf scale=<replaceable>width</replaceable>:<replaceable>height</replaceable></option>.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
486 Its quality can be set with the <option>-sws</option> option.
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
487 If it is not specified, <application>MEncoder</application> will use 2: bicubic.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
488 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
489
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
490 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
491 Usage:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
492 <screen>
21408
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
493 mencoder <replaceable>input.mpg</replaceable> -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell \
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
494 -vf scale=640:480 -o <replaceable>output.avi</replaceable>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
495 </screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
496 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
497 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
498
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
499
21450
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
500 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
501
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
502
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
503 <sect1 id="menc-feat-streamcopy">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
504 <title>Stream copying</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
505
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
506 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
507 <application>MEncoder</application> can handle input streams in two ways:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
508 <emphasis role="bold">encode</emphasis> or <emphasis role="bold">copy</emphasis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
509 them. This section is about <emphasis role="bold">copying</emphasis>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
510 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
511
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
512 <itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
513 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
514 <emphasis role="bold">Video stream</emphasis> (option <option>-ovc copy</option>):
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
515 nice stuff can be done :) Like, putting (not converting!) FLI or VIVO or
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
516 MPEG-1 video into an AVI file! Of course only
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
517 <application>MPlayer</application> can play such files :) And it probably
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
518 has no real life value at all. Rationally: video stream copying can be
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
519 useful for example when only the audio stream has to be encoded (like,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
520 uncompressed PCM to MP3).
21449
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
521 </para></listitem>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
522 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
523 <emphasis role="bold">Audio stream</emphasis> (option <option>-oac copy</option>):
12758
250ce1b2ef8f improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents: 12615
diff changeset
524 straightforward. It is possible to take an external audio file (MP3,
10429
diego
parents: 10184
diff changeset
525 WAV) and mux it into the output stream. Use the
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
526 <option>-audiofile <replaceable>filename</replaceable></option> option
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
527 for this.
21449
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
528 </para></listitem>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
529 </itemizedlist>
16228
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
530
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
531 <para>
21449
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
532 Using <option>-oac copy</option> to copy from one container format to
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
533 another may require the use of <option>-fafmttag</option> to keep the
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
534 audio format tag of the original file.
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
535 For example, if you are converting an NSV file with AAC audio to an AVI
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
536 container, the audio format tag will be incorrect and it will have to
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
537 be changed. For a list of audio format tags, check
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
538 <filename>codecs.conf</filename>.
16228
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
539 </para>
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
540
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
541 <para>
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
542 Example:
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
543 <screen>
21408
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
544 mencoder <replaceable>input.nsv</replaceable> -oac copy -fafmttag 0x706D \
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
545 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -o <replaceable>output.avi</replaceable>
16228
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
546 </screen>
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
547 </para>
21450
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
548 </sect1>
16228
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
549
21450
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
550
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
551 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
552
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
553
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
554 <sect1 id="menc-feat-enc-images">
21446
64e83b258124 mention all other image formats
torinthiel
parents: 21409
diff changeset
555 <title>Encoding from multiple input image files (JPEG, PNG, TGA, etc.)</title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
556
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
557 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
558 <application>MEncoder</application> is capable of creating movies from one
21446
64e83b258124 mention all other image formats
torinthiel
parents: 21409
diff changeset
559 or more JPEG, PNG, TGA, or other image files. With simple framecopy it can create MJPEG
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
560 (Motion JPEG), MPNG (Motion PNG) or MTGA (Motion TGA) files.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
561 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
562
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
563 <orderedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
564 <title>Explanation of the process:</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
565 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
566 <application>MEncoder</application> <emphasis>decodes</emphasis> the input image(s) with
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
567 <systemitem class="library">libjpeg</systemitem> (when decoding PNGs, it
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
568 will use <systemitem class="library">libpng</systemitem>).
21449
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
569 </para></listitem>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
570 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
571 <application>MEncoder</application> then feeds the decoded image to the
20860
f95698d9d53c rename: XviD -> Xvid
kraymer
parents: 20535
diff changeset
572 chosen video compressor (DivX4, Xvid, FFmpeg msmpeg4, etc.).
21449
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
573 </para></listitem>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
574 </orderedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
575
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
576 <formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
577 <title>Examples</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
578 <para>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
579 The explanation of the <option>-mf</option> option is in the man page.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
580
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
581 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
582 <para>
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
583 Creating an MPEG-4 file from all the JPEG files in the current directory:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
584 <screen>
21408
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
585 mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc lavc \
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
586 -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o <replaceable>output.avi</replaceable>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
587 </screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
588 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
589 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
590
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
591 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
592 <para>
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
593 Creating an MPEG-4 file from some JPEG files in the current directory:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
594 <screen>
21408
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
595 mencoder mf://<replaceable>frame001.jpg,frame002.jpg</replaceable> -mf w=800:h=600:fps=25:type=jpg \
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
596 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o <replaceable>output.avi</replaceable>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
597 </screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
598 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
599 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
600
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
601 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
602 <para>
17049
4b04284b7a92 How to create a MPEG4 video from an explicit list of files, based on a patch by devik <devik AH cdi POIS cz>
gpoirier
parents: 17039
diff changeset
603 Creating an MPEG-4 file from explicit list of JPEG files (list.txt in current directory
4b04284b7a92 How to create a MPEG4 video from an explicit list of files, based on a patch by devik <devik AH cdi POIS cz>
gpoirier
parents: 17039
diff changeset
604 contains the list of files to use as source, one per line):
4b04284b7a92 How to create a MPEG4 video from an explicit list of files, based on a patch by devik <devik AH cdi POIS cz>
gpoirier
parents: 17039
diff changeset
605 <screen>
4b04284b7a92 How to create a MPEG4 video from an explicit list of files, based on a patch by devik <devik AH cdi POIS cz>
gpoirier
parents: 17039
diff changeset
606 mencoder mf://<replaceable>@list.txt</replaceable> -mf w=800:h=600:fps=25:type=jpg \
21408
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
607 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o <replaceable>output.avi</replaceable>
17049
4b04284b7a92 How to create a MPEG4 video from an explicit list of files, based on a patch by devik <devik AH cdi POIS cz>
gpoirier
parents: 17039
diff changeset
608 </screen>
4b04284b7a92 How to create a MPEG4 video from an explicit list of files, based on a patch by devik <devik AH cdi POIS cz>
gpoirier
parents: 17039
diff changeset
609 </para>
4b04284b7a92 How to create a MPEG4 video from an explicit list of files, based on a patch by devik <devik AH cdi POIS cz>
gpoirier
parents: 17039
diff changeset
610 </informalexample>
4b04284b7a92 How to create a MPEG4 video from an explicit list of files, based on a patch by devik <devik AH cdi POIS cz>
gpoirier
parents: 17039
diff changeset
611
4b04284b7a92 How to create a MPEG4 video from an explicit list of files, based on a patch by devik <devik AH cdi POIS cz>
gpoirier
parents: 17039
diff changeset
612 <informalexample>
4b04284b7a92 How to create a MPEG4 video from an explicit list of files, based on a patch by devik <devik AH cdi POIS cz>
gpoirier
parents: 17039
diff changeset
613 <para>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
614 Creating a Motion JPEG (MJPEG) file from all the JPEG files in the current
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
615 directory:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
616 <screen>
14093
3bf74bf969ff Unify all image encoding examples and fix a typo (*.jpg vs *.png) noticed
diego
parents: 14024
diff changeset
617 mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc copy -oac copy -o <replaceable>output.avi</replaceable>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
618 </screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
619 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
620 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
621
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
622 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
623 <para>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
624 Creating an uncompressed file from all the PNG files in the current directory:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
625 <screen>
17039
5c87173bb774 fixes in examples, minor details
wight
parents: 16767
diff changeset
626 mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc raw -oac copy -o <replaceable>output.avi</replaceable>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
627 </screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
628 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
629 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
630
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
631 <note><para>
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
632 Width must be integer multiple of 4, it is a limitation of the RAW RGB AVI format.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
633 </para></note>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
634
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
635 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
636 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
637 Creating a Motion PNG (MPNG) file from all the PNG files in the current
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
638 directory:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
639 <screen>
21449
77088392a591 [cosmetics] Reindent XML source
torinthiel
parents: 21446
diff changeset
640 mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc copy -oac copy -o <replaceable>output.avi</replaceable><!--
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
641 --></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
642 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
643 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
644
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
645 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
646 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
647 Creating a Motion TGA (MTGA) file from all the TGA files in the current
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
648 directory:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
649 <screen>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
650 mencoder mf://*.tga -mf w=800:h=600:fps=25:type=tga -ovc copy -oac copy -o <replaceable>output.avi</replaceable><!--
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
651 --></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
652 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
653 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
654 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
655 </formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
656 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
657
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
658
21450
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
659 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
660
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
661
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
662 <sect1 id="menc-feat-extractsub">
12615
84e078fd64b4 uniform VOBsub spelling
diego
parents: 12599
diff changeset
663 <title>Extracting DVD subtitles to VOBsub file</title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
664
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
665 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
666 <application>MEncoder</application> is capable of extracting subtitles from
12615
84e078fd64b4 uniform VOBsub spelling
diego
parents: 12599
diff changeset
667 a DVD into VOBsub formatted files. They consist of a pair of files ending in
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
668 <filename>.idx</filename> and <filename>.sub</filename> and are usually
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
669 packaged in a single <filename>.rar</filename> archive.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
670 <application>MPlayer</application> can play these with the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
671 <option>-vobsub</option> and <option>-vobsubid</option> options.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
672 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
673
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
674 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
675 You specify the basename (i.e without the <filename>.idx</filename> or
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
676 <filename>.sub</filename> extension) of the output files with
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
677 <option>-vobsubout</option> and the index for this subtitle in the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
678 resulting files with <option>-vobsuboutindex</option>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
679 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
680
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
681 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
682 If the input is not from a DVD you should use <option>-ifo</option> to
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
683 indicate the <filename>.ifo</filename> file needed to construct the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
684 resulting <filename>.idx</filename> file.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
685 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
686
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
687 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
688 If the input is not from a DVD and you do not have the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
689 <filename>.ifo</filename> file you will need to use the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
690 <option>-vobsubid</option> option to let it know what language id to put in
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
691 the <filename>.idx</filename> file.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
692 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
693
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
694 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
695 Each run will append the running subtitle if the <filename>.idx</filename>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
696 and <filename>.sub</filename> files already exist. So you should remove any
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
697 before starting.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
698 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
699
20035
e53a2222de61 Add IDs to some examples/tables.
diego
parents: 19679
diff changeset
700 <example id="copying_two_subtitles_from_a_dvd_while_doing_two_pass_encoding">
14421
4a70b65cd2ae consistent "two pass" spelling
diego
parents: 14131
diff changeset
701 <title>Copying two subtitles from a DVD while doing two pass encoding</title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
702 <screen>
21408
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
703 rm <replaceable>subtitles.idx</replaceable> <replaceable>subtitles.sub</replaceable>
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
704 mencoder dvd://1 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 \
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
705 -vobsubout <replaceable>subtitles</replaceable> -vobsuboutindex 0 -sid 2
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
706 mencoder dvd://1 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vpass=2 \
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
707 -vobsubout <replaceable>subtitles</replaceable> -vobsuboutindex 1 -sid 5<!--
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
708 --></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
709 </example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
710
20035
e53a2222de61 Add IDs to some examples/tables.
diego
parents: 19679
diff changeset
711 <example id="copying_a_french_subtitle_from_an_mpeg_file">
21378
torinthiel
parents: 21063
diff changeset
712 <title>Copying a French subtitle from an MPEG file</title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
713 <screen>
21408
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
714 rm <replaceable>subtitles.idx</replaceable> <replaceable>subtitles.sub</replaceable>
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
715 mencoder <replaceable>movie.mpg</replaceable> -ifo <replaceable>movie.ifo</replaceable> -vobsubout <replaceable>subtitles</replaceable> -vobsuboutindex 0 \
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
716 -vobsuboutid fr -sid 1 -nosound -ovc copy
15492
d2073ff48b5b Fixes the vobsub extraction example
gpoirier
parents: 15487
diff changeset
717 </screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
718 </example>
21450
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
719 </sect1>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
720
21450
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
721
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
722 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
275446fef914 [cosmetics] Consistent XML source formatting
torinthiel
parents: 21449
diff changeset
723
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
724
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
725 <sect1 id="aspect">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
726 <title>Preserving aspect ratio</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
727 <para>
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
728 DVDs and SVCDs (i.e. MPEG-1/2) files contain an aspect ratio value, which
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
729 describes how the player should scale the video stream, so humans will not
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
730 have egg heads (ex.: 480x480 + 4:3 = 640x480). However when encoding to AVI
17039
5c87173bb774 fixes in examples, minor details
wight
parents: 16767
diff changeset
731 (DivX) files, you have to be aware that AVI headers do not store this value.
10065
422876da049e Error in the aspect ratio calculation, plus typos and rewordings.
diego
parents: 9677
diff changeset
732 Rescaling the movie is disgusting and time consuming, there has to be a better
422876da049e Error in the aspect ratio calculation, plus typos and rewordings.
diego
parents: 9677
diff changeset
733 way!
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
734 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
735
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
736 <para>There is</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
737
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
738 <para>
18254
1ad76e187beb Small grammar fixes:
corey
parents: 18245
diff changeset
739 MPEG-4 has a unique feature: the video stream can contain its needed aspect
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
740 ratio. Yes, just like MPEG-1/2 (DVD, SVCD) and H.263 files. Regretfully, there are
18254
1ad76e187beb Small grammar fixes:
corey
parents: 18245
diff changeset
741 few video players apart from <application>MPlayer</application> that support this
18245
2a5ea72115f8 Other players apart from MPlayer support MPEG-4 aspect now, closes #482.
diego
parents: 18029
diff changeset
742 MPEG-4 attribute.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
743 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
744
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
745 <para>
11822
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
746 This feature can be used only with
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
747 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>'s
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
748 <systemitem>mpeg4</systemitem> codec. Keep in mind: although
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
749 <application>MPlayer</application> will correctly play the created file,
18245
2a5ea72115f8 Other players apart from MPlayer support MPEG-4 aspect now, closes #482.
diego
parents: 18029
diff changeset
750 other players may use the wrong aspect ratio.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
751 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
752
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
753 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
754 You seriously should crop the black bands over and below the movie image.
10065
422876da049e Error in the aspect ratio calculation, plus typos and rewordings.
diego
parents: 9677
diff changeset
755 See the man page for the usage of the <systemitem>cropdetect</systemitem> and
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
756 <systemitem>crop</systemitem> filters.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
757 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
758
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
759 <para>
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
760 Usage
21408
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
761 <screen>mencoder <replaceable>sample-svcd.mpg</replaceable> -vf crop=714:548:0:14 -oac copy -ovc lavc \
ae8c4d78c18a Reformat examples:
torinthiel
parents: 21407
diff changeset
762 -lavcopts vcodec=mpeg4:mbd=2:trell:autoaspect -o <replaceable>output.avi</replaceable></screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
763 </para>
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
764 </sect1>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
765
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
766 </chapter>