comparison DOCS/encoding.html @ 9227:fd31a5bef5f9

- rawrgb limitation - appending AVI files
author arpi
date Sun, 02 Feb 2003 21:11:59 +0000
parents 49185985543b
children 1399facc01d7
comparison
equal deleted inserted replaced
9226:5e75451005fc 9227:fd31a5bef5f9
155 interleaving, thus the <CODE>-ni</CODE> option won't be needed for them 155 interleaving, thus the <CODE>-ni</CODE> option won't be needed for them
156 anymore.</P> 156 anymore.</P>
157 157
158 <P>Command: <CODE>mencoder -idx input.avi -ovc copy -oac copy -o output.avi</CODE></P> 158 <P>Command: <CODE>mencoder -idx input.avi -ovc copy -oac copy -o output.avi</CODE></P>
159 159
160 <H2><A NAME="appending">7.5.1 Appending multiple AVI files</A></H2>
161
162 <P>As a side-effect of fixing broken AVi files, it can be used to fix the
163 result of appending 2 (or more) AVI files:</P>
164
165 <P>Command: <CODE>cat 1.avi 2.avi | mencoder -noidx -ovc copy -oac copy -o output.avi -</CODE></P>
166
167 <P>NOTE: It expects 1.avi and 2.avi use the same codecs, resolution, stream
168 rate etc, and at least 1.avi be non-broken. You may need to fix your input
169 AVI files first, as described above at 7.5</P>
160 170
161 <H2><A NAME="libavcodec">7.6 Encoding with the libavcodec codec family</A></H2> 171 <H2><A NAME="libavcodec">7.6 Encoding with the libavcodec codec family</A></H2>
162 172
163 <P><A HREF="codecs.html#libavcodec">libavcodec</A> provides simple encoding to a 173 <P><A HREF="codecs.html#libavcodec">libavcodec</A> provides simple encoding to a
164 lot of interesting video and audio formats (currently its audio codecs are 174 lot of interesting video and audio formats (currently its audio codecs are
220 230
221 <P><I>Creating an uncompressed file from all the PNG files in the current dir:</I><BR> 231 <P><I>Creating an uncompressed file from all the PNG files in the current dir:</I><BR>
222 &nbsp;&nbsp;<CODE>mencoder -mf on:w=800:h=600:fps=25:type=png -ovc rawrgb 232 &nbsp;&nbsp;<CODE>mencoder -mf on:w=800:h=600:fps=25:type=png -ovc rawrgb
223 -o output.avi \*.png</CODE></P> 233 -o output.avi \*.png</CODE></P>
224 234
235 <P><B>NOTE:</B> Width must be integer multiple of 4, it's a limitation of the RAW RGB AVI format.</P>
236
225 <P><I>Creating a Motion PNG (MPNG) file from all the PNG files in the current dir:</I><BR> 237 <P><I>Creating a Motion PNG (MPNG) file from all the PNG files in the current dir:</I><BR>
226 &nbsp;&nbsp;<CODE>mencoder -mf on:w=800:h=600:fps=25:type=png -ovc copy 238 &nbsp;&nbsp;<CODE>mencoder -mf on:w=800:h=600:fps=25:type=png -ovc copy
227 -o output.avi \*.png</CODE></P> 239 -o output.avi \*.png</CODE></P>
228 240
229 <P><I>Creating a Motion TGA (MTGA) file from all the TGA files in the current dir:</I><BR> 241 <P><I>Creating a Motion TGA (MTGA) file from all the TGA files in the current dir:</I><BR>