comparison DOCS/xml/en/encoding-guide.xml @ 22395:797bb7683eb0

add xvfwopts compdata and vfw2menc documentation and change to better mencoder example
author compn
date Fri, 02 Mar 2007 17:49:34 +0000
parents 90467315bde4
children 1f6b48b2abcd
comparison
equal deleted inserted replaced
22394:ecaabc8f28cc 22395:797bb7683eb0
4268 The FourCC code used by each codec is given in the parentheses. 4268 The FourCC code used by each codec is given in the parentheses.
4269 </para> 4269 </para>
4270 4270
4271 <informalexample> 4271 <informalexample>
4272 <para> 4272 <para>
4273 An example with VP3 compression: 4273 An example to convert an ISO DVD trailer to a VP6 flash video file
4274 using compdata bitrate settings:
4274 <screen> 4275 <screen>
4275 mencoder dvd://2 -o <replaceable>title2.avi</replaceable> -ovc vfw -xvfwopts codec=vp31vfw.dll -oac copy 4276 mencoder -dvd-device <replaceable>zeiram.iso</replaceable> dvd://7 -o <replaceable>trailer.flv</replaceable> \
4277 -ovc vfw -xvfwopts codec=vp6vfw.dll:compdata=onepass.mcf -oac mp3lame \
4278 -lameopts cbr:br=64 -af lavcresample=22050 -vf yadif,scale=320:240,flip \
4279 -of lavf -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames
4276 </screen> 4280 </screen>
4277 </para> 4281 </para>
4278 </informalexample> 4282 </informalexample>
4283 </sect2>
4284
4285 <sect2 id="menc-feat-video-for-windows-bitrate-settings">
4286 <title>Using vfw2menc to create a codec settings file.</title>
4287
4288 <para>
4289 To encode with the Video for Windows codecs, you will need to set bitrate
4290 and other options. This is known to work on x86 on both *NIX and Windows.
4291 </para>
4292 <para>
4293 First you must build the <application>vfw2menc</application> program.
4294 It is located in the <filename class="directory">/TOOLS/</filename> subdirectory of MPlayer source.
4295 To build on Linux, this can be done using <application>Wine</application>:
4296 <screen>winegcc vfw2menc.c -o vfw2menc -lwinmm -lole32</screen>
4297
4298 To build on Windows in <application>MinGW</application> or <application>Cygwin</application> use:
4299 <screen>gcc vfw2menc.c -o vfw2menc.exe -lwinmm -lole32</screen>
4300
4301 To build on <application>MSVC</application> you will need getopt.
4302 Getopt can be found in the original <application>vfw2menc</application> archive available at:
4303 The <ulink url="http://oss.netfarm.it/mplayer-win32.php">MPlayer on win32</ulink> project.
4304 </para>
4305 <informalexample>
4306 <para>
4307 Below is an example with the VP6 codec.
4308 <screen>
4309 vfw2menc -f VP62 -d vp6vfw.dll -s firstpass.mcf
4310 </screen>
4311 This will open the VP6 codec dialog window. Repeat this step for the second pass
4312 and use <option>-s <replaceable>secondpass.mcf</replaceable></option>.
4313 </para>
4314 </informalexample>
4315 <para>
4316 Windows users can use <option>-xvfwopts codec=vp6vfw.dll:compdata=dialog</option> to have
4317 the codec dialog display before encoding starts.
4318 </para>
4279 </sect2> 4319 </sect2>
4280 </sect1> 4320 </sect1>
4281 4321
4282 4322
4283 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> 4323 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->