comparison DOCS/video.html @ 7192:f771e685f3b1

Zr documentation updated plus some typos fixed. Patch by rsnel@cube.dyndns.org.
author diego
date Sat, 31 Aug 2002 13:10:29 +0000
parents 8ab4d11353ae
children 60a3b83b73bf
comparison
equal deleted inserted replaced
7191:1eadce15446c 7192:f771e685f3b1
991 991
992 <H4><A NAME="zr">2.3.1.15 Zr</A></H4> 992 <H4><A NAME="zr">2.3.1.15 Zr</A></H4>
993 993
994 <P>This is a display-driver (<CODE>-vo zr</CODE>) for a number of MJPEG 994 <P>This is a display-driver (<CODE>-vo zr</CODE>) for a number of MJPEG
995 capture/playback cards (tested for DC10+ and Buz, and it should work for the 995 capture/playback cards (tested for DC10+ and Buz, and it should work for the
996 LML33, the DC10). The driver works by encoding the frame to jpeg and then 996 LML33 and the original DC10). The driver works by encoding the frame to jpeg
997 sending it to the card. For the jpeg encoding <B>libavcodec</B> is 997 and then sending it to the card. For the jpeg encoding <B>libavcodec</B> is
998 used, and required.</P> 998 used, and required. With the special <I>cinerama</I> mode, you can watch
999 movies in true wide screen provided that you have two beamers and two
1000 MJPEG cards. Depending on resolution and quality settings, this driver
1001 may require a lot of CPU power, remember to specify <CODE>-framedrop</CODE>
1002 if your machine is too slow. Note: My AMD K6-2 350MHz is (with <CODE>
1003 -framedrop</CODE>) quite adequate for watching VCD sized material and
1004 downscaled movies.
999 1005
1000 <P>This driver talks to the kernel driver available at 1006 <P>This driver talks to the kernel driver available at
1001 <A HREF="http://mjpeg.sourceforge.net">http://mjpeg.sourceforge.net</A>, so 1007 <A HREF="http://mjpeg.sourceforge.net">http://mjpeg.sourceforge.net</A>, so
1002 you must get it working first. Then recompile <B>MPlayer</B> with 1008 you must get it working first. The presence of an MJPEG card is autodetected
1003 <CODE>--enable-zr</CODE>.</P> 1009 by the configure script, if autodetection fails, force detection with
1004 1010
1005 Some remarks: 1011 <PRE>
1006 <UL> 1012 ./configure --enable-zr
1007 <LI>don't start or stop XawTV on the playback device during playback, 1013 </PRE>
1008 it will crash your computer. It is, however, fine to <B>FIRST</B> start 1014
1009 XawTV, <B>THEN</B> start <B>MPlayer</B>, wait for <B>MPlayer</B> to finish 1015 <P>The output can be controlled by several options, a long description of the
1010 and <B>THEN</B> stop XawTV.</LI> 1016 options can be found in the man page, a short list of options can be
1011 <LI>this driver adds <CODE>-zr*</CODE> command line options. The explanation 1017 viewed by running
1012 of these options can be viewed with <CODE>-zrhelp</CODE>. It is possible to 1018
1013 crop the input frame (cut borders to make it fit or to enhance performance) 1019 <PRE>
1014 and to do other things.</LI> 1020 mplayer -zrhelp
1015 <LI>the driver takes data in YV12 and YUY2 format, this means that some 1021 </PRE>
1016 codecs won't work. Some old VfW (Video for Windows) codecs, for example, 1022
1017 are incompatible with this driver. The error message that you will see is: 1023 <P>Things like scaling and the OSD (on screen display) are not handled by
1018 <CODE>Sorry, selected video_out device is incompatible with this codec. 1024 this driver but can be done using the video filters. For example,
1019 </CODE></LI> 1025 suppose that you have a movie with a resolution of <CODE>512x272</CODE> and
1020 <LI>OSD is currently not supported, so you won't see 1026 you want to view it fullscreen on your DC10+. There are three main
1021 subtitles.</LI> 1027 possibilities, you may scale the movie to a width of <CODE>768</CODE>,
1022 </UL> 1028 <CODE>384</CODE> or <CODE>192</CODE>. For performance and quality reasons,
1023 1029 I would choose to scale the movie to <CODE>384x204</CODE> using the fast
1030 bilinear software scaler. The commandline is
1031
1032 <PRE>
1033 mplayer -vo zr -sws 0 -vop scale=384:204 movie.avi
1034 </PRE>
1035
1036 <P>Cropping can be done by the <CODE>crop</CODE> filter and by
1037 this driver itself. Suppose that a movie is too wide for display on your
1038 Buz and that you want to use <CODE>-zrcrop</CODE> to make the movie less
1039 wide, the you would issue the following command
1040
1041 <PRE>
1042 mplayer -vo zr -zrcrop 720x320+80+0 benhur.avi
1043 </PRE>
1044
1045 if you want to use the <CODE>crop</CODE> filter, you would do
1046
1047 <PRE>
1048 mplayer -vo zr -vop crop=720:320:80:0 benhur.avi
1049 </PRE>
1050
1051 <P>Extra occurances of <CODE>-zrcrop</CODE> invoke <I>cinerama</I> mode, i.e.
1052 you can distribute the movie over several TV's or beamers to create a larger
1053 screen. Suppose you have two beamers. The left one is connected to your Buz
1054 at <CODE>/dev/video1</CODE> and the right one is connected to your DC10+ at
1055 <CODE>/dev/video0</CODE>. The movie has a resolution of <CODE>704x288</CODE>.
1056 Suppose also that you want the right beamer in black and white and that
1057 the right beamer should have jpeg frames at quality <CODE>10</CODE>,
1058 then you would issue the following command
1059
1060 <PRE>
1061 mplayer -vo zr -zrdev /dev/video0 -zrcrop 352x288+352+0 -zrxdoff 0 -zrbw \
1062 -zrcrop 352x288+0+0 -zrdev /dev/video1 -zrquality 10 movie.avi
1063 </PRE>
1064
1065 <P>You see that the options appearing before the second <CODE>-zrcrop</CODE>
1066 only apply to the DC10+ and that the options after the second
1067 <CODE>-zrcrop</CODE> apply to the Buz. The maximum number of MJPEG cards
1068 participating in <I>cinerama</I> is four, so you can buid a <CODE>2x2</CODE>
1069 vidiwall.</P>
1070
1071 <P>Finally an important remark: Do not start or stop XawTV on the playback
1072 device during playback, it will crash your computer. It is, however, fine to
1073 <B>FIRST</B> start XawTV, <B>THEN</B> start <B>MPlayer</B>, wait for
1074 <B>MPlayer</B> to finish and <B>THEN</B> stop XawTV.</P>
1024 1075
1025 <H4><A NAME="dvb">2.3.1.16 DVB</A></H4> 1076 <H4><A NAME="dvb">2.3.1.16 DVB</A></H4>
1026 1077
1027 <P><B>MPlayer</B> supports cards with the Siemens DVB chipset from vendors like 1078 <P><B>MPlayer</B> supports cards with the Siemens DVB chipset from vendors like
1028 Siemens, Technotrend, Galaxis or Hauppauge. The latest DVB drivers are 1079 Siemens, Technotrend, Galaxis or Hauppauge. The latest DVB drivers are