comparison DOCS/xml/en/mencoder.xml @ 14958:85546d215f6e

precise framerate values everywhere patch by Corey Hickey <bugfood-ml at fatooh dot org>
author diego
date Sat, 19 Mar 2005 16:55:26 +0000
parents 37112d48fb50
children aec21cf429cb
comparison
equal deleted inserted replaced
14957:7c83a78a8846 14958:85546d215f6e
716 716
717 <sect2 id="menc-feat-dvd-mpeg4-interlacing"> 717 <sect2 id="menc-feat-dvd-mpeg4-interlacing">
718 <title>Interlacing and Telecine</title> 718 <title>Interlacing and Telecine</title>
719 719
720 <para> 720 <para>
721 Almost all movies are shot at 24 fps. Because NTSC is 29.97 fps, some 721 Almost all movies are shot at 24 fps. Because NTSC is 30000/1001 fps, some
722 processing must be done to this 24 fps video to make it run at the correct 722 processing must be done to this 24 fps video to make it run at the correct
723 NTSC framerate. The process is called 3:2 pulldown, commonly referred to 723 NTSC framerate. The process is called 3:2 pulldown, commonly referred to
724 as telecine (because pulldown is often applied during the telecine 724 as telecine (because pulldown is often applied during the telecine
725 process), and, naively described, it works by slowing the film down to 725 process), and, naively described, it works by slowing the film down to
726 23.976 fps, and repeating every fourth frame. 726 24000/1001 fps, and repeating every fourth frame.
727 </para> 727 </para>
728 728
729 <para> 729 <para>
730 No special processing, however, is done to the video for PAL DVDs, which 730 No special processing, however, is done to the video for PAL DVDs, which
731 run at 25 fps. (Technically, PAL can be telecined, called 2:2 pulldown, 731 run at 25 fps. (Technically, PAL can be telecined, called 2:2 pulldown,
744 apply inverse telecine. 744 apply inverse telecine.
745 </para> 745 </para>
746 746
747 <para> 747 <para>
748 For movies shot at 24 fps, the video on the NTSC DVD is either telecined 748 For movies shot at 24 fps, the video on the NTSC DVD is either telecined
749 29.97 fps, or else it is progressive 24 fps and intended to be telecined 749 30000/1001, or else it is progressive 24000/1001 fps and intended to be telecined
750 on-the-fly by a DVD player. On the other hand, TV series are usually 750 on-the-fly by a DVD player. On the other hand, TV series are usually
751 only interlaced, not telecined. This is not a hard rule: some TV series 751 only interlaced, not telecined. This is not a hard rule: some TV series
752 are interlaced (such as Buffy the Vampire Slayer) whereas some are a 752 are interlaced (such as Buffy the Vampire Slayer) whereas some are a
753 mixture of progressive and interlaced (such as Angel, or 24). 753 mixture of progressive and interlaced (such as Angel, or 24).
754 </para> 754 </para>
808 <para> 808 <para>
809 So, you've just bought your shiny new copy of Harry Potter and the Chamber 809 So, you've just bought your shiny new copy of Harry Potter and the Chamber
810 of Secrets (widescreen edition, of course), and you want to rip this DVD 810 of Secrets (widescreen edition, of course), and you want to rip this DVD
811 so that you can add it to your Home Theatre PC. This is a region 1 DVD, 811 so that you can add it to your Home Theatre PC. This is a region 1 DVD,
812 so it's NTSC. The example below will still apply to PAL, except you'll 812 so it's NTSC. The example below will still apply to PAL, except you'll
813 omit <option>-ofps 23.976</option> (because the output framerate is the 813 omit <option>-ofps 24000/1001</option> (because the output framerate is the
814 same as the input framerate), and of course the crop dimensions will be 814 same as the input framerate), and of course the crop dimensions will be
815 different. 815 different.
816 </para> 816 </para>
817 817
818 <para> 818 <para>
819 After running <option>mplayer dvd://1</option>, we follow the process 819 After running <option>mplayer dvd://1</option>, we follow the process
820 detailed in the section <link linkend="menc-feat-telecine">How to deal 820 detailed in the section <link linkend="menc-feat-telecine">How to deal
821 with telecine and interlacing in NTSC DVDs</link> and discover that it's 821 with telecine and interlacing in NTSC DVDs</link> and discover that it's
822 24 fps progressive video, which means that we needn't use an inverse 822 24000/1001 fps progressive video, which means that we needn't use an inverse
823 telecine filter, such as <option>pullup</option> or 823 telecine filter, such as <option>pullup</option> or
824 <option>filmdint</option>. 824 <option>filmdint</option>.
825 </para> 825 </para>
826 826
827 <para> 827 <para>
886 </para> 886 </para>
887 887
888 <para> 888 <para>
889 We're now ready to do the two pass encode. Pass one: 889 We're now ready to do the two pass encode. Pass one:
890 890
891 <screen>mencoder dvd://1 -ofps 23.976 -oac copy -vf crop=720:352:0:62,hqdn3d=2:1:2 -ovc lavc \ 891 <screen>mencoder dvd://1 -ofps 24000/1001 -oac copy -vf crop=720:352:0:62,hqdn3d=2:1:2 -ovc lavc \
892 -lavcopts vcodec=mpeg4:vbitrate=2400:v4mv:mbd=2:trell:cmp=3:subcmp=3:mbcmp=3:autoaspect:vpass=1 \ 892 -lavcopts vcodec=mpeg4:vbitrate=2400:v4mv:mbd=2:trell:cmp=3:subcmp=3:mbcmp=3:autoaspect:vpass=1 \
893 -o Harry_Potter_2.avi</screen> 893 -o Harry_Potter_2.avi</screen>
894 894
895 And pass two is the same, except that we specify <option>vpass=2</option>: 895 And pass two is the same, except that we specify <option>vpass=2</option>:
896 896
897 <screen>mencoder dvd://1 -ofps 23.976 -oac copy -vf crop=720:352:0:62,hqdn3d=2:1:2 -ovc lavc \ 897 <screen>mencoder dvd://1 -ofps 24000/1001 -oac copy -vf crop=720:352:0:62,hqdn3d=2:1:2 -ovc lavc \
898 -lavcopts vcodec=mpeg4:vbitrate=2400:v4mv:mbd=2:trell:cmp=3:subcmp=3:mbcmp=3:autoaspect:vpass=2 \ 898 -lavcopts vcodec=mpeg4:vbitrate=2400:v4mv:mbd=2:trell:cmp=3:subcmp=3:mbcmp=3:autoaspect:vpass=2 \
899 -o Harry_Potter_2.avi</screen> 899 -o Harry_Potter_2.avi</screen>
900 </para> 900 </para>
901 901
902 <para> 902 <para>
941 </sect1> 941 </sect1>
942 942
943 <sect1 id="menc-feat-telecine"> 943 <sect1 id="menc-feat-telecine">
944 <title>How to deal with telecine and interlacing within NTSC DVDs</title> 944 <title>How to deal with telecine and interlacing within NTSC DVDs</title>
945 945
946 <sect2 id="menc-feat-telecine-intro">
947 <title>Introduction</title>
946 <formalpara> 948 <formalpara>
947 <title>Introduction</title> 949 <title>What is telecine?</title>
948 <para> 950 <para>
949 I suggest you visit this page if you don't understand much of what 951 I suggest you visit this page if you don't understand much of what
950 is written in this document: 952 is written in this document:
951 <ulink url="http://www.divx.com/support/guides/guide.php?gid=10">http://www.divx.com/support/guides/guide.php?gid=10</ulink> 953 <ulink url="http://www.divx.com/support/guides/guide.php?gid=10">http://www.divx.com/support/guides/guide.php?gid=10</ulink>
952 This URL links to an understandable and reasonably comprehensive 954 This URL links to an understandable and reasonably comprehensive
953 description of what telecine is. 955 description of what telecine is.
954 </para></formalpara> 956 </para></formalpara>
955 957
956 <para> 958 <formalpara>
957 For technical reasons pertaining to the limitations of early 959 <title>A note about the numbers.</title>
958 television hardware, all video intended to be displayed on an NTSC 960 <para>
959 television set must be 59.94 fields per second. Made-for-TV movies 961 Many documents, including the guide linked above, refer to the fields
960 and shows are often filmed directly at 59.94 fields per second, but 962 per second value of NTSC video as 59.94 and the corresponding frames
961 the majority of cinema is filmed at 24 or 23.976 frames per 963 per second values as 29.97 (for telecined and interlaced) and 23.976
964 (for progressive). For simplicity, some documents even round these
965 numbers to 60, 30, and 24.
966 </para></formalpara>
967
968 <para>
969 Strictly speaking, all those numbers are approximations. Black and
970 white NTSC video was exactly 60 fields per second, but 60000/1001
971 was later chosen to accomodate color data while remaining compatible
972 with contemporary black and white televisions. Digital NTSC video
973 (such as on a DVD) is also 60000/1001 fields per second. From this,
974 interlaced and telecined video are derived to be 30000/1001 frames
975 per second; progressive video is 24000/1001 frames per second.
976 </para>
977
978 <para>
979 Older versions of the <application>MEncoder</application> documentation
980 and many archived mailing list posts refer to 59.94, 29.97, and 23.976.
981 All <application>MEncoder</application> documentation has been updated
982 to use the fractional values, and you should use them too.
983 </para>
984
985 <para>
986 <option>-ofps 23.976</option> is incorrect.
987 <option>-ofps 24000/1001</option> should be used instead.
988 </para>
989
990 <formalpara>
991 <title>How telecine is used.</title>
992 <para>
993 All video intended to be displayed on an NTSC
994 television set must be 60000/1001 fields per second. Made-for-TV movies
995 and shows are often filmed directly at 60000/1001 fields per second, but
996 the majority of cinema is filmed at 24 or 24000/1001 frames per
962 second. When cinematic movie DVDs are mastered, the video is then 997 second. When cinematic movie DVDs are mastered, the video is then
963 converted for television using a process called telecine. 998 converted for television using a process called telecine.
964 </para> 999 </para></formalpara>
965 1000
966 <para> 1001 <para>
967 On a DVD, the video is never actually stored as 59.94 fields per 1002 On a DVD, the video is never actually stored as 60000/1001 fields per
968 second. For video that was originally 59.94, each pair of fields is 1003 second. For video that was originally 60000/1001, each pair of fields is
969 combined to form a frame, resulting in 29.97 frames per 1004 combined to form a frame, resulting in 30000/1001 frames per
970 second. Hardware DVD players then read a flag embedded in the video 1005 second. Hardware DVD players then read a flag embedded in the video
971 stream to determine whether the odd- or even-numbered lines should 1006 stream to determine whether the odd- or even-numbered lines should
972 form the first field. 1007 form the first field.
973 </para> 1008 </para>
974 1009
975 <para> 1010 <para>
976 Usually, 23.976 frames per second content stays as it is when 1011 Usually, 24000/1001 frames per second content stays as it is when
977 encoded for a DVD, and the DVD player must perform telecining 1012 encoded for a DVD, and the DVD player must perform telecining
978 on-the-fly. Sometimes, however, the video is telecined 1013 on-the-fly. Sometimes, however, the video is telecined
979 <emphasis>before</emphasis> being stored on the DVD; even though it 1014 <emphasis>before</emphasis> being stored on the DVD; even though it
980 was originally 23.976 frames per second, it becomes 59.94 fields per 1015 was originally 24000/1001 frames per second, it becomes 60000/1001 fields per
981 second, and is stored on the disk as 29.97 frames per second. 1016 second. When it is stored on the DVD, pairs of fields are combined to form
982 </para> 1017 30000/1001 frames per second.
983 1018 </para>
984 <para> 1019
985 When looking at individual frames formed from 59.94 fields per 1020 <para>
1021 When looking at individual frames formed from 60000/10001 fields per
986 second video, telecined or otherwise, interlacing is clearly visible 1022 second video, telecined or otherwise, interlacing is clearly visible
987 wherever there is any motion, because one field (say, the 1023 wherever there is any motion, because one field (say, the
988 even-numbered lines) represents a moment in time 1/59.94th of a 1024 even-numbered lines) represents a moment in time 1/(60000/1001)
989 second later than the other. Playing interlaced video on a computer 1025 seconds later than the other. Playing interlaced video on a computer
990 looks ugly both because the monitor is higher resolution and because 1026 looks ugly both because the monitor is higher resolution and because
991 the video is shown frame-after-frame instead of field-after-field. 1027 the video is shown frame-after-frame instead of field-after-field.
992 </para> 1028 </para>
993 1029
994 <para>
995 Notes:
996 </para>
997 <itemizedlist> 1030 <itemizedlist>
1031 <title>Notes:</title>
998 <listitem><para> 1032 <listitem><para>
999 This section only applies to NTSC DVDs, and not PAL. 1033 This section only applies to NTSC DVDs, and not PAL.
1000 </para></listitem> 1034 </para></listitem>
1001 <listitem><para> 1035 <listitem><para>
1002 The example <application>MEncoder</application> lines throughout the 1036 The example <application>MEncoder</application> lines throughout the
1009 <listitem><para> 1043 <listitem><para>
1010 There are a couple footnotes specific to this guide, linked like this: 1044 There are a couple footnotes specific to this guide, linked like this:
1011 <link linkend="menc-feat-telecine-footnotes">[1]</link> 1045 <link linkend="menc-feat-telecine-footnotes">[1]</link>
1012 </para></listitem> 1046 </para></listitem>
1013 </itemizedlist> 1047 </itemizedlist>
1048 </sect2>
1014 1049
1015 <sect2 id="menc-feat-telecine-ident"> 1050 <sect2 id="menc-feat-telecine-ident">
1016 <title>How to tell what type of video you have</title> 1051 <title>How to tell what type of video you have</title>
1017 1052
1018 <sect3 id="menc-feat-telecine-ident-progressive"> 1053 <sect3 id="menc-feat-telecine-ident-progressive">
1019 <title>Progressive</title> 1054 <title>Progressive</title>
1020 <para> 1055 <para>
1021 Progressive video was originally filmed at 23.976 fps, and stored 1056 Progressive video was originally filmed at 24000/1001 fps, and stored
1022 on the DVD without alteration. 1057 on the DVD without alteration.
1023 </para> 1058 </para>
1024 1059
1025 <para> 1060 <para>
1026 When you play a progressive DVD in <application>MPlayer</application>, 1061 When you play a progressive DVD in <application>MPlayer</application>,
1027 <application>MPlayer</application> will print the following line as 1062 <application>MPlayer</application> will print the following line as
1028 soon as the movie begins to play: 1063 soon as the movie begins to play:
1029 1064
1030 <screen> demux_mpg: 24fps progressive NTSC content detected, switching framerate.</screen> 1065 <screen> demux_mpg: 24000/1001 fps progressive NTSC content detected, switching framerate.</screen>
1031 1066
1032 From this point forward, demux_mpg should never say it finds 1067 From this point forward, demux_mpg should never say it finds
1033 &quot;30fps NTSC content.&quot; 1068 &quot;30000/1001 fps NTSC content.&quot;
1034 </para> 1069 </para>
1035 1070
1036 <para> 1071 <para>
1037 When you watch progressive video, you should never see any 1072 When you watch progressive video, you should never see any
1038 interlacing. Beware, however, because sometimes there is a tiny bit 1073 interlacing. Beware, however, because sometimes there is a tiny bit
1061 </sect3> 1096 </sect3>
1062 1097
1063 <sect3 id="menc-feat-telecine-ident-telecined"> 1098 <sect3 id="menc-feat-telecine-ident-telecined">
1064 <title>Telecined</title> 1099 <title>Telecined</title>
1065 <para> 1100 <para>
1066 Telecined video was originally filmed at 23.976, but was telecined 1101 Telecined video was originally filmed at 24000/1001, but was telecined
1067 <emphasis>before</emphasis> it was written to the DVD. 1102 <emphasis>before</emphasis> it was written to the DVD.
1068 </para> 1103 </para>
1069 1104
1070 <para> 1105 <para>
1071 <application>MPlayer</application> does not (ever) report any 1106 <application>MPlayer</application> does not (ever) report any
1098 </orderedlist> 1133 </orderedlist>
1099 </para> 1134 </para>
1100 1135
1101 <para> 1136 <para>
1102 Sometimes telecined video on DVDs is referred to as 1137 Sometimes telecined video on DVDs is referred to as
1103 &quot;hard-telecine&quot;. Since hard-telecine is already 59.94 fields 1138 &quot;hard-telecine&quot;. Since hard-telecine is already 60000/1001 fields
1104 per second, the DVD player plays the video without any manipulation. 1139 per second, the DVD player plays the video without any manipulation.
1105 </para> 1140 </para>
1106 </sect3> 1141 </sect3>
1107 1142
1108 <sect3 id="menc-feat-telecine-ident-interlaced"> 1143 <sect3 id="menc-feat-telecine-ident-interlaced">
1109 <title>Interlaced</title> 1144 <title>Interlaced</title>
1110 <para> 1145 <para>
1111 Interlaced video was originally filmed at 59.94 fields per second, 1146 Interlaced video was originally filmed at 60000/1001 fields per second,
1112 and stored on the DVD as 29.97 frames per second. The interlacing effect 1147 and stored on the DVD as 30000/1001 frames per second. The interlacing effect
1113 (often called &quot;combing&quot;) is a result of combining pairs of 1148 (often called &quot;combing&quot;) is a result of combining pairs of
1114 fields into frames. Each field is supposed to be 1/59.94 seconds apart, 1149 fields into frames. Each field is supposed to be 1/(60000/1001) seconds apart,
1115 and when they are displayed simultaneously the difference is apparent. 1150 and when they are displayed simultaneously the difference is apparent.
1116 </para> 1151 </para>
1117 1152
1118 <para> 1153 <para>
1119 As with telecined video, <application>MPlayer</application> should 1154 As with telecined video, <application>MPlayer</application> should
1128 1163
1129 <sect3 id="menc-feat-telecine-ident-mixedpt"> 1164 <sect3 id="menc-feat-telecine-ident-mixedpt">
1130 <title>Mixed progressive and telecine</title> 1165 <title>Mixed progressive and telecine</title>
1131 <para> 1166 <para>
1132 All of a &quot;mixed progressive and telecine&quot; video was originally 1167 All of a &quot;mixed progressive and telecine&quot; video was originally
1133 23.976 frames per second, but some parts of it ended up being telecined. 1168 24000/1001 frames per second, but some parts of it ended up being telecined.
1134 </para> 1169 </para>
1135 1170
1136 <para> 1171 <para>
1137 When <application>MPlayer</application> plays this category, it will 1172 When <application>MPlayer</application> plays this category, it will
1138 (often repeatedly) switch back and forth between &quot;30fps NTSC&quot; 1173 (often repeatedly) switch back and forth between &quot;30000/1001 fps NTSC&quot;
1139 and &quot;24fps progressive NTSC&quot;. Watch the bottom of 1174 and &quot;24000/1001 fps progressive NTSC&quot;. Watch the bottom of
1140 <application>MPlayer</application>'s output to see these messages. 1175 <application>MPlayer</application>'s output to see these messages.
1141 </para> 1176 </para>
1142 1177
1143 <para> 1178 <para>
1144 You should check the &quot;30fps NTSC&quot; sections to make sure 1179 You should check the &quot;30000/1001 fps NTSC&quot; sections to make sure
1145 they are actually telecine, and not just interlaced. 1180 they are actually telecine, and not just interlaced.
1146 </para> 1181 </para>
1147 </sect3> 1182 </sect3>
1148 1183
1149 <sect3 id="menc-feat-telecine-ident-mixedpi"> 1184 <sect3 id="menc-feat-telecine-ident-mixedpi">
1153 and interlaced video have been spliced together. 1188 and interlaced video have been spliced together.
1154 </para> 1189 </para>
1155 1190
1156 <para> 1191 <para>
1157 This category looks just like &quot;mixed progressive and telecine&quot;, 1192 This category looks just like &quot;mixed progressive and telecine&quot;,
1158 until you examine the 30fps sections and see that they don't have the 1193 until you examine the 30000/1001 fps sections and see that they don't have the
1159 telecine pattern. 1194 telecine pattern.
1160 </para> 1195 </para>
1161 </sect3> 1196 </sect3>
1162 1197
1163 </sect2> 1198 </sect2>
1173 <sect3 id="menc-feat-telecine-encode-progressive"> 1208 <sect3 id="menc-feat-telecine-encode-progressive">
1174 <title>Progressive</title> 1209 <title>Progressive</title>
1175 <para> 1210 <para>
1176 Progressive video requires no special filtering to encode. The only 1211 Progressive video requires no special filtering to encode. The only
1177 parameter you need to be sure to use is 1212 parameter you need to be sure to use is
1178 <option>-ofps 23.976</option>. Otherwise, <application>MEncoder</application> 1213 <option>-ofps 24000/1001</option>. Otherwise, <application>MEncoder</application>
1179 will try to encode at 29.97 fps and duplicate frames. 1214 will try to encode at 30000/1001 fps and will duplicate frames.
1180 </para> 1215 </para>
1181 1216
1182 <para> 1217 <para>
1183 <screen>mencoder dvd://1 -nosound -ovc lavc -ofps 23.976</screen> 1218 <screen>mencoder dvd://1 -nosound -ovc lavc -ofps 24000/1001</screen>
1184 </para> 1219 </para>
1185 1220
1186 <para> 1221 <para>
1187 It is often the case, however, that a video that looks progressive 1222 It is often the case, however, that a video that looks progressive
1188 actually has very short parts of telecine mixed in. Unless you are 1223 actually has very short parts of telecine mixed in. Unless you are
1194 </sect3> 1229 </sect3>
1195 1230
1196 <sect3 id="menc-feat-telecine-encode-telecined"> 1231 <sect3 id="menc-feat-telecine-encode-telecined">
1197 <title>Telecined</title> 1232 <title>Telecined</title>
1198 <para> 1233 <para>
1199 Telecine can be reversed to retrieve the original 23.976 content, 1234 Telecine can be reversed to retrieve the original 24000/1001 content,
1200 using a process called inverse-telecine. 1235 using a process called inverse-telecine.
1201 <application>MPlayer</application> contains several filters to 1236 <application>MPlayer</application> contains several filters to
1202 accomplish this; the best filter, <option>pullup</option>, is described 1237 accomplish this; the best filter, <option>pullup</option>, is described
1203 in the <link linkend="menc-feat-telecine-encode-mixedpt">mixed 1238 in the <link linkend="menc-feat-telecine-encode-mixedpt">mixed
1204 progressive and telecine</link> section. 1239 progressive and telecine</link> section.
1249 Unfortunately, this option is buggy with 1284 Unfortunately, this option is buggy with
1250 <application>MEncoder</application>; it ought to work well with 1285 <application>MEncoder</application>; it ought to work well with
1251 <application>MEncoder G2</application>, but that isn't here yet. You 1286 <application>MEncoder G2</application>, but that isn't here yet. You
1252 might experience crahes. Anyway, the purpose of <option> -vf 1287 might experience crahes. Anyway, the purpose of <option> -vf
1253 tfields</option> is to create a full frame out of each field, which 1288 tfields</option> is to create a full frame out of each field, which
1254 makes the framerate 59.94. The advantage of this approach is that no 1289 makes the framerate 60000/1001. The advantage of this approach is that no
1255 data is ever lost; however, since each frame comes from only one 1290 data is ever lost; however, since each frame comes from only one
1256 field, the missing lines have to be interpolated somehow. There are 1291 field, the missing lines have to be interpolated somehow. There are
1257 no very good methods of generating the missing data, and so the 1292 no very good methods of generating the missing data, and so the
1258 result will look a bit similar to when using some deinterlacing 1293 result will look a bit similar to when using some deinterlacing
1259 filters. Generating the missing lines creates other issues, as well, 1294 filters. Generating the missing lines creates other issues, as well,
1266 <option>tfields</option> you 1301 <option>tfields</option> you
1267 <emphasis role="bold">have to</emphasis> specify both 1302 <emphasis role="bold">have to</emphasis> specify both
1268 <option>-fps</option> and <option>-ofps</option> to be twice the 1303 <option>-fps</option> and <option>-ofps</option> to be twice the
1269 framerate of your original source. 1304 framerate of your original source.
1270 1305
1271 <screen>mencoder dvd://1 -nosound -vf tfields=2 -ovc lavc -fps 59.94 -ofps 59.94</screen> 1306 <screen>mencoder dvd://1 -nosound -vf tfields=2 -ovc lavc -fps 60000/1001 -ofps 60000/1001</screen>
1272 </para></listitem> 1307 </para></listitem>
1273 <listitem><para> 1308 <listitem><para>
1274 If you plan on downscaling dramatically, you can extract and encode 1309 If you plan on downscaling dramatically, you can extract and encode
1275 only one of the two fields. Of course, you'll lose half the vertical 1310 only one of the two fields. Of course, you'll lose half the vertical
1276 resolution, but if you plan on downscaling to at most 1/2 of the 1311 resolution, but if you plan on downscaling to at most 1/2 of the
1277 original, the loss won't matter much. The result will be a 1312 original, the loss won't matter much. The result will be a
1278 progressive 29.97 frames per second file. The procedure is to use 1313 progressive 30000/1001 frames per second file. The procedure is to use
1279 <option>-vf field</option>, then crop 1314 <option>-vf field</option>, then crop
1280 <link linkend="menc-feat-telecine-footnotes">[1]</link> and scale 1315 <link linkend="menc-feat-telecine-footnotes">[1]</link> and scale
1281 appropriately. Remember that you'll have to adjust the scale to 1316 appropriately. Remember that you'll have to adjust the scale to
1282 compensate for the vertical resolution being halved. 1317 compensate for the vertical resolution being halved.
1283 <screen>mencoder dvd://1 -nosound -vf field=0 -ovc lavc</screen> 1318 <screen>mencoder dvd://1 -nosound -vf field=0 -ovc lavc</screen>
1294 described below. Note that you should 1329 described below. Note that you should
1295 <emphasis role="bold">always</emphasis> inverse-telecine before any 1330 <emphasis role="bold">always</emphasis> inverse-telecine before any
1296 rescaling; unless you really know what you're doing, 1331 rescaling; unless you really know what you're doing,
1297 inverse-telecine before cropping, too 1332 inverse-telecine before cropping, too
1298 <link linkend="menc-feat-telecine-footnotes">[1]</link>. 1333 <link linkend="menc-feat-telecine-footnotes">[1]</link>.
1299 <option>-ofps 23.976</option> is needed here because the output video 1334 <option>-ofps 24000/1001</option> is needed here because the output video
1300 will be 23.976 frames per second. 1335 will be 24000/1001 frames per second.
1301 </para> 1336 </para>
1302 1337
1303 <itemizedlist> 1338 <itemizedlist>
1304 <listitem><para> 1339 <listitem><para>
1305 <option>-vf pullup</option> is designed to inverse-telecine 1340 <option>-vf pullup</option> is designed to inverse-telecine
1309 else <application>MEncoder</application> will crash. 1344 else <application>MEncoder</application> will crash.
1310 <option>pullup</option> is, however, the cleanest and most 1345 <option>pullup</option> is, however, the cleanest and most
1311 accurate method available for encoding both telecine and 1346 accurate method available for encoding both telecine and
1312 &quot;mixed progressive and telecine&quot;. 1347 &quot;mixed progressive and telecine&quot;.
1313 1348
1314 <screen>mencoder dvd://1 -nosound -vf pullup,softskip -ovc lavc -ofps 23.976</screen> 1349 <screen>mencoder dvd://1 -nosound -vf pullup,softskip -ovc lavc -ofps 24000/1001</screen>
1315 </para> 1350 </para>
1316 1351
1317 1352
1318 </listitem> 1353 </listitem>
1319 <listitem><para> 1354 <listitem><para>
1322 the non-telecined parts and then inverse-telecine the whole 1357 the non-telecined parts and then inverse-telecine the whole
1323 video. Sound confusing? softpulldown is a filter that goes through 1358 video. Sound confusing? softpulldown is a filter that goes through
1324 a video and makes the entire file telecined. If we follow 1359 a video and makes the entire file telecined. If we follow
1325 softpulldown with either <option>detc</option> or 1360 softpulldown with either <option>detc</option> or
1326 <option>ivtc</option>, the final result will be entirely 1361 <option>ivtc</option>, the final result will be entirely
1327 progressive. <option>-ofps 23.976</option> is needed. 1362 progressive. <option>-ofps 24000/1001</option> is needed.
1328 1363
1329 <screen>mencoder dvd://1 -nosound -vf softpulldown,ivtc=1 -ovc lavc -ofps 23.976</screen> 1364 <screen>mencoder dvd://1 -nosound -vf softpulldown,ivtc=1 -ovc lavc -ofps 24000/1001</screen>
1330 </para> 1365 </para>
1331 </listitem> 1366 </listitem>
1332 1367
1333 <listitem><para> 1368 <listitem><para>
1334 I haven't used <option>-vf filmdint</option> myself, but here's what 1369 I haven't used <option>-vf filmdint</option> myself, but here's what
1361 </para> 1396 </para>
1362 1397
1363 <para> 1398 <para>
1364 This option should definitely not be used if you want to eventually 1399 This option should definitely not be used if you want to eventually
1365 display the video on an interlaced device (with a TV card, for 1400 display the video on an interlaced device (with a TV card, for
1366 example). If you have interlaced frames in a 23.976 frames per 1401 example). If you have interlaced frames in a 24000/1001 frames per
1367 second video, they will be telecined along with the progressive 1402 second video, they will be telecined along with the progressive
1368 frames. Half of the interlaced "frames" will be displayed for three 1403 frames. Half of the interlaced "frames" will be displayed for three
1369 fields' duration (3/59.94 seconds), resulting in a flicking 1404 fields' duration (3/(60000/1001) seconds), resulting in a flicking
1370 &quot;jump back in time&quot; effect that looks quite bad. If you 1405 &quot;jump back in time&quot; effect that looks quite bad. If you
1371 even attempt this, you <emphasis role="bold">must</emphasis> use a 1406 even attempt this, you <emphasis role="bold">must</emphasis> use a
1372 deinterlacing filter like <option>lb</option> or 1407 deinterlacing filter like <option>lb</option> or
1373 <option>l5</option>. 1408 <option>l5</option>.
1374 </para> 1409 </para>
1375 1410
1376 <para> 1411 <para>
1377 It may also be a bad idea for progressive display, too. It will drop 1412 It may also be a bad idea for progressive display, too. It will drop
1378 pairs of consecutive interlaced fields, resulting in a discontinuity 1413 pairs of consecutive interlaced fields, resulting in a discontinuity
1379 that can be more visible than with the second method, which shows 1414 that can be more visible than with the second method, which shows
1380 some progressive frames twice. 29.97 frames per second interlaced 1415 some progressive frames twice. 30000/1001 frames per second interlaced
1381 video is already a bit choppy because it really should be shown at 1416 video is already a bit choppy because it really should be shown at
1382 59.94 fields per second, so the duplicate frames don't stand out as 1417 60000/1001 fields per second, so the duplicate frames don't stand out as
1383 much. 1418 much.
1384 </para> 1419 </para>
1385 1420
1386 <para> 1421 <para>
1387 Either way, it's best to consider your content and how you intend to 1422 Either way, it's best to consider your content and how you intend to