Mercurial > mplayer.hg
comparison DOCS/xml/en/encoding-guide.xml @ 16087:e56a9eacfbc7
General note about filtering from Rich's encoding guide
author | gpoirier |
---|---|
date | Sun, 24 Jul 2005 21:58:34 +0000 |
parents | 6c16b60516f3 |
children | 28f3faf22115 |
comparison
equal
deleted
inserted
replaced
16086:6c16b60516f3 | 16087:e56a9eacfbc7 |
---|---|
1082 | 1082 |
1083 </sect2> | 1083 </sect2> |
1084 | 1084 |
1085 <sect2 id="menc-feat-dvd-mpeg4-filtering"> | 1085 <sect2 id="menc-feat-dvd-mpeg4-filtering"> |
1086 <title>Filtering</title> | 1086 <title>Filtering</title> |
1087 | |
1088 <para> | |
1089 Learning how to use <application>MEncoder</application>'s video filters | |
1090 is essential to producing good encodes. | |
1091 All video processing is performed through the filters -- cropping, | |
1092 scaling, color adjustment, noise removal, sharpening, deinterlacing, | |
1093 telecine, inverse telecine, and deblocking, just to name a few. | |
1094 Along with the vast number of supported input formats, the variety of | |
1095 filters available in <application>MEncoder</application> is one of its | |
1096 main advantages over other similar programs. | |
1097 </para> | |
1098 | |
1099 <para> | |
1100 Filters are loaded in a chain using the -vf option: | |
1101 | |
1102 <screen>-vf filter1=options,filter2=options,...</screen> | |
1103 | |
1104 Most filters take several numeric options separated by colons, but | |
1105 the syntax for options varies from filter to filter, so read the man | |
1106 page for details on the filters you wish to use. | |
1107 </para> | |
1108 | |
1109 <para> | |
1110 Filters operate on the video in the order they are loaded. | |
1111 For example, the following chain: | |
1112 | |
1113 <screen>-vf crop=688:464:12:4,scale=640:464</screen> | |
1114 | |
1115 will first crop the 688x464 region of the picture with upper-left | |
1116 corner at (12,4), and then scale the result down to 640x464. | |
1117 </para> | |
1118 | |
1119 <para> | |
1120 Certain filters need to be loaded at or near the beginning of the | |
1121 filter chain, in order to take advantage of information from the | |
1122 video decoder that will be lost or invalidated by other filters. | |
1123 The principal examples are <option>pp</option> (postprocessing, only | |
1124 when it is performing deblock or dering operations), | |
1125 <option>spp</option> (another postprocessor to remove MPEG artifacts), | |
1126 <option>pullup</option> (inverse telecine), and | |
1127 <option>softpulldown</option> (for converting soft telecine to hard | |
1128 telecine). | |
1129 </para> | |
1087 | 1130 |
1088 <para> | 1131 <para> |
1089 In general, you want to do as little filtering as possible to the movie | 1132 In general, you want to do as little filtering as possible to the movie |
1090 in order to remain close to the original DVD source. Cropping is often | 1133 in order to remain close to the original DVD source. Cropping is often |
1091 necessary (as described above), but avoid to scale the video. Although | 1134 necessary (as described above), but avoid to scale the video. Although |