Mercurial > mplayer.hg
annotate DOCS/xml/en/mencoder.xml @ 16678:4ebad3313fe6
libavcodec can encode to SVQ1 and RV20.
author | diego |
---|---|
date | Wed, 05 Oct 2005 14:43:24 +0000 |
parents | 0e8048ca6af1 |
children | 14a22bff8228 |
rev | line source |
---|---|
9675 | 1 <?xml version="1.0" encoding="iso-8859-1"?> |
10913
49b1a67e7381
Add revision keyword to english xml files, to ease translation synchronization
lumag
parents:
10869
diff
changeset
|
2 <!-- $Revision$ --> |
9675 | 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 | 5 |
6 <para> | |
7 For the complete list of available <application>MEncoder</application> options | |
8 and examples, please see the man page. For a series of hands-on examples and | |
9 detailed guides on using several encoding parameters, read the | |
10 <ulink url="../../tech/encoding-tips.txt">encoding-tips</ulink> that were | |
15029 | 11 collected from several mailing list threads on MPlayer-users. Search the |
9675 | 12 <ulink url="http://mplayerhq.hu/pipermail/mplayer-users/">archives</ulink> |
13 for a wealth of discussions about all aspects of and problems related to | |
14 encoding with <application>MEncoder</application>. | |
15 </para> | |
16 | |
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
|
17 <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
|
18 <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
|
19 |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
20 <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
|
21 Audio and video codecs for encoding are selected with the |
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 <option>-oac</option> and <option>-ovc</option> options, respectively. |
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 The following choices are available, although some may not have been |
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 enabled at compiletime: |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
25 </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
|
26 <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
|
27 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
|
28 |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
29 <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
|
30 <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
|
31 <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
|
32 <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
|
33 </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
|
34 <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
|
35 <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
|
36 <entry>mp3lame</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
|
37 <entry>Encode to VBR, ABR or CBR MP3 with LAME</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
|
38 </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
|
39 <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 <entry>lavc</entry> |
16541
4a9808f6cacc
add some internal links between "codecs supported by mencoder" and
gpoirier
parents:
16534
diff
changeset
|
41 <entry>Use one of <link linkend="menc-feat-enc-libavcodec-audio-codecs"><systemitem class="library">libavcodec</systemitem>'s audio codecs</link> |
4a9808f6cacc
add some internal links between "codecs supported by mencoder" and
gpoirier
parents:
16534
diff
changeset
|
42 </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
|
43 </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
|
44 <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
|
45 <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
|
46 <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
|
47 </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
|
48 <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
|
49 <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
|
50 <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
|
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 <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
|
53 <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
|
54 <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
|
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 <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
|
57 <entry>pcm</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 <entry>Uncompressed PCM audio</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
|
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 <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
|
61 <entry>copy</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 <entry>Do not reencode, just copy compressed frames</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
|
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 </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
|
65 </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
|
66 </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
|
67 </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
|
68 |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
69 <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
|
70 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
|
71 <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
|
72 <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
|
73 <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
|
74 <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
|
75 </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
|
76 <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
|
77 <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
|
78 <entry>lavc</entry> |
16541
4a9808f6cacc
add some internal links between "codecs supported by mencoder" and
gpoirier
parents:
16534
diff
changeset
|
79 <entry>Use one of <link linkend="menc-feat-enc-libavcodec-video-codecs"><systemitem class="library">libavcodec</systemitem>'s video codecs</link> |
4a9808f6cacc
add some internal links between "codecs supported by mencoder" and
gpoirier
parents:
16534
diff
changeset
|
80 </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
|
81 </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 <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
|
83 <entry>xvid</entry> |
16549 | 84 <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
|
85 </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
|
86 <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
|
87 <entry>x264</entry> |
16558 | 88 <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
|
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 <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
|
91 <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
|
92 <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
|
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 <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
|
95 <entry>raw</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
|
96 <entry>Uncompressed video frames</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
|
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 <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
|
99 <entry>copy</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 <entry>Do not reencode, just copy compressed frames</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
|
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 <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
|
103 <entry>frameno</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
|
104 <entry>Used for 3-pass encoding (not recommended)</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
|
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 </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
|
107 </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
|
108 </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
|
109 </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
|
110 </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
|
111 |
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 |
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 <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
|
114 <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
|
115 |
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> |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
117 <application>MEncoder</application> can encode from files or directly |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
118 from a DVD or VCD disc. |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
119 Simply include the filename on the command line to encode from a file, |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
120 or <option>dvd://</option><replaceable>titlenumber</replaceable> or |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
121 <option>vcd://</option><replaceable>tracknumber</replaceable> to encode |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
122 from a DVD title or VCD track. |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
123 If you have already copied a DVD to your hard drive (you can use a tool |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
124 such as <application>dvdbackup</application>, available on most systems), |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
125 and wish to encode from the copy, you should still use the |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
126 <option>dvd://</option> syntax, along with <option>-dvd-device</option> |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
127 followed by the path to the copied DVD root. |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
128 |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
129 The <option>-dvd-device</option> and <option>-cdrom-device</option> |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
130 options can also be used to override the paths to the device nodes |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
131 for reading directly from disc, if the defaults of |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
132 <filename>/dev/dvd</filename> and <filename>/dev/cdrom</filename> do |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
133 not work on your system. |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
134 </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
|
135 <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
|
136 When encoding from DVD, it is often desirable to select a chapter or |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
137 range of chapters to encode. |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
138 You can use the <option>-chapter</option> option for this purpose. |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
139 For example, <option>-chapter</option> <replaceable>1-4</replaceable> |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
140 will only encode chapters 1 through 4 from the DVD. |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
141 This is especially useful if you will be making a 1400 MB encode |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
142 targetted for two CDs, since you can ensure the split occurs exactly |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
143 at a chapter boundary rather than in the middle of a scene. |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
144 </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
|
145 <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
|
146 If you have a supported TV capture card, you can also encode from the |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
147 TV-in device. |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
148 Use <option>tv://</option><replaceable>channelnumber</replaceable> as |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
149 the filename, and <option>-tv</option> to configure various capture |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
150 settings. |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
151 DVB input works similarly. |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
152 </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
|
153 </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
|
154 |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
155 |
12400
903ac68f2bc8
divx --> lavc, spelling, more sensible section name
diego
parents:
12399
diff
changeset
|
156 <sect1 id="menc-feat-mpeg4"> |
14421 | 157 <title>Encoding two pass MPEG-4 ("DivX")</title> |
9675 | 158 |
159 <para> | |
160 The name comes from the fact that this method encodes the file <emphasis>twice</emphasis>. | |
161 The first encoding (dubbed pass) creates some temporary files | |
162 (<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
|
163 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
|
164 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
|
165 In the second pass, the two pass output |
9675 | 166 file is created, using the bitrate data from the temporary files. The |
167 resulting file will have much better image quality. If this is the first | |
168 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
|
169 net. |
9675 | 170 </para> |
171 | |
12484
58056bc98dd9
Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents:
12400
diff
changeset
|
172 <example> |
58056bc98dd9
Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents:
12400
diff
changeset
|
173 <title>copy audio track</title> |
9675 | 174 <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
|
175 Two pass encode of the second track a DVD to an MPEG-4 ("DivX") |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
176 AVI while copying the audio track. |
9675 | 177 <screen> |
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
|
178 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o <replaceable>/dev/null</replaceable> |
11710 | 179 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac copy -o <replaceable>movie.avi</replaceable> |
9675 | 180 </screen> |
181 </para> | |
12484
58056bc98dd9
Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents:
12400
diff
changeset
|
182 </example> |
9675 | 183 |
184 <example> | |
12484
58056bc98dd9
Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents:
12400
diff
changeset
|
185 <title>encode audio track</title> |
9675 | 186 <para> |
14421 | 187 Two pass encode of a DVD to an MPEG-4 ("DivX") AVI while encoding |
12484
58056bc98dd9
Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents:
12400
diff
changeset
|
188 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
|
189 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
|
190 some cases. |
9675 | 191 <screen> |
12484
58056bc98dd9
Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents:
12400
diff
changeset
|
192 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac mp3lame -lameopts vbr=3 -o <replaceable>movie.avi</replaceable> |
58056bc98dd9
Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents:
12400
diff
changeset
|
193 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac mp3lame -lameopts vbr=3 -o <replaceable>movie.avi</replaceable> |
9675 | 194 </screen> |
195 </para> | |
196 </example> | |
197 </sect1> | |
198 | |
199 <sect1 id="menc-feat-mpeg"> | |
200 <title>Encoding to MPEG format</title> | |
201 <para> | |
202 <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
|
203 files. |
809452f0da6e
Fix outdated "Encoding to MPEG format" (MEncoder improved a lot :-) )
gpoirier
parents:
16080
diff
changeset
|
204 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
|
205 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
|
206 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
|
207 <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
|
208 section. |
9675 | 209 </para> |
210 | |
211 <para> | |
12578 | 212 To change <application>MEncoder</application>'s output file format, |
11540 | 213 use the <option>-of mpeg</option> option. |
9675 | 214 </para> |
215 | |
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
|
216 <informalexample> |
9675 | 217 <para> |
218 Example: | |
219 <screen> | |
11710 | 220 mencoder -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -oac copy <replaceable>other_options</replaceable> <replaceable>media.avi</replaceable> -o <replaceable>output.mpg</replaceable> |
9675 | 221 </screen> |
16560 | 222 Creating an MPEG-1 file suitable to be played on systems with minimal |
223 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
|
224 <screen> |
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
|
225 mencoder -of mpeg -mpegopts format=mpeg1:tsaf:muxrate=2000 -o \ |
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
|
226 <replaceable>x.mpg</replaceable> -oac lavc -ovc lavc \ |
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
|
227 -lavcopts acodec=mp2:abitrate=224:vcodec=mpeg1video:vbitrate=1152:keyint=15:mbd=2:aspect=4/3 \ |
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
|
228 <replaceable>input.avi</replaceable> |
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
|
229 </screen> |
9675 | 230 </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
|
231 </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
|
232 |
9675 | 233 </sect1> |
234 | |
235 <sect1 id="menc-feat-rescale"> | |
236 <title>Rescaling movies</title> | |
237 | |
238 <para> | |
239 Often the need to resize movie images' size emerges. Its reasons can be | |
240 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
|
241 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
|
242 read the <link linkend="aspect">Preserving aspect ratio</link> section. |
9675 | 243 </para> |
244 | |
245 <para> | |
246 The scaling process is handled by the <literal>scale</literal> video filter: | |
9677 | 247 <option>-vf scale=<replaceable>width</replaceable>:<replaceable>height</replaceable></option>. |
9675 | 248 Its quality can be set with the <option>-sws</option> option. |
15329 | 249 If it is not specified, <application>MEncoder</application> will use 2: bicubic. |
9675 | 250 </para> |
251 | |
252 <para> | |
253 Usage: | |
254 <screen> | |
12484
58056bc98dd9
Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents:
12400
diff
changeset
|
255 mencoder <replaceable>input.mpg</replaceable> -ovc lavc -lavcopts vcodec=mpeg4 -vf scale=640:480 -o <replaceable>output.avi</replaceable> |
9675 | 256 </screen> |
257 </para> | |
258 </sect1> | |
259 | |
260 | |
261 <sect1 id="menc-feat-streamcopy"> | |
262 <title>Stream copying</title> | |
263 | |
264 <para> | |
265 <application>MEncoder</application> can handle input streams in two ways: | |
266 <emphasis role="bold">encode</emphasis> or <emphasis role="bold">copy</emphasis> | |
267 them. This section is about <emphasis role="bold">copying</emphasis>. | |
268 </para> | |
269 | |
270 <itemizedlist> | |
271 <listitem><para> | |
272 <emphasis role="bold">Video stream</emphasis> (option <option>-ovc copy</option>): | |
273 nice stuff can be done :) Like, putting (not converting!) FLI or VIVO or | |
14024 | 274 MPEG-1 video into an AVI file! Of course only |
9675 | 275 <application>MPlayer</application> can play such files :) And it probably |
276 has no real life value at all. Rationally: video stream copying can be | |
277 useful for example when only the audio stream has to be encoded (like, | |
278 uncompressed PCM to MP3). | |
279 </para></listitem> | |
280 <listitem><para> | |
281 <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
|
282 straightforward. It is possible to take an external audio file (MP3, |
10429 | 283 WAV) and mux it into the output stream. Use the |
9675 | 284 <option>-audiofile <replaceable>filename</replaceable></option> option |
285 for this. | |
286 </para></listitem> | |
287 </itemizedlist> | |
16228 | 288 |
289 <para> | |
290 Using <option>-oac copy</option> to copy from one container format to | |
291 another may require the use of <option>-fafmttag</option> to keep the | |
292 audio format tag of the original file. | |
293 For example, if you are converting an NSV file with AAC audio to an AVI | |
294 container, the audio format tag will be incorrect and it will have to | |
295 be changed. For a list of audio format tags, check | |
296 <filename>codecs.conf</filename>. | |
297 </para> | |
298 | |
299 <para> | |
300 Example: | |
301 <screen> | |
302 mencoder <replaceable>input.nsv</replaceable> -oac copy -fafmttag 0x706D -ovc lavc -lavcopts vcodec=mpeg4 -o <replaceable>output.avi</replaceable> | |
303 </screen> | |
304 </para> | |
305 | |
9675 | 306 </sect1> |
307 | |
308 | |
309 <sect1 id="menc-feat-enc-images"> | |
12399
9403b245fcda
Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents:
11913
diff
changeset
|
310 <title>Encoding from multiple input image files (JPEG, PNG, TGA, SGI)</title> |
9675 | 311 |
312 <para> | |
313 <application>MEncoder</application> is capable of creating movies from one | |
12758
250ce1b2ef8f
improved DVD ripping guide by Jason Tackaberry <tack@sault.org>
diego
parents:
12615
diff
changeset
|
314 or more JPEG, PNG or TGA files. With simple framecopy it can create MJPEG |
9675 | 315 (Motion JPEG), MPNG (Motion PNG) or MTGA (Motion TGA) files. |
316 </para> | |
317 | |
318 <orderedlist> | |
319 <title>Explanation of the process:</title> | |
320 <listitem><para> | |
321 <application>MEncoder</application> <emphasis>decodes</emphasis> the input image(s) with | |
322 <systemitem class="library">libjpeg</systemitem> (when decoding PNGs, it | |
323 will use <systemitem class="library">libpng</systemitem>). | |
324 </para></listitem> | |
325 <listitem><para> | |
326 <application>MEncoder</application> then feeds the decoded image to the | |
12399
9403b245fcda
Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents:
11913
diff
changeset
|
327 chosen video compressor (DivX4, XviD, FFmpeg msmpeg4, etc.). |
9675 | 328 </para></listitem> |
329 </orderedlist> | |
330 | |
331 <formalpara> | |
332 <title>Examples</title> | |
333 <para> | |
12399
9403b245fcda
Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents:
11913
diff
changeset
|
334 The explanation of the <option>-mf</option> option is in the man page. |
9675 | 335 |
336 <informalexample> | |
337 <para> | |
14024 | 338 Creating an MPEG-4 file from all the JPEG files in the current directory: |
9675 | 339 <screen> |
14093
3bf74bf969ff
Unify all image encoding examples and fix a typo (*.jpg vs *.png) noticed
diego
parents:
14024
diff
changeset
|
340 mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc lavc -lavcopts vcodec=mpeg4 -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
|
341 </screen> |
9675 | 342 </para> |
343 </informalexample> | |
344 | |
345 <informalexample> | |
346 <para> | |
14024 | 347 Creating an MPEG-4 file from some JPEG files in the current directory: |
9675 | 348 <screen> |
14093
3bf74bf969ff
Unify all image encoding examples and fix a typo (*.jpg vs *.png) noticed
diego
parents:
14024
diff
changeset
|
349 mencoder mf://<replaceable>frame001.jpg,frame002.jpg</replaceable> -mf w=800:h=600:fps=25:type=jpg -ovc lavc -lavcopts vcodec=mpeg4 -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
|
350 </screen> |
9675 | 351 </para> |
352 </informalexample> | |
353 | |
354 <informalexample> | |
355 <para> | |
356 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
|
357 directory: |
9675 | 358 <screen> |
14093
3bf74bf969ff
Unify all image encoding examples and fix a typo (*.jpg vs *.png) noticed
diego
parents:
14024
diff
changeset
|
359 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
|
360 </screen> |
9675 | 361 </para> |
362 </informalexample> | |
363 | |
364 <informalexample> | |
365 <para> | |
12399
9403b245fcda
Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents:
11913
diff
changeset
|
366 Creating an uncompressed file from all the PNG files in the current directory: |
9675 | 367 <screen> |
12399
9403b245fcda
Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents:
11913
diff
changeset
|
368 mencoder mf:// -mf w=800:h=600:fps=25:type=png -ovc raw -oac copy -o <replaceable>output.avi</replaceable> |
9403b245fcda
Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents:
11913
diff
changeset
|
369 </screen> |
9675 | 370 </para> |
371 </informalexample> | |
372 | |
373 <note><para> | |
15329 | 374 Width must be integer multiple of 4, it is a limitation of the RAW RGB AVI format. |
9675 | 375 </para></note> |
376 | |
377 <informalexample> | |
378 <para> | |
379 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
|
380 directory: |
9675 | 381 <screen> |
14093
3bf74bf969ff
Unify all image encoding examples and fix a typo (*.jpg vs *.png) noticed
diego
parents:
14024
diff
changeset
|
382 mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc copy -oac copy -o <replaceable>output.avi</replaceable> <!-- |
9675 | 383 --></screen> |
384 </para> | |
385 </informalexample> | |
386 | |
387 <informalexample> | |
388 <para> | |
389 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
|
390 directory: |
9675 | 391 <screen> |
12399
9403b245fcda
Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents:
11913
diff
changeset
|
392 mencoder mf://*.tga -mf w=800:h=600:fps=25:type=tga -ovc copy -oac copy -o <replaceable>output.avi</replaceable><!-- |
9675 | 393 --></screen> |
394 </para> | |
395 </informalexample> | |
396 | |
397 </para> | |
398 </formalpara> | |
399 </sect1> | |
400 | |
401 | |
402 <sect1 id="menc-feat-extractsub"> | |
12615 | 403 <title>Extracting DVD subtitles to VOBsub file</title> |
9675 | 404 |
405 <para> | |
406 <application>MEncoder</application> is capable of extracting subtitles from | |
12615 | 407 a DVD into VOBsub formatted files. They consist of a pair of files ending in |
9675 | 408 <filename>.idx</filename> and <filename>.sub</filename> and are usually |
409 packaged in a single <filename>.rar</filename> archive. | |
410 <application>MPlayer</application> can play these with the | |
411 <option>-vobsub</option> and <option>-vobsubid</option> options. | |
412 </para> | |
413 | |
414 <para> | |
415 You specify the basename (i.e without the <filename>.idx</filename> or | |
416 <filename>.sub</filename> extension) of the output files with | |
417 <option>-vobsubout</option> and the index for this subtitle in the | |
418 resulting files with <option>-vobsuboutindex</option>. | |
419 </para> | |
420 | |
421 <para> | |
422 If the input is not from a DVD you should use <option>-ifo</option> to | |
423 indicate the <filename>.ifo</filename> file needed to construct the | |
424 resulting <filename>.idx</filename> file. | |
425 </para> | |
426 | |
427 <para> | |
428 If the input is not from a DVD and you do not have the | |
429 <filename>.ifo</filename> file you will need to use the | |
430 <option>-vobsubid</option> option to let it know what language id to put in | |
431 the <filename>.idx</filename> file. | |
432 </para> | |
433 | |
434 <para> | |
435 Each run will append the running subtitle if the <filename>.idx</filename> | |
436 and <filename>.sub</filename> files already exist. So you should remove any | |
437 before starting. | |
438 </para> | |
439 | |
440 <example> | |
14421 | 441 <title>Copying two subtitles from a DVD while doing two pass encoding</title> |
9675 | 442 <screen> |
443 rm subtitles.idx subtitles.sub | |
12776 | 444 mencoder dvd://1 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -vobsubout subtitles -vobsuboutindex 0 -sid 2 |
12400
903ac68f2bc8
divx --> lavc, spelling, more sensible section name
diego
parents:
12399
diff
changeset
|
445 mencoder dvd://1 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -vobsubout subtitles -vobsuboutindex 1 -sid 5<!-- |
9675 | 446 --></screen> |
447 </example> | |
448 | |
449 <example> | |
450 <title>Copying a french subtitle from an MPEG file</title> | |
451 <screen> | |
452 rm subtitles.idx subtitles.sub | |
15492 | 453 mencoder <replaceable>movie.mpg</replaceable> -ifo <replaceable>movie.ifo</replaceable> -vobsubout subtitles -vobsuboutindex 0 -vobsuboutid fr -sid 1 -nosound -ovc copy |
454 </screen> | |
9675 | 455 </example> |
456 | |
457 </sect1> | |
458 | |
459 <sect1 id="aspect"> | |
460 <title>Preserving aspect ratio</title> | |
461 <para> | |
14024 | 462 DVDs and SVCDs (i.e. MPEG-1/2) files contain an aspect ratio value, which |
15329 | 463 describes how the player should scale the video stream, so humans will not |
9675 | 464 have egg heads (ex.: 480x480 + 4:3 = 640x480). However when encoding to AVI |
15329 | 465 (DivX) files, you have 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
|
466 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
|
467 way! |
9675 | 468 </para> |
469 | |
470 <para>There is</para> | |
471 | |
472 <para> | |
14024 | 473 MPEG-4 has an unique feature: the video stream can contain its needed aspect |
474 ratio. Yes, just like MPEG-1/2 (DVD, SVCD) and H.263 files. Regretfully, there are | |
9675 | 475 <emphasis role="bold">no</emphasis> video players outside which support this |
14024 | 476 attribute of MPEG-4, except <application>MPlayer</application>. |
9675 | 477 </para> |
478 | |
479 <para> | |
11822
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11820
diff
changeset
|
480 This feature can be used only with |
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11820
diff
changeset
|
481 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>'s |
10869 | 482 <systemitem>mpeg4</systemitem> codec. Keep in mind: although |
483 <application>MPlayer</application> will correctly play the created file, | |
484 other players will use the wrong aspect ratio. | |
9675 | 485 </para> |
486 | |
487 <para> | |
488 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
|
489 See the man page for the usage of the <systemitem>cropdetect</systemitem> and |
9675 | 490 <systemitem>crop</systemitem> filters. |
491 </para> | |
492 | |
493 <para> | |
10869 | 494 Usage |
11710 | 495 <screen>mencoder <replaceable>sample-svcd.mpg</replaceable> -ovc lavc -lavcopts vcodec=mpeg4:autoaspect -vf crop=714:548:0:14 -oac copy -o <replaceable>output.avi</replaceable></screen> |
9675 | 496 </para> |
10869 | 497 </sect1> |
498 | |
9675 | 499 </chapter> |