Mercurial > mplayer.hg
annotate DOCS/xml/en/mencoder.xml @ 20289:90dfe345a6d6
sync w/ r19738
author | gpoirier |
---|---|
date | Wed, 18 Oct 2006 12:06:11 +0000 |
parents | 50113e22db17 |
children | c0687e92d463 |
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 |
19679 | 12 <ulink url="http://lists.mplayerhq.hu/pipermail/mplayer-users/">archives</ulink> |
9675 | 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. |
16746
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
23 Type for instance: |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
24 <screen>mencoder -ovc help</screen> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
25 to list all video codecs supported by the version of |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
26 <application>MEncoder</application> on your machine. |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
27 The following choices are available: |
16534
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
28 </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
|
29 <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
|
30 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
|
31 |
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 <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
|
33 <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
|
34 <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
|
35 <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
|
36 </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
|
37 <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
|
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 <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
|
40 <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
|
41 </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
|
42 <row> |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
43 <entry>lavc</entry> |
16541
4a9808f6cacc
add some internal links between "codecs supported by mencoder" and
gpoirier
parents:
16534
diff
changeset
|
44 <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
|
45 </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
|
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>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
|
49 <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
|
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>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
|
53 <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
|
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>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
|
57 <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
|
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>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
|
61 <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
|
62 </row> |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
63 <row> |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
64 <entry>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
|
65 <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
|
66 </row> |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
67 </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
|
68 </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
|
69 </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
|
70 </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
|
71 |
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 <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
|
73 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
|
74 <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
|
75 <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
|
76 <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
|
77 <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
|
78 </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
|
79 <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
|
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>lavc</entry> |
16541
4a9808f6cacc
add some internal links between "codecs supported by mencoder" and
gpoirier
parents:
16534
diff
changeset
|
82 <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
|
83 </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
|
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 <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 <entry>xvid</entry> |
16549 | 87 <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
|
88 </row> |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
89 <row> |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
90 <entry>x264</entry> |
16558 | 91 <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
|
92 </row> |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
93 <row> |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
94 <entry>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
|
95 <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
|
96 </row> |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
97 <row> |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
98 <entry>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
|
99 <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
|
100 </row> |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
101 <row> |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
102 <entry>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
|
103 <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
|
104 </row> |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
105 <row> |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
106 <entry>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
|
107 <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
|
108 </row> |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
109 </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
|
110 </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
|
111 </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
|
112 </para> |
16746
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
113 <para> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
114 Output container formats are selected with the <option>-of</option> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
115 option. |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
116 Type: |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
117 <screen>mencoder -of help</screen> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
118 to list all containers supported by the version of |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
119 <application>MEncoder</application> on your machine. |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
120 The following choices are available: |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
121 </para> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
122 <para> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
123 Container formats: |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
124 <informaltable frame="all"> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
125 <tgroup cols="2"> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
126 <thead> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
127 <row><entry>Container format name</entry><entry>Description</entry></row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
128 </thead> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
129 <tbody> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
130 <row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
131 <entry>lavf</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
132 <entry>One of the containers supported by |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
133 <systemitem class="library">libavformat</systemitem></entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
134 </row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
135 <row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
136 <entry>avi</entry> |
16754 | 137 <entry>Audio-Video Interleaved</entry> |
16746
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
138 </row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
139 <row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
140 <entry>mpeg</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
141 <entry>MPEG-1 and MPEG-2 PS</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
142 </row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
143 <row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
144 <entry>rawvideo</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
145 <entry>raw video stream (no muxing - one video stream only)</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
146 </row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
147 <row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
148 <entry>rawaudio</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
149 <entry>raw audio stream (no muxing - one audio stream only)</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
150 </row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
151 </tbody> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
152 </tgroup> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
153 </informaltable> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
154 The AVI container is the native container format for |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
155 <application>MEncoder</application>, which means that it's the one that |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
156 is best handled, and the one for which <application>MEncoder</application> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
157 was designed. |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
158 As noted above, other container formats are usable, but you may |
16754 | 159 experience problems when using them. |
16746
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
160 </para> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
161 |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
162 <para> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
163 <systemitem class="library">libavformat</systemitem> containers: |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
164 </para> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
165 <para> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
166 If you selected <systemitem class="library">libavformat</systemitem> |
16767 | 167 to do the muxing of the output file (by using the <option>-of lavf</option>), |
16746
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
168 the appropriate container format will be determined by the file extension |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
169 of the output file. |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
170 You may force a particular container format with |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
171 <systemitem class="library">libavformat</systemitem>'s |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
172 <option>format</option> option. |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
173 |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
174 <informaltable frame="all"> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
175 <tgroup cols="2"> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
176 <thead> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
177 <row><entry><systemitem class="library">libavformat</systemitem> container name</entry><entry>Description</entry></row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
178 </thead> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
179 <tbody> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
180 <row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
181 <entry>mpg</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
182 <entry>MPEG-1 and MPEG-2 PS</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
183 </row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
184 <row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
185 <entry>asf</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
186 <entry>Advanced Streaming Format</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
187 </row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
188 <row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
189 <entry>avi</entry> |
16754 | 190 <entry>Audio-Video Interleaved</entry> |
16746
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
191 </row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
192 <row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
193 <entry>wav</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
194 <entry>Waveform Audio</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
195 </row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
196 <row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
197 <entry>swf</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
198 <entry>Macromedia Flash</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
199 </row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
200 <row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
201 <entry>flv</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
202 <entry>Macromedia Flash video</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
203 </row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
204 <row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
205 <entry>rm</entry> |
16754 | 206 <entry>RealMedia</entry> |
16746
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
207 </row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
208 <row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
209 <entry>au</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
210 <entry>SUN AU</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
211 </row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
212 <row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
213 <entry>nut</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
214 <entry>NUT open container (experimental and not yet spec-compliant)</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
215 </row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
216 <row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
217 <entry>mov</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
218 <entry>QuickTime</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
219 </row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
220 <row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
221 <entry>mp4</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
222 <entry>MPEG-4 format</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
223 </row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
224 <row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
225 <entry>dv</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
226 <entry>Sony Digital Video container</entry> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
227 </row> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
228 </tbody> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
229 </tgroup> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
230 </informaltable> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
231 As you can see, <systemitem class="library">libavformat</systemitem> |
16757 | 232 allows <application>MEncoder</application> to mux into a considerable |
16746
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
233 variety of containers. |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
234 Unfortunately, as <application>MEncoder</application> was not designed |
16754 | 235 from the beginning to support container formats other than AVI, |
16746
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
236 your should really be paranoid about the resulting file. |
16754 | 237 Please check to be sure that the audio/video synchronization is OK |
16746
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
238 and that the file can be played correctly by players other than |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
239 <application>MPlayer</application>. |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
240 </para> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
241 |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
242 <informalexample> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
243 <para>Example:</para> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
244 <para> |
16754 | 245 Creating a Macromedia Flash video suitable for playback in a web browser |
16746
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
246 with the Macromedia Flash plugin: |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
247 <screen> |
16754 | 248 mencoder <replaceable>input.avi</replaceable> -o <replaceable>output.flv</replaceable> -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc \ |
16746
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
249 -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 \ |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
250 -srate 22050 |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
251 </screen> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
252 </para> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
253 </informalexample> |
14a22bff8228
List the different containers supported by MEncoder, as well as a nice example of how to produce flash videos. + a bit a clean-up.
gpoirier
parents:
16560
diff
changeset
|
254 |
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
|
255 </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
|
256 |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
257 |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
258 <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
|
259 <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
|
260 |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
261 <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
|
262 <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
|
263 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
|
264 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
|
265 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
|
266 <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
|
267 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
|
268 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
|
269 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
|
270 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
|
271 <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
|
272 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
|
273 |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
274 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
|
275 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
|
276 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
|
277 <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
|
278 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
|
279 </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
|
280 <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
|
281 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
|
282 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
|
283 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
|
284 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
|
285 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
|
286 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
|
287 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
|
288 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
|
289 </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
|
290 <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
|
291 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
|
292 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
|
293 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
|
294 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
|
295 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
|
296 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
|
297 </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
|
298 </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
|
299 |
cf10f859d829
Lists main A/V codecs supported by MEncoder, talks about how to select an imput file for encoding.
gpoirier
parents:
16228
diff
changeset
|
300 |
12400
903ac68f2bc8
divx --> lavc, spelling, more sensible section name
diego
parents:
12399
diff
changeset
|
301 <sect1 id="menc-feat-mpeg4"> |
14421 | 302 <title>Encoding two pass MPEG-4 ("DivX")</title> |
9675 | 303 |
304 <para> | |
305 The name comes from the fact that this method encodes the file <emphasis>twice</emphasis>. | |
306 The first encoding (dubbed pass) creates some temporary files | |
307 (<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
|
308 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
|
309 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
|
310 In the second pass, the two pass output |
9675 | 311 file is created, using the bitrate data from the temporary files. The |
312 resulting file will have much better image quality. If this is the first | |
313 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
|
314 net. |
9675 | 315 </para> |
316 | |
20035 | 317 <example id="copy_audio_track"> |
12484
58056bc98dd9
Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents:
12400
diff
changeset
|
318 <title>copy audio track</title> |
9675 | 319 <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
|
320 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
|
321 AVI while copying the audio track. |
9675 | 322 <screen> |
17039 | 323 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o /dev/null |
17594
e0da4860acfe
No sane person should encode last pass without at least 'mbd=2' and 'trell' (or should _really_ have _really good_ reasons)
gpoirier
parents:
17049
diff
changeset
|
324 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vpass=2 -oac copy -o <replaceable>output.avi</replaceable> |
9675 | 325 </screen> |
326 </para> | |
12484
58056bc98dd9
Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents:
12400
diff
changeset
|
327 </example> |
9675 | 328 |
20035 | 329 <example id="encode_audio_track"> |
12484
58056bc98dd9
Remove 3-pass encoding guide (can break A/V sync), rescaling is not
diego
parents:
12400
diff
changeset
|
330 <title>encode audio track</title> |
9675 | 331 <para> |
14421 | 332 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
|
333 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
|
334 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
|
335 some cases. |
9675 | 336 <screen> |
17039 | 337 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac mp3lame -lameopts vbr=3 -o /dev/null |
17594
e0da4860acfe
No sane person should encode last pass without at least 'mbd=2' and 'trell' (or should _really_ have _really good_ reasons)
gpoirier
parents:
17049
diff
changeset
|
338 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vpass=2 -oac mp3lame -lameopts vbr=3 -o <replaceable>output.avi</replaceable> |
9675 | 339 </screen> |
340 </para> | |
341 </example> | |
342 </sect1> | |
343 | |
19260 | 344 |
345 <sect1 id="menc-feat-handheld-psp"> | |
346 <title>Encoding to Sony PSP video format</title> | |
347 | |
348 <para> | |
349 <application>MEncoder</application> supports encoding to Sony PSP's video | |
350 format, but, depending on the revision of the PSP software, the constraints | |
351 may differ. | |
352 You should be safe if you respect the following constraints: | |
353 <itemizedlist> | |
354 <listitem><para> | |
355 <emphasis role="bold">Bitrate</emphasis>: it should not exceed 1500kbps, | |
356 however, past versions supported pretty much any bitrate as long as the | |
357 header claimed it was not too high. | |
358 </para></listitem> | |
359 <listitem><para> | |
360 <emphasis role="bold">Dimensions</emphasis>: the width and height of the | |
361 PSP video should be multiples of 16, and the product width * height must | |
362 be <= 64000. | |
363 Under some circumstances, it may be possible for the PSP to play higher | |
364 resolutions. | |
365 </para></listitem> | |
366 <listitem><para> | |
20037 | 367 <emphasis role="bold">Audio</emphasis>: its samplerate should be 24kHz |
368 for MPEG-4 videos, and 48kHz for H.264. | |
19260 | 369 </para></listitem> |
370 </itemizedlist> | |
371 </para> | |
372 | |
20035 | 373 <example id="encode_for_psp"> |
374 <title>encode for PSP</title> | |
19260 | 375 <para> |
376 <screen> | |
377 mencoder -oac lavc -ovc lavc -of lavf -lavcopts aglobal=1:vglobal=1:vcodec=mpeg4:acodec=aac \ | |
378 -af lavcresample=24000 -vf harddup -lavfopts format=psp:i_certify_that_my_video_stream_does_not_use_b_frames \ | |
379 -ofps 30000/1001 input.video -o output.psp | |
380 </screen> | |
381 Note that you can set the title of the video with | |
382 <option>-info name=<replaceable>MovieTitle</replaceable></option>. | |
383 </para> | |
384 </example> | |
385 </sect1> | |
386 | |
387 | |
9675 | 388 <sect1 id="menc-feat-mpeg"> |
389 <title>Encoding to MPEG format</title> | |
390 <para> | |
391 <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
|
392 files. |
809452f0da6e
Fix outdated "Encoding to MPEG format" (MEncoder improved a lot :-) )
gpoirier
parents:
16080
diff
changeset
|
393 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
|
394 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
|
395 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
|
396 <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
|
397 section. |
9675 | 398 </para> |
399 | |
400 <para> | |
12578 | 401 To change <application>MEncoder</application>'s output file format, |
11540 | 402 use the <option>-of mpeg</option> option. |
9675 | 403 </para> |
404 | |
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
|
405 <informalexample> |
9675 | 406 <para> |
407 Example: | |
408 <screen> | |
17039 | 409 mencoder <replaceable>input.avi</replaceable> -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -oac copy <replaceable>other_options</replaceable> -o <replaceable>output.mpg</replaceable> |
9675 | 410 </screen> |
16560 | 411 Creating an MPEG-1 file suitable to be played on systems with minimal |
412 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
|
413 <screen> |
17039 | 414 mencoder <replaceable>input.avi</replaceable> -of mpeg -mpegopts format=mpeg1:tsaf:muxrate=2000 -o <replaceable>output.mpg</replaceable> -oac lavc -ovc lavc \ |
415 -lavcopts acodec=mp2:abitrate=224:vcodec=mpeg1video:vbitrate=1152:keyint=15:mbd=2:aspect=4/3 | |
16550
2b0df753ddd3
Creating a MPEG-1 file suitable for exchange, taken from the example posted by James Courtier-Dutton on mplayer-users
gpoirier
parents:
16549
diff
changeset
|
416 </screen> |
9675 | 417 </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
|
418 </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
|
419 |
18022
b5b16f92b842
Add a note explaining that it's okay to use a different target bitrate on the various passes of a video encode
gpoirier
parents:
17594
diff
changeset
|
420 <note><title>Hint:</title> |
b5b16f92b842
Add a note explaining that it's okay to use a different target bitrate on the various passes of a video encode
gpoirier
parents:
17594
diff
changeset
|
421 <para> |
b5b16f92b842
Add a note explaining that it's okay to use a different target bitrate on the various passes of a video encode
gpoirier
parents:
17594
diff
changeset
|
422 If for some reason the video quality of the second pass did not |
b5b16f92b842
Add a note explaining that it's okay to use a different target bitrate on the various passes of a video encode
gpoirier
parents:
17594
diff
changeset
|
423 satisfy you, you may re-run your video encode with a different target |
b5b16f92b842
Add a note explaining that it's okay to use a different target bitrate on the various passes of a video encode
gpoirier
parents:
17594
diff
changeset
|
424 bitrate, provided that you saved the statistics file of the previous |
b5b16f92b842
Add a note explaining that it's okay to use a different target bitrate on the various passes of a video encode
gpoirier
parents:
17594
diff
changeset
|
425 pass. |
18029 | 426 This is possible because the statistics file's primary goal is to |
427 record the complexity of each frame, which doesn't depend heavily on | |
428 bitrate. You should note, though, that you'll get the best results if | |
429 all passes are run with target bitrates that do not differ very much. | |
18022
b5b16f92b842
Add a note explaining that it's okay to use a different target bitrate on the various passes of a video encode
gpoirier
parents:
17594
diff
changeset
|
430 </para> |
b5b16f92b842
Add a note explaining that it's okay to use a different target bitrate on the various passes of a video encode
gpoirier
parents:
17594
diff
changeset
|
431 </note> |
b5b16f92b842
Add a note explaining that it's okay to use a different target bitrate on the various passes of a video encode
gpoirier
parents:
17594
diff
changeset
|
432 |
9675 | 433 </sect1> |
434 | |
435 <sect1 id="menc-feat-rescale"> | |
436 <title>Rescaling movies</title> | |
437 | |
438 <para> | |
439 Often the need to resize movie images' size emerges. Its reasons can be | |
17039 | 440 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
|
441 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
|
442 read the <link linkend="aspect">Preserving aspect ratio</link> section. |
9675 | 443 </para> |
444 | |
445 <para> | |
446 The scaling process is handled by the <literal>scale</literal> video filter: | |
9677 | 447 <option>-vf scale=<replaceable>width</replaceable>:<replaceable>height</replaceable></option>. |
9675 | 448 Its quality can be set with the <option>-sws</option> option. |
15329 | 449 If it is not specified, <application>MEncoder</application> will use 2: bicubic. |
9675 | 450 </para> |
451 | |
452 <para> | |
453 Usage: | |
454 <screen> | |
17594
e0da4860acfe
No sane person should encode last pass without at least 'mbd=2' and 'trell' (or should _really_ have _really good_ reasons)
gpoirier
parents:
17049
diff
changeset
|
455 mencoder <replaceable>input.mpg</replaceable> -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -vf scale=640:480 -o <replaceable>output.avi</replaceable> |
9675 | 456 </screen> |
457 </para> | |
458 </sect1> | |
459 | |
460 | |
461 <sect1 id="menc-feat-streamcopy"> | |
462 <title>Stream copying</title> | |
463 | |
464 <para> | |
465 <application>MEncoder</application> can handle input streams in two ways: | |
466 <emphasis role="bold">encode</emphasis> or <emphasis role="bold">copy</emphasis> | |
467 them. This section is about <emphasis role="bold">copying</emphasis>. | |
468 </para> | |
469 | |
470 <itemizedlist> | |
471 <listitem><para> | |
472 <emphasis role="bold">Video stream</emphasis> (option <option>-ovc copy</option>): | |
473 nice stuff can be done :) Like, putting (not converting!) FLI or VIVO or | |
14024 | 474 MPEG-1 video into an AVI file! Of course only |
9675 | 475 <application>MPlayer</application> can play such files :) And it probably |
476 has no real life value at all. Rationally: video stream copying can be | |
477 useful for example when only the audio stream has to be encoded (like, | |
478 uncompressed PCM to MP3). | |
479 </para></listitem> | |
480 <listitem><para> | |
481 <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
|
482 straightforward. It is possible to take an external audio file (MP3, |
10429 | 483 WAV) and mux it into the output stream. Use the |
9675 | 484 <option>-audiofile <replaceable>filename</replaceable></option> option |
485 for this. | |
486 </para></listitem> | |
487 </itemizedlist> | |
16228 | 488 |
489 <para> | |
490 Using <option>-oac copy</option> to copy from one container format to | |
491 another may require the use of <option>-fafmttag</option> to keep the | |
492 audio format tag of the original file. | |
493 For example, if you are converting an NSV file with AAC audio to an AVI | |
494 container, the audio format tag will be incorrect and it will have to | |
495 be changed. For a list of audio format tags, check | |
496 <filename>codecs.conf</filename>. | |
497 </para> | |
498 | |
499 <para> | |
500 Example: | |
501 <screen> | |
17594
e0da4860acfe
No sane person should encode last pass without at least 'mbd=2' and 'trell' (or should _really_ have _really good_ reasons)
gpoirier
parents:
17049
diff
changeset
|
502 mencoder <replaceable>input.nsv</replaceable> -oac copy -fafmttag 0x706D -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -o <replaceable>output.avi</replaceable> |
16228 | 503 </screen> |
504 </para> | |
505 | |
9675 | 506 </sect1> |
507 | |
508 | |
509 <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
|
510 <title>Encoding from multiple input image files (JPEG, PNG, TGA, SGI)</title> |
9675 | 511 |
512 <para> | |
513 <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
|
514 or more JPEG, PNG or TGA files. With simple framecopy it can create MJPEG |
9675 | 515 (Motion JPEG), MPNG (Motion PNG) or MTGA (Motion TGA) files. |
516 </para> | |
517 | |
518 <orderedlist> | |
519 <title>Explanation of the process:</title> | |
520 <listitem><para> | |
521 <application>MEncoder</application> <emphasis>decodes</emphasis> the input image(s) with | |
522 <systemitem class="library">libjpeg</systemitem> (when decoding PNGs, it | |
523 will use <systemitem class="library">libpng</systemitem>). | |
524 </para></listitem> | |
525 <listitem><para> | |
526 <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
|
527 chosen video compressor (DivX4, XviD, FFmpeg msmpeg4, etc.). |
9675 | 528 </para></listitem> |
529 </orderedlist> | |
530 | |
531 <formalpara> | |
532 <title>Examples</title> | |
533 <para> | |
12399
9403b245fcda
Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents:
11913
diff
changeset
|
534 The explanation of the <option>-mf</option> option is in the man page. |
9675 | 535 |
536 <informalexample> | |
537 <para> | |
14024 | 538 Creating an MPEG-4 file from all the JPEG files in the current directory: |
9675 | 539 <screen> |
17594
e0da4860acfe
No sane person should encode last pass without at least 'mbd=2' and 'trell' (or should _really_ have _really good_ reasons)
gpoirier
parents:
17049
diff
changeset
|
540 mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o <replaceable>output.avi</replaceable> |
12399
9403b245fcda
Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents:
11913
diff
changeset
|
541 </screen> |
9675 | 542 </para> |
543 </informalexample> | |
544 | |
545 <informalexample> | |
546 <para> | |
14024 | 547 Creating an MPEG-4 file from some JPEG files in the current directory: |
9675 | 548 <screen> |
17594
e0da4860acfe
No sane person should encode last pass without at least 'mbd=2' and 'trell' (or should _really_ have _really good_ reasons)
gpoirier
parents:
17049
diff
changeset
|
549 mencoder mf://<replaceable>frame001.jpg,frame002.jpg</replaceable> -mf w=800:h=600:fps=25:type=jpg -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o <replaceable>output.avi</replaceable> |
12399
9403b245fcda
Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents:
11913
diff
changeset
|
550 </screen> |
9675 | 551 </para> |
552 </informalexample> | |
553 | |
554 <informalexample> | |
555 <para> | |
17049
4b04284b7a92
How to create a MPEG4 video from an explicit list of files, based on a patch by devik <devik AH cdi POIS cz>
gpoirier
parents:
17039
diff
changeset
|
556 Creating an MPEG-4 file from explicit list of JPEG files (list.txt in current directory |
4b04284b7a92
How to create a MPEG4 video from an explicit list of files, based on a patch by devik <devik AH cdi POIS cz>
gpoirier
parents:
17039
diff
changeset
|
557 contains the list of files to use as source, one per line): |
4b04284b7a92
How to create a MPEG4 video from an explicit list of files, based on a patch by devik <devik AH cdi POIS cz>
gpoirier
parents:
17039
diff
changeset
|
558 <screen> |
4b04284b7a92
How to create a MPEG4 video from an explicit list of files, based on a patch by devik <devik AH cdi POIS cz>
gpoirier
parents:
17039
diff
changeset
|
559 mencoder mf://<replaceable>@list.txt</replaceable> -mf w=800:h=600:fps=25:type=jpg \ |
4b04284b7a92
How to create a MPEG4 video from an explicit list of files, based on a patch by devik <devik AH cdi POIS cz>
gpoirier
parents:
17039
diff
changeset
|
560 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o <replaceable>output.avi</replaceable> |
4b04284b7a92
How to create a MPEG4 video from an explicit list of files, based on a patch by devik <devik AH cdi POIS cz>
gpoirier
parents:
17039
diff
changeset
|
561 </screen> |
4b04284b7a92
How to create a MPEG4 video from an explicit list of files, based on a patch by devik <devik AH cdi POIS cz>
gpoirier
parents:
17039
diff
changeset
|
562 </para> |
4b04284b7a92
How to create a MPEG4 video from an explicit list of files, based on a patch by devik <devik AH cdi POIS cz>
gpoirier
parents:
17039
diff
changeset
|
563 </informalexample> |
4b04284b7a92
How to create a MPEG4 video from an explicit list of files, based on a patch by devik <devik AH cdi POIS cz>
gpoirier
parents:
17039
diff
changeset
|
564 |
4b04284b7a92
How to create a MPEG4 video from an explicit list of files, based on a patch by devik <devik AH cdi POIS cz>
gpoirier
parents:
17039
diff
changeset
|
565 <informalexample> |
4b04284b7a92
How to create a MPEG4 video from an explicit list of files, based on a patch by devik <devik AH cdi POIS cz>
gpoirier
parents:
17039
diff
changeset
|
566 <para> |
9675 | 567 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
|
568 directory: |
9675 | 569 <screen> |
14093
3bf74bf969ff
Unify all image encoding examples and fix a typo (*.jpg vs *.png) noticed
diego
parents:
14024
diff
changeset
|
570 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
|
571 </screen> |
9675 | 572 </para> |
573 </informalexample> | |
574 | |
575 <informalexample> | |
576 <para> | |
12399
9403b245fcda
Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents:
11913
diff
changeset
|
577 Creating an uncompressed file from all the PNG files in the current directory: |
9675 | 578 <screen> |
17039 | 579 mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc raw -oac copy -o <replaceable>output.avi</replaceable> |
12399
9403b245fcda
Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents:
11913
diff
changeset
|
580 </screen> |
9675 | 581 </para> |
582 </informalexample> | |
583 | |
584 <note><para> | |
15329 | 585 Width must be integer multiple of 4, it is a limitation of the RAW RGB AVI format. |
9675 | 586 </para></note> |
587 | |
588 <informalexample> | |
589 <para> | |
590 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
|
591 directory: |
9675 | 592 <screen> |
14093
3bf74bf969ff
Unify all image encoding examples and fix a typo (*.jpg vs *.png) noticed
diego
parents:
14024
diff
changeset
|
593 mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc copy -oac copy -o <replaceable>output.avi</replaceable> <!-- |
9675 | 594 --></screen> |
595 </para> | |
596 </informalexample> | |
597 | |
598 <informalexample> | |
599 <para> | |
600 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
|
601 directory: |
9675 | 602 <screen> |
12399
9403b245fcda
Obsolet -mf syntax replaced by mf://, based on a patch sent by Compn, bug
diego
parents:
11913
diff
changeset
|
603 mencoder mf://*.tga -mf w=800:h=600:fps=25:type=tga -ovc copy -oac copy -o <replaceable>output.avi</replaceable><!-- |
9675 | 604 --></screen> |
605 </para> | |
606 </informalexample> | |
607 | |
608 </para> | |
609 </formalpara> | |
610 </sect1> | |
611 | |
612 | |
613 <sect1 id="menc-feat-extractsub"> | |
12615 | 614 <title>Extracting DVD subtitles to VOBsub file</title> |
9675 | 615 |
616 <para> | |
617 <application>MEncoder</application> is capable of extracting subtitles from | |
12615 | 618 a DVD into VOBsub formatted files. They consist of a pair of files ending in |
9675 | 619 <filename>.idx</filename> and <filename>.sub</filename> and are usually |
620 packaged in a single <filename>.rar</filename> archive. | |
621 <application>MPlayer</application> can play these with the | |
622 <option>-vobsub</option> and <option>-vobsubid</option> options. | |
623 </para> | |
624 | |
625 <para> | |
626 You specify the basename (i.e without the <filename>.idx</filename> or | |
627 <filename>.sub</filename> extension) of the output files with | |
628 <option>-vobsubout</option> and the index for this subtitle in the | |
629 resulting files with <option>-vobsuboutindex</option>. | |
630 </para> | |
631 | |
632 <para> | |
633 If the input is not from a DVD you should use <option>-ifo</option> to | |
634 indicate the <filename>.ifo</filename> file needed to construct the | |
635 resulting <filename>.idx</filename> file. | |
636 </para> | |
637 | |
638 <para> | |
639 If the input is not from a DVD and you do not have the | |
640 <filename>.ifo</filename> file you will need to use the | |
641 <option>-vobsubid</option> option to let it know what language id to put in | |
642 the <filename>.idx</filename> file. | |
643 </para> | |
644 | |
645 <para> | |
646 Each run will append the running subtitle if the <filename>.idx</filename> | |
647 and <filename>.sub</filename> files already exist. So you should remove any | |
648 before starting. | |
649 </para> | |
650 | |
20035 | 651 <example id="copying_two_subtitles_from_a_dvd_while_doing_two_pass_encoding"> |
14421 | 652 <title>Copying two subtitles from a DVD while doing two pass encoding</title> |
9675 | 653 <screen> |
654 rm subtitles.idx subtitles.sub | |
12776 | 655 mencoder dvd://1 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -vobsubout subtitles -vobsuboutindex 0 -sid 2 |
17594
e0da4860acfe
No sane person should encode last pass without at least 'mbd=2' and 'trell' (or should _really_ have _really good_ reasons)
gpoirier
parents:
17049
diff
changeset
|
656 mencoder dvd://1 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vpass=2 -vobsubout subtitles -vobsuboutindex 1 -sid 5<!-- |
9675 | 657 --></screen> |
658 </example> | |
659 | |
20035 | 660 <example id="copying_a_french_subtitle_from_an_mpeg_file"> |
9675 | 661 <title>Copying a french subtitle from an MPEG file</title> |
662 <screen> | |
663 rm subtitles.idx subtitles.sub | |
15492 | 664 mencoder <replaceable>movie.mpg</replaceable> -ifo <replaceable>movie.ifo</replaceable> -vobsubout subtitles -vobsuboutindex 0 -vobsuboutid fr -sid 1 -nosound -ovc copy |
665 </screen> | |
9675 | 666 </example> |
667 | |
668 </sect1> | |
669 | |
670 <sect1 id="aspect"> | |
671 <title>Preserving aspect ratio</title> | |
672 <para> | |
14024 | 673 DVDs and SVCDs (i.e. MPEG-1/2) files contain an aspect ratio value, which |
15329 | 674 describes how the player should scale the video stream, so humans will not |
9675 | 675 have egg heads (ex.: 480x480 + 4:3 = 640x480). However when encoding to AVI |
17039 | 676 (DivX) files, you have to be aware that AVI headers do not store this value. |
10065
422876da049e
Error in the aspect ratio calculation, plus typos and rewordings.
diego
parents:
9677
diff
changeset
|
677 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
|
678 way! |
9675 | 679 </para> |
680 | |
681 <para>There is</para> | |
682 | |
683 <para> | |
18254 | 684 MPEG-4 has a unique feature: the video stream can contain its needed aspect |
14024 | 685 ratio. Yes, just like MPEG-1/2 (DVD, SVCD) and H.263 files. Regretfully, there are |
18254 | 686 few video players apart from <application>MPlayer</application> that support this |
18245
2a5ea72115f8
Other players apart from MPlayer support MPEG-4 aspect now, closes #482.
diego
parents:
18029
diff
changeset
|
687 MPEG-4 attribute. |
9675 | 688 </para> |
689 | |
690 <para> | |
11822
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11820
diff
changeset
|
691 This feature can be used only with |
359eaf957bf1
Add <systemitem class="library"> tags to libavcodec and a few others.
diego
parents:
11820
diff
changeset
|
692 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>'s |
10869 | 693 <systemitem>mpeg4</systemitem> codec. Keep in mind: although |
694 <application>MPlayer</application> will correctly play the created file, | |
18245
2a5ea72115f8
Other players apart from MPlayer support MPEG-4 aspect now, closes #482.
diego
parents:
18029
diff
changeset
|
695 other players may use the wrong aspect ratio. |
9675 | 696 </para> |
697 | |
698 <para> | |
699 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
|
700 See the man page for the usage of the <systemitem>cropdetect</systemitem> and |
9675 | 701 <systemitem>crop</systemitem> filters. |
702 </para> | |
703 | |
704 <para> | |
10869 | 705 Usage |
17594
e0da4860acfe
No sane person should encode last pass without at least 'mbd=2' and 'trell' (or should _really_ have _really good_ reasons)
gpoirier
parents:
17049
diff
changeset
|
706 <screen>mencoder <replaceable>sample-svcd.mpg</replaceable> -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:autoaspect -vf crop=714:548:0:14 -oac copy -o <replaceable>output.avi</replaceable></screen> |
9675 | 707 </para> |
10869 | 708 </sect1> |
709 | |
9675 | 710 </chapter> |