comparison DOCS/documentation.html @ 7129:8f410b92f1a7

Plugin descriptions were moved to the man page.
author diego
date Thu, 29 Aug 2002 00:47:22 +0000
parents fc2b6726d247
children 8ab4d11353ae
comparison
equal deleted inserted replaced
7128:dc48f2130a76 7129:8f410b92f1a7
200 <LI><A HREF="#tv_options">2.5.2 Available options</A></LI> 200 <LI><A HREF="#tv_options">2.5.2 Available options</A></LI>
201 <LI><A HREF="#tv_keyboard">2.5.3 Keyboard control</A></LI> 201 <LI><A HREF="#tv_keyboard">2.5.3 Keyboard control</A></LI>
202 <LI><A HREF="#tv_examples">2.5.4 Examples</A></LI> 202 <LI><A HREF="#tv_examples">2.5.4 Examples</A></LI>
203 </UL> 203 </UL>
204 </LI> 204 </LI>
205 <LI><A HREF="#filters">2.6 Video filters</A>
206 <UL>
207 <LI><A HREF="#filters_usage">2.6.1 Usage</A></LI>
208 <LI><A HREF="#filters_crop">2.6.2 Crop</A></LI>
209 <LI><A HREF="#filters_expand">2.6.3 Expand</A></LI>
210 <LI><A HREF="#filters_fame">2.6.4 Fame/Lavc</A></LI>
211 <LI><A HREF="#filters_flip">2.6.5 Flip</A></LI>
212 <LI><A HREF="#filters_format">2.6.6 Format</A></LI>
213 <LI><A HREF="#filters_postprocess">2.6.7 Postprocess</A></LI>
214 <LI><A HREF="#filters_rgb2bgr">2.6.8 RGB2BGR</A></LI>
215 <LI><A HREF="#filters_rotate">2.6.9 Rotate</A></LI>
216 <LI><A HREF="#filters_scale">2.6.10 Scale</A></LI>
217 <LI><A HREF="#filters_yuy2">2.6.11 YUY2</A></LI>
218 <LI><A HREF="#filters_mirror">2.6.12 Mirror</A></LI>
219 <LI><A HREF="#filters_dvbscale">2.6.13 DVBscale</A></LI>
220 <LI><A HREF="#filters_cropdetect">2.6.14 Cropdetect</A></LI>
221 <LI><A HREF="#filters_rectangle">2.6.15 Rectangle</A></LI>
222 </UL>
223 </LI>
224 </UL> 205 </UL>
225 </LI> 206 </LI>
226 <LI><A HREF="#usage">3. Usage</A> 207 <LI><A HREF="#usage">3. Usage</A>
227 <UL> 208 <UL>
228 <LI><A HREF="#command_line">3.1 Command line</A></LI> 209 <LI><A HREF="#command_line">3.1 Command line</A></LI>
600 </UL> 581 </UL>
601 582
602 <H4>Non-YUV cards</H4> 583 <H4>Non-YUV cards</H4>
603 584
604 <P>Fullscreen playing can be achieved by either enabling <B>software scaling</B> 585 <P>Fullscreen playing can be achieved by either enabling <B>software scaling</B>
605 (use the <CODE>-zoom</CODE> or <A HREF="#filters_scale"><CODE>-vop scale</CODE></A> 586 (use the <CODE>-zoom</CODE> or <CODE>-vop scale</CODE>
606 option, but I warn you: this is slow), or switching to a small resolution 587 option, but I warn you: this is slow), or switching to a small resolution
607 video mode, for example 352x288. If you don't have YUV acceleration, the 588 video mode, for example 352x288. If you don't have YUV acceleration, the
608 latter method is recommended. Video mode switching can be enabled by 589 latter method is recommended. Video mode switching can be enabled by
609 using the <CODE>-vm</CODE> option and it works with the following drivers:</P> 590 using the <CODE>-vm</CODE> option and it works with the following drivers:</P>
610 591
1057 <P><B>Note:</B><BR> 1038 <P><B>Note:</B><BR>
1058 If you have a TV card with an external audio device and get only a black 1039 If you have a TV card with an external audio device and get only a black
1059 screen, although input works with xawtv or similar, then try to use the 1040 screen, although input works with xawtv or similar, then try to use the
1060 <CODE>-noaudio</CODE> option. For the example above this would be:<BR> 1041 <CODE>-noaudio</CODE> option. For the example above this would be:<BR>
1061 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;mplayer -tv on:noaudio:driver=v4l:width=640:height=480:outfmt=i420 -vc rawi420 -vo xv</CODE></P> 1042 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;mplayer -tv on:noaudio:driver=v4l:width=640:height=480:outfmt=i420 -vc rawi420 -vo xv</CODE></P>
1062
1063
1064 <H2><A NAME="filters">2.6 Video filters</A></H2>
1065
1066 <P>Both <B>MPlayer</B> and <B>MEncoder</B> support using a universal
1067 video filter layer, which comprises numerous plugins that are listed and
1068 explained below. These plugins can perform various actions on the image,
1069 such as rescaling, cropping black borders (useful not only for encoding but
1070 for playback, too, since black borders increase bus usage and cropping these
1071 can boost playback speed on slow boards) and expanding the image (for SVCDs).</P>
1072
1073 <P>With this filter layer it's possible to perform fast image format conversion
1074 between the various RGB and YUV formats when necessary. This enables for
1075 example playing RGB data on <CODE>xv</CODE> and <CODE>xmga</CODE> video output
1076 drivers among other things (see the <A HREF="#filters_scale">Scale</A> filter).</P>
1077
1078 <P>The filter layer also does <B>Direct Rendering</B> between the plugins, to
1079 maximize the speed.
1080
1081 <P>Note that the postprocessing code is now also a part of the layer. It
1082 will be explained below.</P>
1083
1084
1085 <H3><A NAME="filters_usage">2.6.1 Usage</A></H3>
1086
1087 <P><CODE>&nbsp;&nbsp;mplayer/mencoder -vop filter1,filter2,filter3,...</CODE>
1088 </P>
1089
1090 <P>This sets up a filter pipeline (you can use any number of filters). Their
1091 parameters are optional and if omitted, some of them are set to default
1092 values, e.g. <CODE>x</CODE> and <CODE>y</CODE> are both set to the center of
1093 the screen and <CODE>width</CODE> and <CODE>height</CODE> will be set to
1094 the width and height of the movie.</P>
1095
1096 <P>Filters are queued starting from libvo, so <CODE>filter1</CODE> will be the
1097 last filter called (after that comes libvo, or when using <B>MEncoder</B>,
1098 encoding).</P>
1099
1100 <P>You can get the list of available video filters with the command</P>
1101
1102 <P>&nbsp;&nbsp;<CODE>mplayer -vop help</CODE></P>
1103
1104
1105 <H3><A NAME="filters_crop">2.6.2 Crop</A></H3>
1106
1107 <P><B><U>Description</U></B>:</P>
1108
1109 <P>Crops the given part of the image and discards the rest. Useful for removing
1110 black bands from widescreen movies.</P>
1111
1112 <P><B><U>Usage</U></B>:</P>
1113
1114 <P><CODE>&nbsp;&nbsp;-vop crop[=width:height:x:y]</CODE></P>
1115
1116
1117 <H3><A NAME="filters_expand">2.6.3 Expand</A></H3>
1118
1119 <P><B><U>Description</U></B>:</P>
1120
1121 <P>Expands (<B>not</B> scales) movie resolution to the given value and places
1122 the unscaled original at coordinates <CODE>x</CODE> <CODE>y</CODE>. For movies
1123 not containing black bands, this can be used to add them. This is good when
1124 creating SVCDs or for placing subtitles or the OSD in these bands.</P>
1125
1126 <P><B><U>Usage</U></B>:</P>
1127
1128 <P><CODE>&nbsp;&nbsp;-vop expand[=width:height:x:y]</CODE></P>
1129
1130
1131 <H3><A NAME="filters_fame">2.6.4 Fame/Lavc</A></H3>
1132
1133 <P><B><U>Description</U></B>:</P>
1134
1135 <P>Realtime MPEG1 encoder (using libfame or libavcodec) (for use with
1136 DVB/DXR3).</P>
1137
1138 <P><B><U>Usage</U></B>:</P>
1139
1140 <P><CODE>&nbsp;&nbsp;-vop fame</CODE></P>
1141
1142 <P><CODE>&nbsp;&nbsp;-vop lavc</CODE></P>
1143
1144
1145 <H3><A NAME="filters_flip">2.6.5 Flip</A></H3>
1146
1147 <P><B><U>Description</U></B>:</P>
1148
1149 <P>Simply flips the image upside down. Useful for some old codecs which can only
1150 output a flipped image (these are autodetected).</P>
1151
1152 <P><B><U>Usage</U></B>:</P>
1153
1154 <P><CODE>&nbsp;&nbsp;-vop flip</CODE></P>
1155
1156
1157 <H3><A NAME="filters_format">2.6.6 Format</A></H3>
1158
1159 <P><B><U>Description</U></B>:</P>
1160
1161 <P>This filter is <B>not</B> an image format converter. It just forces the next
1162 filter (or libvo) to use the given format. Useful for cards with slow YV12,
1163 like tdfx and Savage4. For real conversion, use the scale filter.</P>
1164
1165 <P><B><U>Usage</U></B>:</P>
1166
1167 <P><CODE>&nbsp;&nbsp;-vop format[=format]</CODE> (where
1168 <CODE>format</CODE> can be for example: rgb32, yuy2, etc...)</P>
1169
1170
1171 <H3><A NAME="filters_postprocess">2.6.7 Postprocess</A></H3>
1172
1173 <P><B><U>Description</U></B>:</P>
1174
1175 <P>This is our good old postprocess, just converted to the filter layer.
1176 Performs image quality enhancement, deinterlacing, etc, see
1177 <CODE>-npp help</CODE> for available options.</P>
1178
1179 <P><B><U>Usage</U></B>:</P>
1180
1181 <P><CODE>&nbsp;&nbsp;-vop pp[=postprocess options/keywords]</CODE></P>
1182
1183
1184 <H3><A NAME="filters_rgb2bgr">2.6.8 RGB2BGR</A></H3>
1185
1186 <P><B><U>Description</U></B>:</P>
1187
1188 <P>Performs RGB 24/32 &lt;-&gt; BGR 24/32 colorspace conversion (default behavior)
1189 or RGB 24/32 &lt;-&gt; RGB 24/32 conversion with R &lt;-&gt; B swapping (with the 'swap'
1190 option).</P>
1191
1192 <P><B><U>Usage</U></B>:</P>
1193
1194 <P><CODE>&nbsp;&nbsp;-vop rgb2bgr[=swap]</CODE></P>
1195
1196
1197 <H3><A NAME="filters_rotate">2.6.9 Rotate</A></H3>
1198
1199 <P><B><U>Description</U></B>:</P>
1200
1201 <P>Rotates (flips) the image. The parameter <CODE>x</CODE> (values: 0-3)
1202 controls horizontal and vertical mirroring.</P>
1203
1204 <P><B><U>Usage</U></B>:</P>
1205
1206 <P><CODE>&nbsp;&nbsp;-vop rotate[=x]</CODE></P>
1207
1208
1209 <H3><A NAME="filters_scale">2.6.10 Scale</A></H3>
1210
1211 <P><B><U>Description</U></B>:</P>
1212
1213 <P>Scales the image with the software scaler (slow). You can adjust the
1214 quality of the scaler with the <CODE>-sws</CODE> option, see the man page.
1215 Nice quality implies speed loss.</P>
1216
1217 <P><B>Note:</B> Calling this filter with no options means <B>colorspace
1218 conversion</B>! This is useful for codecs which can't output in the needed
1219 format for the specified video output device. These are hopefully
1220 autodetected and scale filter is called to convert. In other cases, you
1221 can use it manually.</P>
1222
1223 <P><B><U>Usage</U></B>:</P>
1224
1225 <P><CODE>&nbsp;&nbsp;-vop scale[=width:height]</CODE></P>
1226
1227
1228 <H3><A NAME="filters_yuy2">2.6.11 YUY2</A></H3>
1229
1230 <P><B><U>Description</U></B>:</P>
1231
1232 <P>Forced software YV12/I420 to YUY2 conversion.</P>
1233
1234 <P><B><U>Usage</U></B>:</P>
1235
1236 <P><CODE>&nbsp;&nbsp;-vop yuy2</CODE></P>
1237
1238
1239 <H3><A NAME="filters_mirror">2.6.12 Mirror</A></H3>
1240
1241 <P><B><U>Description</U></B>:</P>
1242
1243 <P>Flips the image on Y axis.</P>
1244
1245 <P><B><U>Usage</U></B>:</P>
1246
1247 <P><CODE>&nbsp;&nbsp;-vop mirror</CODE></P>
1248
1249
1250 <H3><A NAME="filters_dvbscale">2.6.13 DVBscale</A></H3>
1251
1252 <P><B><U>Description</U></B>:</P>
1253
1254 <P>Calculates Y scaling for DVB card.</P>
1255
1256 <P><B><U>Usage</U></B>:</P>
1257
1258 <P><CODE>&nbsp;&nbsp;-vop dvbscale</CODE></P>
1259
1260
1261 <H3><A NAME="filters_cropdetect">2.6.14 Cropdetect</A></H3>
1262
1263 <P><B><U>Description</U></B>:</P>
1264
1265 <P>Calculates necessary cropping parameters. It will print the recommended
1266 <CODE>-vop crop</CODE> parameters to stdout. You can adjust the threshold of
1267 what is detected as border and what as picture with the <CODE>limit</CODE>
1268 parameter. <CODE>limit</CODE> is a number from 0 to 255 that defaults to 24.
1269 At 0 it detects everything as picture, at 255 everything as border.</P>
1270
1271 <P><B><U>Usage</U></B>:</P>
1272
1273 <P><CODE>&nbsp;&nbsp;-vop cropdetect[=limit]</CODE></P>
1274
1275
1276 <H3><A NAME="filters_rectangle">2.6.15 Rectangle</A></H3>
1277
1278 <P><B><U>Description</U></B>:</P>
1279
1280 <P>Draws a rectangle of the requested width and height at the designated
1281 coordinates over the image. Useful to get visual feedback for the parameters
1282 of <CODE>-vop crop</CODE> before applying them.</P>
1283
1284 <P><B><U>Usage</U></B>:</P>
1285
1286 <P><CODE>&nbsp;&nbsp;-vop rectangle[=width:height:x:y]</CODE></P>
1287 1043
1288 1044
1289 1045
1290 <H1><A NAME="usage">3. Usage</A></H1> 1046 <H1><A NAME="usage">3. Usage</A></H1>
1291 1047