comparison DOCS/xml/en/encoding-guide.xml @ 21583:f746c28a324c

vstrict=0 is required to create DVDs decodable by standalone dvd players
author gpoirier
date Tue, 12 Dec 2006 09:40:49 +0000
parents b210a229fbcb
children f551403d82a9
comparison
equal deleted inserted replaced
21582:239f2c145b2f 21583:f746c28a324c
4643 The resulting video quality would probably be quite bad. 4643 The resulting video quality would probably be quite bad.
4644 If you are trying to squeeze out the maximum possible quality on a DVD, 4644 If you are trying to squeeze out the maximum possible quality on a DVD,
4645 use vbitrate=9800, but be warned that this could constrain you to less 4645 use vbitrate=9800, but be warned that this could constrain you to less
4646 than an hour of video on a single-layer DVD. 4646 than an hour of video on a single-layer DVD.
4647 </para></listitem> 4647 </para></listitem>
4648 <listitem><para>
4649 <emphasis role="bold">vtrict</emphasis>:
4650 <option>vstrict</option>=0 should be used to create DVDs.
4651 Without this option, <application>MEncoder</application> creates a
4652 stream that cannot be correctly decoded by some standalone DVD
4653 players.
4654 </para></listitem>
4648 </itemizedlist> 4655 </itemizedlist>
4649 </sect3> 4656 </sect3>
4650 4657
4651 4658
4652 <sect3 id="menc-feat-vcd-dvd-lavc-examples"> 4659 <sect3 id="menc-feat-vcd-dvd-lavc-examples">
4674 4681
4675 <para> 4682 <para>
4676 DVD: 4683 DVD:
4677 <screen> 4684 <screen>
4678 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\ 4685 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
4679 keyint=15:acodec=ac3 4686 keyint=15:vstrict=0:acodec=ac3
4680 </screen> 4687 </screen>
4681 </para> 4688 </para>
4682 </sect3> 4689 </sect3>
4683 4690
4684 4691
4700 4707
4701 <para> 4708 <para>
4702 <screen> 4709 <screen>
4703 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=8000:\ 4710 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=8000:\
4704 keyint=15:trell:mbd=2:precmp=2:subcmp=2:cmp=2:dia=-10:predia=-10:cbp:mv0:\ 4711 keyint=15:trell:mbd=2:precmp=2:subcmp=2:cmp=2:dia=-10:predia=-10:cbp:mv0:\
4705 vqmin=1:lmin=1:dc=10 4712 vqmin=1:lmin=1:dc=10:vstrict=0
4706 </screen> 4713 </screen>
4707 </para> 4714 </para>
4708 </sect3> 4715 </sect3>
4709 </sect2> 4716 </sect2>
4710 4717
4789 <para> 4796 <para>
4790 <screen> 4797 <screen>
4791 mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \ 4798 mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
4792 -vf scale=720:576,harddup -srate 48000 -af lavcresample=48000 \ 4799 -vf scale=720:576,harddup -srate 48000 -af lavcresample=48000 \
4793 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\ 4800 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
4794 keyint=15:acodec=ac3:abitrate=192:aspect=16/9 -ofps 25 \ 4801 keyint=15:vstrict=0:acodec=ac3:abitrate=192:aspect=16/9 -ofps 25 \
4795 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable> 4802 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
4796 </screen> 4803 </screen>
4797 </para> 4804 </para>
4798 </sect3> 4805 </sect3>
4799 4806
4804 <para> 4811 <para>
4805 <screen> 4812 <screen>
4806 mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \ 4813 mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
4807 -vf scale=720:480,harddup -srate 48000 -af lavcresample=48000 \ 4814 -vf scale=720:480,harddup -srate 48000 -af lavcresample=48000 \
4808 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\ 4815 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
4809 keyint=18:acodec=ac3:abitrate=192:aspect=16/9 -ofps 30000/1001 \ 4816 keyint=18:vstrict=0:acodec=ac3:abitrate=192:aspect=16/9 -ofps 30000/1001 \
4810 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable> 4817 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
4811 </screen> 4818 </screen>
4812 </para> 4819 </para>
4813 </sect3> 4820 </sect3>
4814 4821
4820 If the source already has AC3 audio, use -oac copy instead of re-encoding it. 4827 If the source already has AC3 audio, use -oac copy instead of re-encoding it.
4821 <screen> 4828 <screen>
4822 mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \ 4829 mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
4823 -vf scale=720:576,harddup -ofps 25 \ 4830 -vf scale=720:576,harddup -ofps 25 \
4824 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\ 4831 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
4825 keyint=15:aspect=16/9 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable> 4832 keyint=15:vstrict=0:aspect=16/9 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
4826 </screen> 4833 </screen>
4827 </para> 4834 </para>
4828 </sect3> 4835 </sect3>
4829 4836
4830 4837
4834 <para> 4841 <para>
4835 If the source already has AC3 audio, and is NTSC @ 24000/1001 fps: 4842 If the source already has AC3 audio, and is NTSC @ 24000/1001 fps:
4836 <screen> 4843 <screen>
4837 mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf:telecine \ 4844 mencoder -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf:telecine \
4838 -vf scale=720:480,harddup -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:\ 4845 -vf scale=720:480,harddup -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:\
4839 vrc_maxrate=9800:vbitrate=5000:keyint=15:aspect=16/9 -ofps 24000/1001 \ 4846 vrc_maxrate=9800:vbitrate=5000:keyint=15:vstrict=0:aspect=16/9 -ofps 24000/1001 \
4840 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable> 4847 -o <replaceable>movie.mpg</replaceable> <replaceable>movie.avi</replaceable>
4841 </screen> 4848 </screen>
4842 </para> 4849 </para>
4843 </sect3> 4850 </sect3>
4844 4851