comparison DOCS/xml/en/encoding-guide.xml @ 16384:afe6be7b2d48

Typo, and fixed missing word too many avc encoding! :)
author gpoirier
date Sun, 04 Sep 2005 12:41:30 +0000
parents 3cc0d81806bf
children 8f347723d3b3
comparison
equal deleted inserted replaced
16383:3cc0d81806bf 16384:afe6be7b2d48
1369 a file with audio, even if you will be encoding and muxing audio 1369 a file with audio, even if you will be encoding and muxing audio
1370 separately later. 1370 separately later.
1371 Though it may work in ideal cases, using <option>-nosound</option> is 1371 Though it may work in ideal cases, using <option>-nosound</option> is
1372 likely to hide some problems in your encoding command line setting. 1372 likely to hide some problems in your encoding command line setting.
1373 In other words, having a soundtrack during your encode assures you that, 1373 In other words, having a soundtrack during your encode assures you that,
1374 provided you don't messages such as 1374 provided you don't get messages such as
1375 <quote>Too many audio packets in the buffer</quote>, you will be able 1375 <quote>Too many audio packets in the buffer</quote>, you will be able
1376 to get proper sync. 1376 to get proper sync.
1377 </para> 1377 </para>
1378 1378
1379 <para> 1379 <para>
1859 <option>-ofps 24000/1001</option>. Otherwise, <application>MEncoder</application> 1859 <option>-ofps 24000/1001</option>. Otherwise, <application>MEncoder</application>
1860 will try to encode at 30000/1001 fps and will duplicate frames. 1860 will try to encode at 30000/1001 fps and will duplicate frames.
1861 </para> 1861 </para>
1862 1862
1863 <para> 1863 <para>
1864 <screen>mencoder dvd://1 -avc copy -ovc lavc -ofps 24000/1001</screen> 1864 <screen>mencoder dvd://1 -oac copy -ovc lavc -ofps 24000/1001</screen>
1865 </para> 1865 </para>
1866 1866
1867 <para> 1867 <para>
1868 It is often the case, however, that a video that looks progressive 1868 It is often the case, however, that a video that looks progressive
1869 actually has very short parts of telecine mixed in. Unless you are 1869 actually has very short parts of telecine mixed in. Unless you are
1908 using <option>mbd=2</option> is strongly recommended 1908 using <option>mbd=2</option> is strongly recommended
1909 <link linkend="menc-feat-telecine-footnotes">[2] </link> because it 1909 <link linkend="menc-feat-telecine-footnotes">[2] </link> because it
1910 will encode macroblocks as non-interlaced in places where there is 1910 will encode macroblocks as non-interlaced in places where there is
1911 no motion. Note that <option>-ofps</option> is NOT needed here. 1911 no motion. Note that <option>-ofps</option> is NOT needed here.
1912 1912
1913 <screen>mencoder dvd://1 -avc copy -ovc lavc -lavcopts ildct:ilme:mbd=2</screen> 1913 <screen>mencoder dvd://1 -oac copy -ovc lavc -lavcopts ildct:ilme:mbd=2</screen>
1914 </para></listitem> 1914 </para></listitem>
1915 <listitem><para> 1915 <listitem><para>
1916 Use a deinterlacing filter before encoding. There are several of 1916 Use a deinterlacing filter before encoding. There are several of
1917 these filters available to choose from, each with its own advantages 1917 these filters available to choose from, each with its own advantages
1918 and disadvantages. Consult <option>mplayer -pphelp</option> to see 1918 and disadvantages. Consult <option>mplayer -pphelp</option> to see
1922 various filters. Again, the framerate is not changing, so no 1922 various filters. Again, the framerate is not changing, so no
1923 <option>-ofps</option>. Also, deinterlacing should be done after 1923 <option>-ofps</option>. Also, deinterlacing should be done after
1924 cropping <link linkend="menc-feat-telecine-footnotes">[1]</link> and 1924 cropping <link linkend="menc-feat-telecine-footnotes">[1]</link> and
1925 before scaling. 1925 before scaling.
1926 1926
1927 <screen>mencoder dvd://1 -avc copy -vf pp=lb -ovc lavc</screen> 1927 <screen>mencoder dvd://1 -oac copy -vf pp=lb -ovc lavc</screen>
1928 </para></listitem> 1928 </para></listitem>
1929 <listitem><para> 1929 <listitem><para>
1930 Unfortunately, this option is buggy with 1930 Unfortunately, this option is buggy with
1931 <application>MEncoder</application>; it ought to work well with 1931 <application>MEncoder</application>; it ought to work well with
1932 <application>MEncoder G2</application>, but that is not here yet. You 1932 <application>MEncoder G2</application>, but that is not here yet. You
1947 <option>tfields</option> you 1947 <option>tfields</option> you
1948 <emphasis role="bold">have to</emphasis> specify both 1948 <emphasis role="bold">have to</emphasis> specify both
1949 <option>-fps</option> and <option>-ofps</option> to be twice the 1949 <option>-fps</option> and <option>-ofps</option> to be twice the
1950 framerate of your original source. 1950 framerate of your original source.
1951 1951
1952 <screen>mencoder dvd://1 -avc copy -vf tfields=2 -ovc lavc -fps 60000/1001 -ofps 60000/1001</screen> 1952 <screen>mencoder dvd://1 -oac copy -vf tfields=2 -ovc lavc -fps 60000/1001 -ofps 60000/1001</screen>
1953 </para></listitem> 1953 </para></listitem>
1954 <listitem><para> 1954 <listitem><para>
1955 If you plan on downscaling dramatically, you can extract and encode 1955 If you plan on downscaling dramatically, you can extract and encode
1956 only one of the two fields. Of course, you will lose half the vertical 1956 only one of the two fields. Of course, you will lose half the vertical
1957 resolution, but if you plan on downscaling to at most 1/2 of the 1957 resolution, but if you plan on downscaling to at most 1/2 of the
1959 progressive 30000/1001 frames per second file. The procedure is to use 1959 progressive 30000/1001 frames per second file. The procedure is to use
1960 <option>-vf field</option>, then crop 1960 <option>-vf field</option>, then crop
1961 <link linkend="menc-feat-telecine-footnotes">[1]</link> and scale 1961 <link linkend="menc-feat-telecine-footnotes">[1]</link> and scale
1962 appropriately. Remember that you will have to adjust the scale to 1962 appropriately. Remember that you will have to adjust the scale to
1963 compensate for the vertical resolution being halved. 1963 compensate for the vertical resolution being halved.
1964 <screen>mencoder dvd://1 -avc copy -vf field=0 -ovc lavc</screen> 1964 <screen>mencoder dvd://1 -oac copy -vf field=0 -ovc lavc</screen>
1965 </para></listitem> 1965 </para></listitem>
1966 </orderedlist> 1966 </orderedlist>
1967 </sect3> 1967 </sect3>
1968 1968
1969 <sect3 id="menc-feat-telecine-encode-mixedpt"> 1969 <sect3 id="menc-feat-telecine-encode-mixedpt">
1990 else <application>MEncoder</application> will crash. 1990 else <application>MEncoder</application> will crash.
1991 <option>pullup</option> is, however, the cleanest and most 1991 <option>pullup</option> is, however, the cleanest and most
1992 accurate method available for encoding both telecine and 1992 accurate method available for encoding both telecine and
1993 &quot;mixed progressive and telecine&quot;. 1993 &quot;mixed progressive and telecine&quot;.
1994 1994
1995 <screen>mencoder dvd://1 -avc copy -vf pullup,softskip -ovc lavc -ofps 24000/1001</screen> 1995 <screen>mencoder dvd://1 -oac copy -vf pullup,softskip -ovc lavc -ofps 24000/1001</screen>
1996 </para> 1996 </para>
1997 1997
1998 1998
1999 </listitem> 1999 </listitem>
2000 <listitem><para> 2000 <listitem><para>
2005 a video and makes the entire file telecined. If we follow 2005 a video and makes the entire file telecined. If we follow
2006 softpulldown with either <option>detc</option> or 2006 softpulldown with either <option>detc</option> or
2007 <option>ivtc</option>, the final result will be entirely 2007 <option>ivtc</option>, the final result will be entirely
2008 progressive. <option>-ofps 24000/1001</option> is needed. 2008 progressive. <option>-ofps 24000/1001</option> is needed.
2009 2009
2010 <screen>mencoder dvd://1 -avc copy -vf softpulldown,ivtc=1 -ovc lavc -ofps 24000/1001</screen> 2010 <screen>mencoder dvd://1 -oac copy -vf softpulldown,ivtc=1 -ovc lavc -ofps 24000/1001</screen>
2011 </para> 2011 </para>
2012 </listitem> 2012 </listitem>
2013 2013
2014 <listitem><para> 2014 <listitem><para>
2015 I have not used <option>-vf filmdint</option> myself, but here is what 2015 I have not used <option>-vf filmdint</option> myself, but here is what