comparison DOCS/en/video.html @ 9644:0fe056bdb135

vop -> vf change, small fixes. The Polish documentation should be checked for correctness.
author jonas
date Sat, 22 Mar 2003 12:02:27 +0000
parents 1992bd6a788e
children 1163cf586d5a
comparison
equal deleted inserted replaced
9643:f1b66e97c3d3 9644:0fe056bdb135
495 </UL> 495 </UL>
496 496
497 <P>The bpp (bits per pixel) value must be set to 4 by hand:<BR> 497 <P>The bpp (bits per pixel) value must be set to 4 by hand:<BR>
498 &nbsp;&nbsp;<CODE>-bpp 4</CODE><BR> 498 &nbsp;&nbsp;<CODE>-bpp 4</CODE><BR>
499 The movie probably must be scaled down to fit in EGA mode:<BR> 499 The movie probably must be scaled down to fit in EGA mode:<BR>
500 &nbsp;&nbsp;<CODE>-vop scale=640:350</CODE> or<BR> 500 &nbsp;&nbsp;<CODE>-vf scale=640:350</CODE> or<BR>
501 &nbsp;&nbsp;<CODE>-vop scale=320:200</CODE><BR> 501 &nbsp;&nbsp;<CODE>-vf scale=320:200</CODE><BR>
502 For that we need fast but bad quality scaling routine:<BR> 502 For that we need fast but bad quality scaling routine:<BR>
503 &nbsp;&nbsp;<CODE>-sws 4</CODE><BR> 503 &nbsp;&nbsp;<CODE>-sws 4</CODE><BR>
504 Maybe automatic aspect correction has to be shut off:<BR> 504 Maybe automatic aspect correction has to be shut off:<BR>
505 &nbsp;&nbsp;<CODE>-noaspect</CODE></P> 505 &nbsp;&nbsp;<CODE>-noaspect</CODE></P>
506 506
507 <P><B>NOTE:</B> according to my experience the best image quality on EGA 507 <P><B>NOTE:</B> according to my experience the best image quality on EGA
508 screens can be achieved by decreasing the brightness a bit: <CODE>-vop 508 screens can be achieved by decreasing the brightness a bit: <CODE>-vf
509 eq=-20:0</CODE>. I also needed to lower the audio samplerate on my box, 509 eq=-20:0</CODE>. I also needed to lower the audio samplerate on my box,
510 because the sound was broken on 44kHz: <CODE>-srate 22050</CODE>.</P> 510 because the sound was broken on 44kHz: <CODE>-srate 22050</CODE>.</P>
511 511
512 <P>You can turn on OSD and subtitles only with the <CODE>expand</CODE> filter, 512 <P>You can turn on OSD and subtitles only with the <CODE>expand</CODE> filter,
513 see the man page for exact parameters.</P> 513 see the man page for exact parameters.</P>
683 683
684 <P>NOTE: the rendering is very CPU intensive, especially when using AA-on-X 684 <P>NOTE: the rendering is very CPU intensive, especially when using AA-on-X
685 (using aalib on X), and it's least CPU intensive on standard, 685 (using aalib on X), and it's least CPU intensive on standard,
686 non-framebuffer console. Use SVGATextMode to set up a big textmode, 686 non-framebuffer console. Use SVGATextMode to set up a big textmode,
687 then enjoy! (secondary head Hercules cards rock :)) (but imho you can use 687 then enjoy! (secondary head Hercules cards rock :)) (but imho you can use
688 <CODE>-vop 1bpp</CODE> option to get graphics on hgafb:)</P> 688 <CODE>-vf 1bpp</CODE> option to get graphics on hgafb:)</P>
689 689
690 <P>Use the <CODE>-framedrop</CODE> option if your computer isn't fast enough to 690 <P>Use the <CODE>-framedrop</CODE> option if your computer isn't fast enough to
691 render all frames!</P> 691 render all frames!</P>
692 692
693 <P>Playing on terminal you'll get better speed and quality using the Linux 693 <P>Playing on terminal you'll get better speed and quality using the Linux
1032 <P>Software decoding or transcoding different formats to MPEG1 can be achieved 1032 <P>Software decoding or transcoding different formats to MPEG1 can be achieved
1033 using a command like this:</P> 1033 using a command like this:</P>
1034 1034
1035 <PRE> 1035 <PRE>
1036 mplayer -ao mpegpes -vo mpegpes yourfile.ext 1036 mplayer -ao mpegpes -vo mpegpes yourfile.ext
1037 mplayer -ao mpegpes -vo mpegpes -vop expand yourfile.ext 1037 mplayer -ao mpegpes -vo mpegpes -vf expand yourfile.ext
1038 </PRE> 1038 </PRE>
1039 1039
1040 <P>Note that DVB cards only support heights 288 and 576 for PAL or 240 and 480 1040 <P>Note that DVB cards only support heights 288 and 576 for PAL or 240 and 480
1041 for NTSC. You <B>must</B> rescale for other heights by adding 1041 for NTSC. You <B>must</B> rescale for other heights by adding
1042 <CODE>scale=width:height</CODE> with the width and height you want to the 1042 <CODE>scale=width:height</CODE> with the width and height you want to the
1043 <CODE>-vop</CODE> option. DVB cards accept various widths, like 720, 704, 1043 <CODE>-vf</CODE> option. DVB cards accept various widths, like 720, 704,
1044 640, 512, 480, 352 etc and do hardware scaling in horizontal direction, so 1044 640, 512, 480, 352 etc and do hardware scaling in horizontal direction, so
1045 you do not need to scale horizontally in most cases. For a 512x384 (aspect 1045 you do not need to scale horizontally in most cases. For a 512x384 (aspect
1046 4:3) DivX try:</P> 1046 4:3) DivX try:</P>
1047 1047
1048 <PRE> 1048 <PRE>
1049 mplayer -ao mpegpes -vo mpegpes -vop scale=512:576 1049 mplayer -ao mpegpes -vo mpegpes -vf scale=512:576
1050 </PRE> 1050 </PRE>
1051 1051
1052 <P>If you have a widescreen movie and you do not want to scale it to full height, 1052 <P>If you have a widescreen movie and you do not want to scale it to full height,
1053 you can use the <CODE>expand=w:h</CODE> filter to add black bands. To view a 1053 you can use the <CODE>expand=w:h</CODE> filter to add black bands. To view a
1054 640x384 DivX, try:</P> 1054 640x384 DivX, try:</P>
1055 1055
1056 <PRE> 1056 <PRE>
1057 mplayer -ao mpegpes -vo mpegpes -vop expand=640:576 file.avi 1057 mplayer -ao mpegpes -vo mpegpes -vf expand=640:576 file.avi
1058 </PRE> 1058 </PRE>
1059 1059
1060 <P>If your CPU is too slow for a full size 720x576 DivX, try downscaling:</P> 1060 <P>If your CPU is too slow for a full size 720x576 DivX, try downscaling:</P>
1061 1061
1062 <PRE> 1062 <PRE>
1063 mplayer -ao mpegpes -vo mpegpes -vop scale=352:576 file.avi 1063 mplayer -ao mpegpes -vo mpegpes -vf scale=352:576 file.avi
1064 </PRE> 1064 </PRE>
1065 1065
1066 <P>If speed does not improve, try vertical downscaling, too:</P> 1066 <P>If speed does not improve, try vertical downscaling, too:</P>
1067 1067
1068 <PRE> 1068 <PRE>
1069 mplayer -ao mpegpes -vo mpegpes -vop scale=352:288 file.avi 1069 mplayer -ao mpegpes -vo mpegpes -vf scale=352:288 file.avi
1070 </PRE> 1070 </PRE>
1071 1071
1072 <P>For OSD and subtitles use the OSD feature of the expand filter. So, instead 1072 <P>For OSD and subtitles use the OSD feature of the expand filter. So, instead
1073 of <CODE>expand=w:h</CODE> or <CODE>expand=w:h:x:y</CODE>, use 1073 of <CODE>expand=w:h</CODE> or <CODE>expand=w:h:x:y</CODE>, use
1074 <CODE>expand=w:h:x:y:1</CODE> (the 5th parameter <CODE>:1</CODE> at the end 1074 <CODE>expand=w:h:x:y:1</CODE> (the 5th parameter <CODE>:1</CODE> at the end
1083 <P>To keep the aspect ratio of DivX files and get the optimal scaling parameters 1083 <P>To keep the aspect ratio of DivX files and get the optimal scaling parameters
1084 (hardware horizontal scaling and software vertical scaling while keeping the 1084 (hardware horizontal scaling and software vertical scaling while keeping the
1085 right aspect ratio), use the new dvbscale filter:</P> 1085 right aspect ratio), use the new dvbscale filter:</P>
1086 1086
1087 <PRE> 1087 <PRE>
1088 for 3:4 TV: -vop expand=-1:576:-1:-1:1,scale=-1:0,dvbscale 1088 for 3:4 TV: -vf dvbscale,scale=-1:0,expand=-1:576:-1:-1:1
1089 for 16:9 TV: -vop expand=-1:576:-1:-1:1,scale=-1:0,dvbscale=1024 1089 for 16:9 TV: -vf dvbscale=1024,scale=-1:0,expand=-1:576:-1:-1:1
1090 </PRE> 1090 </PRE>
1091 1091
1092 <H4>FUTURE</H4> 1092 <H4>FUTURE</H4>
1093 1093
1094 <P>If you have questions or want to hear feature announcements and take part in 1094 <P>If you have questions or want to hear feature announcements and take part in
1197 rate is below 44100Hz select either 44100Hz or 48000Hz depending on which 1197 rate is below 44100Hz select either 44100Hz or 48000Hz depending on which
1198 one matches closest. I.e. if the movie uses 22050Hz use 44100Hz as 1198 one matches closest. I.e. if the movie uses 22050Hz use 44100Hz as
1199 44100 / 2 = 22050, if it is 24000Hz use 48000Hz as 48000 / 2 = 24000 and so 1199 44100 / 2 = 22050, if it is 24000Hz use 48000Hz as 48000 / 2 = 24000 and so
1200 on. This does not work with digital audio output (<CODE>-ac hwac3</CODE>).</DD> 1200 on. This does not work with digital audio output (<CODE>-ac hwac3</CODE>).</DD>
1201 1201
1202 <DT><CODE>-vop lavc/fame</CODE></DT> 1202 <DT><CODE>-vf lavc/fame</CODE></DT>
1203 <DD><B>(AUTO-INSERTED)</B> To watch non-MPEG content on the em8300 (i.e. DivX or RealVideo) you have 1203 <DD><B>(AUTO-INSERTED)</B> To watch non-MPEG content on the em8300 (i.e. DivX or RealVideo) you have
1204 to specify an MPEG1 video filter such as libavcodec (lavc) or libfame 1204 to specify an MPEG1 video filter such as libavcodec (lavc) or libfame
1205 (fame). At the moment lavc is both faster and gives better image quality, it 1205 (fame). At the moment lavc is both faster and gives better image quality, it
1206 is suggested that you use that unless you have problems with it. See the man 1206 is suggested that you use that unless you have problems with it. See the man
1207 page for further info about <CODE>-vop lavc/fame</CODE>.<BR> 1207 page for further info about <CODE>-vf lavc/fame</CODE>.<BR>
1208 Using lavc is highly recommended. Currently there is no way of setting the 1208 Using lavc is highly recommended. Currently there is no way of setting the
1209 fps of the em8300 which means that it is fixed to 29.97fps. Because of this 1209 fps of the em8300 which means that it is fixed to 29.97fps. Because of this
1210 it is highly recommended that you use <CODE>-vop lavc=&lt;quality&gt;:25</CODE>, 1210 it is highly recommended that you use <CODE>-vf lavc=&lt;quality&gt;:25</CODE>,
1211 especially if you are using prebuffering. Then why 25 and not 29.97? Well, 1211 especially if you are using prebuffering. Then why 25 and not 29.97? Well,
1212 the thing is that when you use 29.97 the picture becomes a bit jumpy. The 1212 the thing is that when you use 29.97 the picture becomes a bit jumpy. The
1213 reason for this is unknown to us. If you set it to somewhere between 25 and 1213 reason for this is unknown to us. If you set it to somewhere between 25 and
1214 27 the picture becomes stable. For now all we can do is accept this for a 1214 27 the picture becomes stable. For now all we can do is accept this for a
1215 fact.</DD> 1215 fact.</DD>
1216 1216
1217 <DT><CODE>-vop expand=-1:-1:-1:-1:1</CODE></DT> 1217 <DT><CODE>-vf expand=-1:-1:-1:-1:1</CODE></DT>
1218 <DD>Although the DXR3 driver can put some OSD onto the MPEG1/2/4 video, 1218 <DD>Although the DXR3 driver can put some OSD onto the MPEG1/2/4 video,
1219 it has much lower quality than MPlayer's traditional OSD, and has several 1219 it has much lower quality than MPlayer's traditional OSD, and has several
1220 refresh problems as well. The command line above will firstly convert the 1220 refresh problems as well. The command line above will firstly convert the
1221 input video to MPEG4 (this is mandatory, sorry), then apply an expand 1221 input video to MPEG4 (this is mandatory, sorry), then apply an expand
1222 filter which won't expand anything (-1: default), but apply the normal OSD 1222 filter which won't expand anything (-1: default), but apply the normal OSD
1271 <CODE>384</CODE> or <CODE>192</CODE>. For performance and quality reasons, 1271 <CODE>384</CODE> or <CODE>192</CODE>. For performance and quality reasons,
1272 I would choose to scale the movie to <CODE>384x204</CODE> using the fast 1272 I would choose to scale the movie to <CODE>384x204</CODE> using the fast
1273 bilinear software scaler. The commandline is</P> 1273 bilinear software scaler. The commandline is</P>
1274 1274
1275 <PRE> 1275 <PRE>
1276 mplayer -vo zr -sws 0 -vop scale=384:204 movie.avi 1276 mplayer -vo zr -sws 0 -vf scale=384:204 movie.avi
1277 </PRE> 1277 </PRE>
1278 1278
1279 <P>Cropping can be done by the <CODE>crop</CODE> filter and by 1279 <P>Cropping can be done by the <CODE>crop</CODE> filter and by
1280 this driver itself. Suppose that a movie is too wide for display on your 1280 this driver itself. Suppose that a movie is too wide for display on your
1281 Buz and that you want to use <CODE>-zrcrop</CODE> to make the movie less 1281 Buz and that you want to use <CODE>-zrcrop</CODE> to make the movie less
1286 </PRE> 1286 </PRE>
1287 1287
1288 <P>if you want to use the <CODE>crop</CODE> filter, you would do</P> 1288 <P>if you want to use the <CODE>crop</CODE> filter, you would do</P>
1289 1289
1290 <PRE> 1290 <PRE>
1291 mplayer -vo zr -vop crop=720:320:80:0 benhur.avi 1291 mplayer -vo zr -vf crop=720:320:80:0 benhur.avi
1292 </PRE> 1292 </PRE>
1293 1293
1294 <P>Extra occurances of <CODE>-zrcrop</CODE> invoke <I>cinerama</I> mode, i.e. 1294 <P>Extra occurances of <CODE>-zrcrop</CODE> invoke <I>cinerama</I> mode, i.e.
1295 you can distribute the movie over several TV's or beamers to create a larger 1295 you can distribute the movie over several TV's or beamers to create a larger
1296 screen. Suppose you have two beamers. The left one is connected to your Buz 1296 screen. Suppose you have two beamers. The left one is connected to your Buz