# HG changeset patch
# User diego
# Date 1030471567 0
# Node ID 0b70f3dc34ebb4e8ff8227103d73d66984a6ae4b
# Parent 37b0958a1cad6b997242c7642efb9ca9420d24d5
Applied patch by Andras Mohari DivX4Linux works in two modes: The MPlayer is capable of employing the XAnim codecs for decoding. Follow
the instructions to enable them: XAnim is video codec family number 10, so you may want to use the It is currently available only from CVS. Here are the
+ XViD is currently available only from CVS. Here are the
download and installation instructions: It's compiled and usable per default. The Sorenson decoder is compiled and usable per default. Take a deep breath and start searching the registry... Note: If searching fails, try enabling all the checkboxes. You may have
false hits, but you may get lucky... You need a fairly recent system. On Linux, 2.4.x kernels are recommended. There are generally two kind of video cards. One kind (the newer cards) has
hardware scaling and YUV acceleration support, the other cards don't. VobSub subtitles VobSub subtitles consist of a big (some megabytes) .SUB file, and optional
.IDX and/or .IFO files. Other subtitles The other formats consist of a single text file containing timing,
+ placement and text information. Adjusting subtitle timing and placement If you experience a growing delay between the movie and the subtitles when
using a MicroDVD subtitle file, most likely the frame rate of the movie and
@@ -803,6 +812,9 @@
About DVD subtitles, read the DVD section. MPlayer introduces a new subtitle format called MPsub. It was
designed by me (Gabucino). Basically its main feature is being
dynamically time-based (although it has frame-based mode too). Example
@@ -833,7 +845,7 @@
Display. OSD is used to display current time, volume bar, seek bar
etc. You need an MPlayer font package to be able to use OSD/SUB feature.
There are many ways to get it: Hint: Are the colors messed up? Then your tuner cannot display
+
+
+ with
- where it made sense (to me :-)).
* Moved "Developer Cries" into the appendix (as Appendix F)
with s/Flame Wars/Developer Cries/ and
s/In medias res/Developer Cries/.
* Renamed "Appendix X" to "Appendix E".
* Put a "Hint" inside
.
* Converted 3-pass encoding and mga_vid installation
instructions to lists.
* Converted options tables (video eq, SDL, fbdev, VESA, DXR3, TV input,
DivX4Linux, AAlib) to
lists.
* The "sections" for MPsub and INSTALLING OSD are numbered and displayed
in the TOC now.
* Changed the text inside some
tags.
diff -r 37b0958a1cad -r 0b70f3dc34eb DOCS/codecs.html
--- a/DOCS/codecs.html Tue Aug 27 16:17:54 2002 +0000
+++ b/DOCS/codecs.html Tue Aug 27 18:06:07 2002 +0000
@@ -73,15 +73,16 @@
-
+ conversion via libvo. (Fast, recommended!)
+
+
- -vc odivx
- Uses the codec in OpenDivX fashion. In this case it
+
+
-vc odivx
--vc divx4
- Uses the colorspace conversion of the codec.
- In this mode you can use YUY2/UYVY, too. (SLOW) -vc divx4
-vc odivx
method is usually faster, due to the fact that it
transfers image data in YV12 (planar YUV 4:2:0) format, thus requiring much
@@ -142,7 +143,7 @@
+
+
vid_cvid.xa, vid_h263.xa, vid_iv50.xa
.-vfm 10
option to tell MPlayer to use them if possible.Installation:
-
-
@@ -284,9 +283,7 @@
Installation:
-
-2.2.2 Audio codecs
@@ -422,7 +419,7 @@
+
+
regedit
.
Ctrl-f
, disable the first two checkboxes, and enable
the third. Type in the fourcc of the codec (e.g. TM20).
@@ -435,7 +432,7 @@
If not, you are out of luck. Try guessing (e.g. search for TrueMotion).
-Developer Cries
-
-
-
-
+
@@ -422,7 +423,7 @@
SOFTWARE REQUIREMENTS
+Software requirements:
-CODECS
+Codecs:
-VIDEO CARDS
+Video Cards
SOUND CARDS
+Sound cards:
-FEATURES
+Features:
- VobSub subtitles consist of a big (some megabytes) .SUB file, and optional
+VobSub subtitles
+
+
Usage: if you have files like sample.sub
,
sample.ifo
, sample.idx
- you have to pass the
@@ -778,18 +780,25 @@
-vobsubid
option is like -sid
for DVDs, you can
choose between subtitle tracks (languages) with it.
- The other formats consist of a single text file containing timing, placement
- and text information.
+Other subtitles
+
+
Usage: if you have a file like sample.txt
, you have to pass the
option -sub sample.txt
(optionally with pathname, of course).
- -subdelay <sec>
: Delays subtitles by <sec> seconds.
- Can be negative.
- -subfps <rate>
: Specify frame/sec rate of subtitle file
- (float number)
- -subpos <0 - 100>
: Specify the position of subtitles.Adjusting subtitle timing and placement:
+
+
+
-subdelay <sec>
-subfps <rate>
-subpos <0 - 100>
1.4.1 MPlayer's own subtitle format (MPsub)
+
INSTALLING OSD and SUB
+1.4.2 Installing OSD and subtitles
2.5.1 Compilation
-
+
-
-
./configure
will autodetect
kernel headers of v4l stuff and the existence of /dev/video*
entries. If they exist, TV support will be built (see the output of
./configure
).
+ Hint
+ Are the colors messed up? Then your tuner cannot display
in YV12 colorspace. Try I420 (-vc rawi420
) or YUY2, UYVY, RGB32
(-vo sdl
) colorspaces.
- You can specify these with the outfmt=YV12
option, see below.
outfmt=YV12
option, see below.
+
- | on |
- - | Use TV input. | -
- | noaudio |
- - | No sound, thanks. | -
- | driver |
- - | dummy - NULL TV input :) Used for testing only, generates dummy
+
|
-
- | device |
- - | Specify a device other than the default /dev/video0 . |
-
- | input |
- - | Specify from which input of the TV tuner you wish to grab
+ /dev/video0 ).
+
+ device /dev/video0 .input - Prints the available ones during init. |
-
- | freq |
- - | Specify the frequency to set the tuner to (e.g. 511.250). | -
- | outfmt |
- - | Specify the output format the tuner should use to transport images to us
+ Prints the available ones during init.
+
+ freq outfmt -vc rawi420 option, because of a fourcc
- conflict)). |
-
- | width |
- - | width of the output window in pixels | -
- | height |
- - | height of the output window in pixels | -
- | norm |
- - | available: PAL, SECAM, NTSC | -
- | channel |
- - | Set the tuner to the given channel. | -
- | chanlist |
- - | available: us-bcast, us-cable, europe-west, europe-east, etc |
-
width
height
norm
channel
chanlist
us-bcast, us-cable, europe-west, europe-east, etc
<- or -> | seek backward/forward 10 seconds | ||
7 or 8 | adjust saturation |
, and . | previous / next file | ||
m | toggle mute |
h or l | select previous/next channel |
rm frameno.avi |
- remove conflicting temporary file | -
mencoder <file/DVD> -ovc frameno -o
- frameno.avi |
- First pass: an audio-only avi file will be created, containing
- ONLY the requested audio stream. Don't forget -lameopts , if
- you need to set it. If you were encoding a long movie, MEncoder prints
- the recommended bitrate values for 650Mb, 700Mb, and 800Mb destination
- sizes, after this pass finishes. |
-
mencoder <file/DVD> -oac copy -pass 1
- -ovc divx4 -divx4opts br=<bitrate> |
- Second pass: alias the first pass of DivX4 video encoding. - Optionally specify the video bitrate MEncoder printed at the end of the - previous pass. | -
mencoder <file/DVD> -oac copy -pass 2
- -ovc divx4 -divx4opts br=<bitrate> |
- Third pass: alias the second pass of DivX4 video encoding.
- Optionally specify the video bitrate MEncoder printed at the end of the
- previous pass. In this pass, audio from frameno.avi will be
- inserted into the destination file.. and it's all ready! |
-
rm frameno.avi
mencoder <file/DVD> -ovc frameno -o frameno.avi
An audio-only avi file will be created, containing
+ only the requested audio stream. Don't forget -lameopts
,
+ if you need to set it. If you were encoding a long movie, MEncoder
+ prints the recommended bitrate values for 650Mb, 700Mb, and 800Mb
+ destination sizes, after this pass finishes.
mencoder <file/DVD> -oac copy -pass 1
+ -ovc divx4 -divx4opts br=<bitrate>
Alias the first pass of DivX4 video encoding. + Optionally specify the video bitrate MEncoder printed at the end of + the previous pass.
mencoder <file/DVD> -oac copy -pass 2
+ -ovc divx4 -divx4opts br=<bitrate>
Alias the second pass of DivX4 video encoding.
+ Optionally specify the video bitrate MEncoder printed at the end of
+ the previous pass. In this pass, audio from frameno.avi
will
+ be inserted into the destination file.. and it's all ready!
MEncoder decodes the input image(s) with libjpeg
- (when decoding PNGs, it will use libpng).
libjpeg
+ (when decoding PNGs, it will use libpng).MEncoder then feeds the decoded image to the chosen video compressor - (DivX4, Xvid, ffmpeg msmpeg4, etc...). Watch for the PNG decoder, as - currently it can output only to RGB formats, thus can't be used with codecs - that require YUV as input, like DivX4 or ffmpeg's msmpeg4.
+hdparm -u1 /dev/cdrom
(man hdparm
). This is
- generally beneficial and described more detailed in the CD-ROM section.-vo sdl:esd
option to combine both
- sound streams. In fact, the option -vo sdl:esd
could be used
- with ESD even when playing Mplayer alone.On Linux, a 2.4.x kernel is highly recommended. Kernel 2.2 is not tested.
+ +If sound clicks when playing from CD-ROM, turn on IRQ unmasking, e.g.
+ hdparm -u1 /dev/cdrom
(man hdparm
). This is
+ generally beneficial and described more detailed in the CD-ROM section.
Sharing your sound card with another application like XMMS is strongly
+ discouraged! If the other sound application is using ESD, start
+ MPlayer with the -vo sdl:esd
option to combine both
+ sound streams. In fact, the option -vo sdl:esd
could be used
+ with ESD even when playing Mplayer alone.
Feedback to this document is welcome. Please tell us how MPlayer + and your sound card(s) worked together.
There are two major topics which always cause huge dispute and flame on the mplayer-users mailing list. Number one is the topic of the
-The background: The GCC 2.95 series is an official GNU release and version 2.95.3 of GCC is the most bug-free in that series. @@ -74,7 +74,7 @@ use 3.1 instead of 2.96. If you do not want to or cannot use the binary packages, here is how you can compile GCC 3.1 from source:
-gcc-core-3.1.tar.gz
. This includes the
complete C compiler and is sufficient for MPlayer. If you also want
@@ -94,10 +94,10 @@
make bootstrap
make install
This was the second big problem but has been solved as of version
0.90-pre1. MPlayer previously contained source from the OpenDivX project,
diff -r 37b0958a1cad -r 0b70f3dc34eb DOCS/video.html
--- a/DOCS/video.html Tue Aug 27 16:17:54 2002 +0000
+++ b/DOCS/video.html Tue Aug 27 18:06:07 2002 +0000
@@ -40,7 +40,7 @@
01:00.0 VGA compatible controller: Matrox Graphics, Inc.: Unknown device 0525
Memory at d8000000 (32-bit, prefetchable)
dmesg
mga_mem_base = d8000000
SDL video output supports displaying subtitles under the movie, on the (if present) black bar.
-Here are some notes about SDL out in MPlayer.
+There are several command line switches for SDL:
+-vo sdl:name
-ao sdl:name
-noxv
-forcexv
There are several command line switches for SDL: | |||
-vo sdl:name | - specifies sdl video driver to use (i.e.. aalib, dga, x11) | ||
-ao sdl:name | specifies sdl audio driver to use (i.e.. dsp, - esd, arts) | ||
-noxv | disables XVideo hardware acceleration | ||
-forcexv | tries to force XVideo acceleration | ||
SDL Keys: | |||
F | toggles fullscreen/windowed mode | ||
C | cycles available fullscreen modes | ||
W/S | mappings for * and / (mixer control) |
The FBdev output takes some additional parameters above the others:
--fb | - specify the framebuffer device to use (/dev/fb0) | ||
-fbmode | mode name to use (according to /etc/fb.modes) | ||
-fbmodeconfig | config file of modes (default /etc/fb.modes) | ||
-monitor_hfreq | IMPORTANT values, see example.conf | ||
-monitor_vfreq | |||
-monitor_dotclock |
-fb
-fbmode
-fbmodeconfig
-monitor_hfreq
-monitor_vfreq
-monitor_dotclock
example.conf
If you want to change to a specific mode, then use
@@ -580,40 +591,31 @@WARNING: on non-Linux systems, use VIDIX for mga_vid!
-To use it, you first have to compile mga_vid.o:
- - cd drivers
- make
Then create /dev/mga_vid device:
- - mknod /dev/mga_vid c 178 0
and load the driver with
- - insmod mga_vid.o
You should verify the memory size detection using the 'dmesg' command. If - it's bad, use the mga_ram_size option (rmmod mga_vid first), specify card's - memory size in MB:
- - insmod mga_vid.o mga_ram_size=16
To make it load/unload automatically when needed, first insert the following line - at the end of /etc/modules.conf:
- - alias char-major-178 mga_vid
Then copy the mga_vid.o
module to the appropriate place under
- /lib/modules/<kernel version>/somewhere
.
Then run
- - depmod -a
Now you have to (re)compile MPlayer, ./configure will detect /dev/mga_vid - and build the 'mga' driver. Using it from MPlayer goes by '-vo mga' if - you have matroxfb console, or '-vo xmga' under XFree86 3.x.x or 4.x.x.
+Installation:
+cd drivers
+ make
/dev/mga_vid
device:
+ mknod /dev/mga_vid c 178 0
and load the driver with
+insmod mga_vid.o
dmesg
+ command. If it's bad, use the mga_ram_size
option
+ (rmmod mga_vid
first), specify card's memory size in MB:
+ insmod mga_vid.o mga_ram_size=16
/etc/modules.conf
:
+ alias char-major-178 mga_vid
Then copy the mga_vid.o
module to the appropriate place
+ under /lib/modules/<kernel version>/somewhere
.
Then run
+depmod -a
configure
will
+ detect /dev/mga_vid
and build the 'mga' driver. Using it from
+ MPlayer goes by -vo mga
if you have matroxfb console,
+ or -vo xmga
under XFree86 3.x.x or 4.x.x.The mga_vid driver cooperates with Xv.
@@ -674,19 +676,34 @@6
7
a
The following command line options can be used:
-aaosdcolor=V
-aasubcolor=V
where V can be: (0/normal, 1/dark, 2/bold, - 3/bold font, 4/reverse, 5/special)
AAlib itself provides a large sum of options. - Here are some important:
-aadriver
-aaextended
-aaeight
-aahelp
The following command line options can be used:
+-aaosdcolor=V
-aasubcolor=V
where V can be: (0/normal, 1/dark, 2/bold, 3/bold font, 4/reverse, + 5/special)
AAlib itself provides a large sum of options. + Here are some important:
+-aadriver
-aaextended
-aaeight
-aahelp
NOTE: the rendering is very CPU intensive, especially when using AA-on-X (using aalib on X), and it's least CPU intensive on standard, @@ -759,22 +776,33 @@
Don't use this driver with GCC 2.96! It won't work!
-These switches of command line currently are available for VESA: | |||
-vo vesa:opts | - | currently recognized: dga to force dga mode and nodga to
+ Command line options available for VESA: +
| |
-screenw, -screenh, -bpp | force userdefined mode | ||
-x, -y | set userdefined prescaling | ||
-zoom | enables userdefined prescaling | ||
-fs | scales image to fullscreen | ||
-fs -zoom | scales userdefined prescaling to fullscreen | ||
-double | enables - double buffering mode. (Available only in DGA mode). Should be slower of - single buffering, but has no flickering effects. |
-screenw, -screenh, -bpp
-x, -y
-zoom
-fs
-fs -zoom
-double
VIDIX is the abbreviation for VIDeo Interface for
*niX.
VIDIX was designed and introduced as an interface for fast user-space drivers
@@ -920,27 +946,33 @@
by command line arguments. MPlayer recognizes the
following options:
-brightness | - | Adjust BRIGHTNESS of video output. It's not equal to brightness
+
| |
-contrast | - | Adjust CONTRAST of video output. Works in similar manner as - brightness. | |
-saturation |
- Adjust SATURATION of video output. You can get grayscale - output with this option. | ||
-hue |
- Adjust HUE of video signal. You can get colored negative - of image with this option. | ||
-red_intensity |
- Adjust intensity of RED component of video signal. | ||
-green_intensity |
- Adjust intensity of GREEN component of video signal. | ||
-blue_intensity |
- Adjust intensity of BLUE component of video signal. |
-contrast
-saturation
-hue
-red_intensity
-green_intensity
-blue_intensity
Each parameter can accept values from -1000 to +1000.
Default value for each parameter is 0.
-vo dxr3:<noprebuf>:<codec>:<device> | - | Where <noprebuf> specifies turning off prebuffering.
+Usage:+
| |
-ao oss:/dev/em8300_ma-X |
- For audio output, where X is the device number
- (0 if one card). | ||
-ac hwac3 |
- For digital instead of analog audio output. | ||
-vc mpegpes |
- Force hardware acceleration, only works with MPEG1/2. | ||
-aop list=resample:fout=xxxxx |
- If sample rate is below 44100Hz, select either 44100Hz or 48000Hz
+ dxr3:1:avcodec will not.
+
+ -ao oss:/dev/em8300_ma-X X is the device number
+ (0 if one card).-ac hwac3 -vc mpegpes -aop list=resample:fout=xxxxx -ac hwac3 ). |
-ac hwac3
).
+
TVout/matroxset
and type make
. Install
matroxset
into somewhere in your PATH.Yoh. Next task is to make the cursor on tty1 (or whatever) to disappear, and turn off screen blanking. Execute the following commands: