annotate DOCS/xml/en/mencoder.xml @ 16534:cf10f859d829

Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding. Taken from D. Richard Felker III The Great's encoding guide
author gpoirier
date Mon, 19 Sep 2005 21:42:00 +0000
parents 88ed8890152c
children 4a9808f6cacc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
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
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
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
12 <ulink url="http://mplayerhq.hu/pipermail/mplayer-users/">archives</ulink>
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
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>
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 <entry>Use one of libavcodec's audio encoders</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
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 <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 <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
45 <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
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 <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 <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
49 <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
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>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
53 <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
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>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
57 <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
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>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
61 <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
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 </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
64 </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
65 </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
66 </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
67
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 <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
69 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
70 <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
71 <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
72 <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
73 <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
74 </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
75 <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
76 <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
77 <entry>lavc</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
78 <entry>Use one of libavcodec's video encoders</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
79 </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
80 <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
81 <entry>xvid</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
82 <entry>XviD, MPEG-4 Advanced Simple Profile codec</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
83 </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
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>x264</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
86 <entry>x264, MPEG-4 AVC, aka H.264 codec</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
87 </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
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 <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
90 <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
91 </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
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 <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
94 <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
95 </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
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 <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
98 <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
99 </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
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 <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
102 <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
103 </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
104 </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
105 </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
106 </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
107 </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
108 </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
109
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
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 <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
112 <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
113
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 <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
115 <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
116 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
117 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
118 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
119 <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
120 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
121 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
122 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
123 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
124 <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
125 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
126
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 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
128 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
129 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
130 <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
131 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
132 </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
133 <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
134 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
135 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
136 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
137 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
138 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
139 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
140 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
141 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
142 </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
143 <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
144 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
145 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
146 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
147 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
148 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
149 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
150 </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
151 </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
152
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
12400
903ac68f2bc8 divx --> lavc, spelling, more sensible section name
diego
parents: 12399
diff changeset
154 <sect1 id="menc-feat-mpeg4">
14421
4a70b65cd2ae consistent "two pass" spelling
diego
parents: 14131
diff changeset
155 <title>Encoding two pass MPEG-4 (&quot;DivX&quot;)</title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
156
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
157 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
158 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
159 The first encoding (dubbed pass) creates some temporary files
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
160 (<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
161 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
162 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
163 In the second pass, the two pass output
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
164 file is created, using the bitrate data from the temporary files. The
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
165 resulting file will have much better image quality. If this is the first
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
166 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
167 net.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
168 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
169
12484
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
170 <example>
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
171 <title>copy audio track</title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
172 <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
173 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
174 AVI while copying the audio track.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
175 <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
176 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o <replaceable>/dev/null</replaceable>
11710
d37d4bc38f26 <replaceable> tags by Qba <jim85@wp.pl>
wight
parents: 11680
diff changeset
177 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac copy -o <replaceable>movie.avi</replaceable>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
178 </screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
179 </para>
12484
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
180 </example>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
181
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
182 <example>
12484
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
183 <title>encode audio track</title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
184 <para>
14421
4a70b65cd2ae consistent "two pass" spelling
diego
parents: 14131
diff changeset
185 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
186 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
187 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
188 some cases.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
189 <screen>
12484
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
190 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
191 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac mp3lame -lameopts vbr=3 -o <replaceable>movie.avi</replaceable>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
192 </screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
193 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
194 </example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
195 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
196
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
197 <sect1 id="menc-feat-mpeg">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
198 <title>Encoding to MPEG format</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
199 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
200 <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
201 files.
809452f0da6e Fix outdated "Encoding to MPEG format" (MEncoder improved a lot :-) )
gpoirier
parents: 16080
diff changeset
202 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
203 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
204 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
205 <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
206 section.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
207 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
208
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
209 <para>
12578
3f543ec01d1e 's should be outside of <application> tags.
diego
parents: 12484
diff changeset
210 To change <application>MEncoder</application>'s output file format,
11540
d480f7e36b74 <application> attack
wight
parents: 11271
diff changeset
211 use the <option>-of mpeg</option> option.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
212 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
213
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
214 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
215 Example:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
216 <screen>
11710
d37d4bc38f26 <replaceable> tags by Qba <jim85@wp.pl>
wight
parents: 11680
diff changeset
217 mencoder -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -oac copy <replaceable>other_options</replaceable> <replaceable>media.avi</replaceable> -o <replaceable>output.mpg</replaceable>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
218 </screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
219 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
220 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
221
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
222 <sect1 id="menc-feat-rescale">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
223 <title>Rescaling movies</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
224
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
225 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
226 Often the need to resize movie images' size emerges. Its reasons can be
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
227 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
228 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
229 read the <link linkend="aspect">Preserving aspect ratio</link> section.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
230 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
231
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
232 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
233 The scaling process is handled by the <literal>scale</literal> video filter:
9677
142c42fa0986 sync with HTML
nicolas
parents: 9675
diff changeset
234 <option>-vf scale=<replaceable>width</replaceable>:<replaceable>height</replaceable></option>.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
235 Its quality can be set with the <option>-sws</option> option.
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
236 If it is not specified, <application>MEncoder</application> will use 2: bicubic.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
237 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
238
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
239 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
240 Usage:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
241 <screen>
12484
58056bc98dd9 Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents: 12400
diff changeset
242 mencoder <replaceable>input.mpg</replaceable> -ovc lavc -lavcopts vcodec=mpeg4 -vf scale=640:480 -o <replaceable>output.avi</replaceable>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
243 </screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
244 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
245 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
246
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
247
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
248 <sect1 id="menc-feat-streamcopy">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
249 <title>Stream copying</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
250
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
251 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
252 <application>MEncoder</application> can handle input streams in two ways:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
253 <emphasis role="bold">encode</emphasis> or <emphasis role="bold">copy</emphasis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
254 them. This section is about <emphasis role="bold">copying</emphasis>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
255 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
256
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
257 <itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
258 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
259 <emphasis role="bold">Video stream</emphasis> (option <option>-ovc copy</option>):
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
260 nice stuff can be done :) Like, putting (not converting!) FLI or VIVO or
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
261 MPEG-1 video into an AVI file! Of course only
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
262 <application>MPlayer</application> can play such files :) And it probably
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
263 has no real life value at all. Rationally: video stream copying can be
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
264 useful for example when only the audio stream has to be encoded (like,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
265 uncompressed PCM to MP3).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
266 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
267 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
268 <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
269 straightforward. It is possible to take an external audio file (MP3,
10429
diego
parents: 10184
diff changeset
270 WAV) and mux it into the output stream. Use the
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
271 <option>-audiofile <replaceable>filename</replaceable></option> option
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
272 for this.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
273 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
274 </itemizedlist>
16228
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
275
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
276 <para>
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
277 Using <option>-oac copy</option> to copy from one container format to
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
278 another may require the use of <option>-fafmttag</option> to keep the
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
279 audio format tag of the original file.
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
280 For example, if you are converting an NSV file with AAC audio to an AVI
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
281 container, the audio format tag will be incorrect and it will have to
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
282 be changed. For a list of audio format tags, check
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
283 <filename>codecs.conf</filename>.
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
284 </para>
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
285
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
286 <para>
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
287 Example:
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
288 <screen>
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
289 mencoder <replaceable>input.nsv</replaceable> -oac copy -fafmttag 0x706D -ovc lavc -lavcopts vcodec=mpeg4 -o <replaceable>output.avi</replaceable>
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
290 </screen>
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
291 </para>
88ed8890152c -fafmttag can be needed while steam copying.
gpoirier
parents: 16157
diff changeset
292
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
293 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
294
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
295
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
296 <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
297 <title>Encoding from multiple input image files (JPEG, PNG, TGA, SGI)</title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
298
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
299 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
300 <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
301 or more JPEG, PNG or TGA files. With simple framecopy it can create MJPEG
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
302 (Motion JPEG), MPNG (Motion PNG) or MTGA (Motion TGA) files.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
303 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
304
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
305 <orderedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
306 <title>Explanation of the process:</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
307 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
308 <application>MEncoder</application> <emphasis>decodes</emphasis> the input image(s) with
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
309 <systemitem class="library">libjpeg</systemitem> (when decoding PNGs, it
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
310 will use <systemitem class="library">libpng</systemitem>).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
311 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
312 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
313 <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
314 chosen video compressor (DivX4, XviD, FFmpeg msmpeg4, etc.).
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
315 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
316 </orderedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
317
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
318 <formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
319 <title>Examples</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
320 <para>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
321 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
322
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
323 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
324 <para>
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
325 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
326 <screen>
14093
3bf74bf969ff Unify all image encoding examples and fix a typo (*.jpg vs *.png) noticed
diego
parents: 14024
diff changeset
327 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
328 </screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
329 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
330 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
331
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
332 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
333 <para>
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
334 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
335 <screen>
14093
3bf74bf969ff Unify all image encoding examples and fix a typo (*.jpg vs *.png) noticed
diego
parents: 14024
diff changeset
336 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
337 </screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
338 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
339 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
340
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
341 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
342 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
343 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
344 directory:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
345 <screen>
14093
3bf74bf969ff Unify all image encoding examples and fix a typo (*.jpg vs *.png) noticed
diego
parents: 14024
diff changeset
346 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
347 </screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
348 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
349 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
350
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
351 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
352 <para>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
353 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
354 <screen>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
355 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
356 </screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
357 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
358 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
359
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
360 <note><para>
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
361 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
362 </para></note>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
363
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
364 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
365 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
366 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
367 directory:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
368 <screen>
14093
3bf74bf969ff Unify all image encoding examples and fix a typo (*.jpg vs *.png) noticed
diego
parents: 14024
diff changeset
369 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
370 --></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
371 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
372 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
373
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
374 <informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
375 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
376 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
377 directory:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
378 <screen>
12399
9403b245fcda Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents: 11913
diff changeset
379 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
380 --></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
381 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
382 </informalexample>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
383
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
384 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
385 </formalpara>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
386 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
387
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
388
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
389 <sect1 id="menc-feat-extractsub">
12615
84e078fd64b4 uniform VOBsub spelling
diego
parents: 12599
diff changeset
390 <title>Extracting DVD subtitles to VOBsub file</title>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
391
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
392 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
393 <application>MEncoder</application> is capable of extracting subtitles from
12615
84e078fd64b4 uniform VOBsub spelling
diego
parents: 12599
diff changeset
394 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
395 <filename>.idx</filename> and <filename>.sub</filename> and are usually
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
396 packaged in a single <filename>.rar</filename> archive.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
397 <application>MPlayer</application> can play these with the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
398 <option>-vobsub</option> and <option>-vobsubid</option> options.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
399 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
400
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
401 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
402 You specify the basename (i.e without the <filename>.idx</filename> or
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
403 <filename>.sub</filename> extension) of the output files with
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
404 <option>-vobsubout</option> and the index for this subtitle in the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
405 resulting files with <option>-vobsuboutindex</option>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
406 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
407
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
408 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
409 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
410 indicate the <filename>.ifo</filename> file needed to construct the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
411 resulting <filename>.idx</filename> file.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
412 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
413
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
414 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
415 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
416 <filename>.ifo</filename> file you will need to use the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
417 <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
418 the <filename>.idx</filename> file.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
419 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
420
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
421 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
422 Each run will append the running subtitle if the <filename>.idx</filename>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
423 and <filename>.sub</filename> files already exist. So you should remove any
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
424 before starting.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
425 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
426
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
427 <example>
14421
4a70b65cd2ae consistent "two pass" spelling
diego
parents: 14131
diff changeset
428 <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
429 <screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
430 rm subtitles.idx subtitles.sub
12776
1154a70ade70 3-pass encoding is evil.
diego
parents: 12758
diff changeset
431 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
432 mencoder dvd://1 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -vobsubout subtitles -vobsuboutindex 1 -sid 5<!--
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
433 --></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
434 </example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
435
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
436 <example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
437 <title>Copying a french subtitle from an MPEG file</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
438 <screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
439 rm subtitles.idx subtitles.sub
15492
d2073ff48b5b Fixes the vobsub extraction example
gpoirier
parents: 15487
diff changeset
440 mencoder <replaceable>movie.mpg</replaceable> -ifo <replaceable>movie.ifo</replaceable> -vobsubout subtitles -vobsuboutindex 0 -vobsuboutid fr -sid 1 -nosound -ovc copy
d2073ff48b5b Fixes the vobsub extraction example
gpoirier
parents: 15487
diff changeset
441 </screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
442 </example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
443
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
444 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
445
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
446 <sect1 id="aspect">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
447 <title>Preserving aspect ratio</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
448 <para>
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
449 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
450 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
451 have egg heads (ex.: 480x480 + 4:3 = 640x480). However when encoding to AVI
15329
4c039fa37dbf Removes all English's short forms.
gpoirier
parents: 15326
diff changeset
452 (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
453 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
454 way!
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
455 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
456
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
457 <para>There is</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
458
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
459 <para>
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
460 MPEG-4 has an unique feature: the video stream can contain its needed aspect
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
461 ratio. Yes, just like MPEG-1/2 (DVD, SVCD) and H.263 files. Regretfully, there are
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
462 <emphasis role="bold">no</emphasis> video players outside which support this
14024
0d9e27059495 MPEG-X spelling
diego
parents: 13523
diff changeset
463 attribute of MPEG-4, except <application>MPlayer</application>.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
464 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
465
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
466 <para>
11822
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
467 This feature can be used only with
359eaf957bf1 Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents: 11820
diff changeset
468 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>'s
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
469 <systemitem>mpeg4</systemitem> codec. Keep in mind: although
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
470 <application>MPlayer</application> will correctly play the created file,
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
471 other players will use the wrong aspect ratio.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
472 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
473
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
474 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
475 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
476 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
477 <systemitem>crop</systemitem> filters.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
478 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
479
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
480 <para>
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
481 Usage
11710
d37d4bc38f26 <replaceable> tags by Qba <jim85@wp.pl>
wight
parents: 11680
diff changeset
482 <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
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
483 </para>
10869
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
484 </sect1>
364d43cee33e sync with HTML
diego
parents: 10429
diff changeset
485
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
486 </chapter>