comparison DOCS/xml/en/encoding-guide.xml @ 21916:f31ffbd84d07

get rid of two spaces after a period (instead of one)
author gpoirier
date Mon, 15 Jan 2007 09:15:06 +0000
parents 17e8429c3a57
children b37528ebb26a
comparison
equal deleted inserted replaced
21915:17e8429c3a57 21916:f31ffbd84d07
4163 4163
4164 <itemizedlist> 4164 <itemizedlist>
4165 <listitem><para> 4165 <listitem><para>
4166 <emphasis role="bold">B-frames</emphasis>: 4166 <emphasis role="bold">B-frames</emphasis>:
4167 <application>QuickTime</application> 7 supports a maximum of 1 B-frame, i.e. 4167 <application>QuickTime</application> 7 supports a maximum of 1 B-frame, i.e.
4168 <option>-x264encopts bframes=1</option>. This means that 4168 <option>-x264encopts bframes=1</option>. This means that
4169 <option>b_pyramid</option> and <option>weight_b</option> will have no 4169 <option>b_pyramid</option> and <option>weight_b</option> will have no
4170 effect, since they require <option>bframes</option> to be greater than 1. 4170 effect, since they require <option>bframes</option> to be greater than 1.
4171 </para></listitem> 4171 </para></listitem>
4172 <listitem><para> 4172 <listitem><para>
4173 <emphasis role="bold">Macroblocks</emphasis>: 4173 <emphasis role="bold">Macroblocks</emphasis>:
4174 <application>QuickTime</application> 7 does not support 8x8 DCT macroblocks. 4174 <application>QuickTime</application> 7 does not support 8x8 DCT macroblocks.
4175 This option (<option>8x8dct</option>) is off by default, so just be sure 4175 This option (<option>8x8dct</option>) is off by default, so just be sure
4176 not to explicitly enable it. This also means that the <option>i8x8</option> 4176 not to explicitly enable it. This also means that the <option>i8x8</option>
4177 option will have no effect, since it requires <option>8x8dct</option>. 4177 option will have no effect, since it requires <option>8x8dct</option>.
4178 </para></listitem> 4178 </para></listitem>
4179 <listitem><para> 4179 <listitem><para>
4180 <emphasis role="bold">Aspect ratio</emphasis>: 4180 <emphasis role="bold">Aspect ratio</emphasis>:
4181 <application>QuickTime</application> 7 does not support SAR (sample 4181 <application>QuickTime</application> 7 does not support SAR (sample
4182 aspect ratio) information in MPEG-4 files; it assumes that SAR=1. Read 4182 aspect ratio) information in MPEG-4 files; it assumes that SAR=1. Read
4183 <link linkend="menc-feat-quicktime-7-scale">the section on scaling</link> 4183 <link linkend="menc-feat-quicktime-7-scale">the section on scaling</link>
4184 for a workaround. 4184 for a workaround.
4185 </para></listitem> 4185 </para></listitem>
4186 </itemizedlist> 4186 </itemizedlist>
4187 4187
4190 <sect2 id="menc-feat-quicktime-7-crop"> 4190 <sect2 id="menc-feat-quicktime-7-crop">
4191 <title>Cropping</title> 4191 <title>Cropping</title>
4192 <para> 4192 <para>
4193 Suppose you want to rip your freshly bought copy of "The Chronicles of 4193 Suppose you want to rip your freshly bought copy of "The Chronicles of
4194 Narnia". Your DVD is region 1, 4194 Narnia". Your DVD is region 1,
4195 which means it is NTSC. The example below would still apply to PAL, 4195 which means it is NTSC. The example below would still apply to PAL,
4196 except you would omit <option>-ofps 24000/1001</option> and use slightly 4196 except you would omit <option>-ofps 24000/1001</option> and use slightly
4197 different <option>crop</option> and <option>scale</option> dimensions. 4197 different <option>crop</option> and <option>scale</option> dimensions.
4198 </para> 4198 </para>
4199 4199
4200 <para> 4200 <para>
4201 After running <option>mplayer dvd://1</option>, you follow the process 4201 After running <option>mplayer dvd://1</option>, you follow the process
4202 detailed in the section <link linkend="menc-feat-telecine">How to deal 4202 detailed in the section <link linkend="menc-feat-telecine">How to deal
4203 with telecine and interlacing in NTSC DVDs</link> and discover that it is 4203 with telecine and interlacing in NTSC DVDs</link> and discover that it is
4204 24000/1001 fps progressive video. This simplifies the process somewhat, 4204 24000/1001 fps progressive video. This simplifies the process somewhat,
4205 since you do not need to use an inverse telecine filter such as 4205 since you do not need to use an inverse telecine filter such as
4206 <option>pullup</option> or a deinterlacing filter such as 4206 <option>pullup</option> or a deinterlacing filter such as
4207 <option>yadif</option>. 4207 <option>yadif</option>.
4208 </para> 4208 </para>
4209 4209
4243 <title>A/V sync</title> 4243 <title>A/V sync</title>
4244 4244
4245 <para> 4245 <para>
4246 Because you will be remuxing into a different container, you should 4246 Because you will be remuxing into a different container, you should
4247 always use the <option>harddup</option> option to ensure that duplicated 4247 always use the <option>harddup</option> option to ensure that duplicated
4248 frames are actually duplicated in the video output. Without this option, 4248 frames are actually duplicated in the video output. Without this option,
4249 <application>MEncoder</application> will simply put a marker in the video 4249 <application>MEncoder</application> will simply put a marker in the video
4250 stream that a frame was duplicated, and rely on the client software to 4250 stream that a frame was duplicated, and rely on the client software to
4251 show the same frame twice. Unfortunately, this "soft duplication" does 4251 show the same frame twice. Unfortunately, this "soft duplication" does
4252 not survive remuxing, so the audio would slowly lose sync with the video. 4252 not survive remuxing, so the audio would slowly lose sync with the video.
4253 </para> 4253 </para>
4254 4254
4255 <para> 4255 <para>
4256 The final filter chain looks like this: 4256 The final filter chain looks like this:
4279 4279
4280 <sect2 id="menc-feat-quicktime-7-example"> 4280 <sect2 id="menc-feat-quicktime-7-example">
4281 <title>Encoding example</title> 4281 <title>Encoding example</title>
4282 4282
4283 <para> 4283 <para>
4284 You are now ready to encode the video. Since you care about 4284 You are now ready to encode the video. Since you care about
4285 quality, of course you will be doing a two-pass encode. To shave off 4285 quality, of course you will be doing a two-pass encode. To shave off
4286 some encoding time, you can specify the <option>turbo</option> option 4286 some encoding time, you can specify the <option>turbo</option> option
4287 on the first pass; this reduces <option>subq</option> and 4287 on the first pass; this reduces <option>subq</option> and
4288 <option>frameref</option> to 1. To save some disk space, you can 4288 <option>frameref</option> to 1. To save some disk space, you can
4289 use the <option>ss</option> option to strip off the first few seconds 4289 use the <option>ss</option> option to strip off the first few seconds
4290 of the video. (I found that this particular movie has 32 seconds of 4290 of the video. (I found that this particular movie has 32 seconds of
4291 credits and logos.) <option>bframes</option> can be 0 or 1. 4291 credits and logos.) <option>bframes</option> can be 0 or 1.
4292 The other options are documented in <link 4292 The other options are documented in <link
4293 linkend="menc-feat-x264-encoding-options-speedvquality">Encoding with 4293 linkend="menc-feat-x264-encoding-options-speedvquality">Encoding with
4294 the <systemitem class="library">x264</systemitem> codec</link> and 4294 the <systemitem class="library">x264</systemitem> codec</link> and
4295 the man page. 4295 the man page.
4332 4332
4333 <sect2 id="menc-feat-quicktime-7-remux"> 4333 <sect2 id="menc-feat-quicktime-7-remux">
4334 <title>Remuxing as MP4</title> 4334 <title>Remuxing as MP4</title>
4335 4335
4336 <para> 4336 <para>
4337 There are several ways to remux AVI files to MP4. You can use 4337 There are several ways to remux AVI files to MP4. You can use
4338 <application>mp4creator</application>, which is part of the 4338 <application>mp4creator</application>, which is part of the
4339 <ulink url="http://mpeg4ip.sourceforge.net/">MPEG4IP suite</ulink>. 4339 <ulink url="http://mpeg4ip.sourceforge.net/">MPEG4IP suite</ulink>.
4340 </para> 4340 </para>
4341 4341
4342 <para> 4342 <para>
4364 4364
4365 <para> 4365 <para>
4366 This <systemitem>narnia.mp4</systemitem> file should now be playable 4366 This <systemitem>narnia.mp4</systemitem> file should now be playable
4367 with any <application>QuickTime</application> 7 application, such as 4367 with any <application>QuickTime</application> 7 application, such as
4368 <application>QuickTime Player</application> or 4368 <application>QuickTime Player</application> or
4369 <application>iTunes</application>. If you are planning to view the 4369 <application>iTunes</application>. If you are planning to view the
4370 video in a web browser with the <application>QuickTime</application> 4370 video in a web browser with the <application>QuickTime</application>
4371 plugin, you should also hint the movie so that the 4371 plugin, you should also hint the movie so that the
4372 <application>QuickTime</application> plugin can start playing it 4372 <application>QuickTime</application> plugin can start playing it
4373 while it is still downloading. <application>mp4creator</application> 4373 while it is still downloading. <application>mp4creator</application>
4374 can create these hint tracks: 4374 can create these hint tracks: