diff --git a/DOCS/cd-dvd.html b/DOCS/cd-dvd.html index 0429dbb5ba..e5cd561274 100644 --- a/DOCS/cd-dvd.html +++ b/DOCS/cd-dvd.html @@ -19,7 +19,7 @@ make you consider changing the speed of a CD-ROM drive:
The most important ones above all:
If you have a Win32 codec not listed here which is not supported yet, please read the -codec importing HOWTO and help us add support -for it!
+If you have a Win32 codec not listed here which is not supported yet, please + read the codec importing HOWTO and help us add support + for it!
-This section contains information about the DivX4 codec of -Project Mayo. Their first available alpha version was OpenDivX 4.0 -alpha 47 and 48. Support for this was included in MPlayer in the past, -and built by default. We also used its postprocessing code to optionally -enhance visual quality of MPEG1/2 movies. Now we use our own, for all file -types.
+This section contains information about the DivX4 and DivX5 codecs of + Project Mayo. Their first available + alpha version was OpenDivX 4.0 alpha 47 and 48. Support for this was included + in MPlayer in the past, and built by default. We also used its + postprocessing code to optionally enhance visual quality of MPEG1/2 movies. + Now we use our own, for all file types.
-The new generation of this codec is called DivX4Linux and can even decode -movies made with the infamous DivX codec! In addition it is much faster than the -native Win32 DivX DLLs but slower than libavcodec. -Hence its usage as a decoder is DISCOURAGED. However, it is useful for -encoding. One disadvantage of this codec is that it is currently closed source.
+The new generation of this codec is called DivX4 and can even decode + movies made with the infamous DivX codec! In addition it is much faster than + the native Win32 DivX DLLs but slower than libavcodec. Hence its usage as a + decoder is DISCOURAGED. However, it is useful for encoding. One + disadvantage of this codec is that it is currently closed source.
The codec can be downloaded from one of the following URLs:
http://avifile.sourceforge.net
- http://divx.com
Unpack it, and run ./install.sh
as root.
Note: Do not forget adding /usr/local/lib
to your
-/etc/ld.so.conf
and running ldconfig
!
/etc/ld.so.conf
and running ldconfig
!
MPlayer autodetects DivX4/DivX5 if it is properly installed, just -compile as usual. If it does not detect it, you did not install or configure -it correctly.
+ compile as usual. If it does not detect it, you did not install or configure + it correctly.DivX4Linux works in two modes:
@@ -80,11 +82,11 @@ conversion via libvo. (FAST, RECOMMENDED!) In this mode you can use YUY2/UYVY, too. (SLOW) -The -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 less
-bandwidth on the bus. For packed YUV modes (YUY2, UYVY) use the -vc divx4
-method. For RGB modes the speed is the same, differing at best
-according to your current color depth.
The -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
+ less bandwidth on the bus. For packed YUV modes (YUY2, UYVY) use the
+ -vc divx4
method. For RGB modes the speed is the same, differing
+ at best according to your current color depth.
Note: If your -vo
driver supports direct rendering, then
-vc divx4
may be faster or even the fastest solution.
2.2.1.2 FFmpeg DivX/libavcodec
-Beginning with version 0.4.2, -FFmpeg contains an -open source DivX codec, which is compatible with traditional DivX. -MPlayer supports this codec, making it possible to watch -DivX/DivX4/DivX5/MP41/MP42 movies on non-x86 platforms. Furthermore it -offers higher decoding speed than the Win32 codecs or the original -DivX4 library!
+FFmpeg contains an + opensource codec package, which is capable of decoding video streams + encoded with + H263/MJPEG/RV10/DivX3/DivX4/DivX5/MP41/MP42/WMV1 + codecs. Not only some of them can be encoded with, but it also offers higher + speed than the Win32 codecs or the ProjectMayo DivX4/5 library!
-It also contains a lot of nice codecs, such as RealVideo 1.0, WMV7, - MJPEG, h263, h263+, etc.
+It contains a lot of nice codecs, especially important are the MPEG4 + variants: + DivX 3, DivX 4, DivX 5, Windows Media Video 7 (WMV1)
-If you use an MPlayer release you have libavcodec right in the package, -just build as usual. If you use MPlayer from CVS you have to extract -libavcodec from the FFmpeg CVS tree as FFmpeg 0.4.5 does not work with -MPlayer. In order to achieve this do:
+If you use an MPlayer release you have libavcodec right in the + package, just build as usual. If you use MPlayer from CVS you have to + extract libavcodec from the FFmpeg CVS tree as FFmpeg 0.4.5 does not + work with MPlayer. In order to achieve this do:
cvs -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg login
Note: MPlayer from CVS does contain a libavcodec -subdirectory, but it does NOT contain the source for libavcodec! -You must follow the steps above to obtain the source for this library.
+ subdirectory, but it does NOT contain the source for libavcodec! + You must follow the steps above to obtain the source for this library.With FFmpeg and my Matrox G400, I can view even the highest resolution DivX movies without dropped frames on my K6/2 500.
@@ -129,15 +131,15 @@ You must follow the steps above to obtain the source for this library.Foreword:
-Be advised that the XAnim binary codecs are packaged with a piece of text
-claiming to be a legally binding software license which, besides other
-restrictions, forbids the user to use the codecs in conjunction with any
-program other than XAnim. However, the XAnim author has yet to bring legal
-action against anyone for codec-related issues.
+ Be advised that the XAnim binary codecs are packaged with a piece of text
+ claiming to be a legally binding software license which, besides other
+ restrictions, forbids the user to use the codecs in conjunction with any
+ program other than XAnim. However, the XAnim author has yet to bring legal
+ action against anyone for codec-related issues.
MPlayer is capable of employing the XAnim codecs for decoding. Follow -the instructions to enable them:
+ the instructions to enable them:XAnim is video codec family number 10, so you may want to use the -vfm 10
-option to tell MPlayer to use them if possible.
Tested codecs include: Indeo 3.2, 4.1, 5.0, CVID, 3ivX, h263.
@@ -164,39 +166,38 @@ option to tell MPlayer to use them if possible.MPlayer can play Vivo (1.0 and 2.0) videos. The most suitable codec
-for 1.0 files is FFmpeg's H263 decoder, you can use it with the -vc
-ffh263
option (default) (requires up-to-date libavcodec). For 2.0 files, use
-the ivvideo.dll
Win32 DLL file (from here),
-and install it under /usr/lib/win32
or wherever you store the
-Win32 codecs. This latter codec does not support YV12 nor YUY2 only BGR modes,
-restricting it to the X11 and OpenGL outputs. Hopefully ffh263 will support
-VIVO 2.0 files in the future.
-vc
+ ffh263
option (default) (requires up-to-date libavcodec). For 2.0
+ files, use the ivvideo.dll
Win32 DLL file (from
+ here),
+ and install it under /usr/lib/win32
or wherever you store the
+ Win32 codecs. This latter codec does not support YV12 nor YUY2 only BGR
+ modes, restricting it to the X11 and OpenGL outputs. Hopefully ffh263 will
+ support VIVO 2.0 files in the future.
-MPEG1 and MPEG2 are decoded by the multiplatform native libmpeg2 library, -whose source code is included in MPlayer. -We handle buggy MPEG 1/2 video files by catching sig11 (segmentation fault), -and quickly reinitializing the codec, continuing exactly from where the failure -occurred. -This recovery technique has no measurable speed penalty.
+MPEG1 and MPEG2 are decoded by the multiplatform native libmpeg2 + library, whose source code is included in MPlayer. We handle buggy + MPEG 1/2 video files by catching sig11 (segmentation fault), and quickly + reinitializing the codec, continuing exactly from where the failure occurred. + This recovery technique has no measurable speed penalty.
This is a very old and very bad codec from Microsoft. In the past it was
-decoded with the msvidc32.dll
Win32 codec, now we have our own
-open source implementation (by Mike
-Melanson).
msvidc32.dll
Win32 codec, now we have our own
+ open source implementation (by Mike
+ Melanson).
MPlayer uses its own open source, multiplatform Cinepak decoder by -default. It supports YUV outputs, so that hardware scaling is possible if the -video output driver permits it.
+ default. It supports YUV outputs, so that hardware scaling is possible if the + video output driver permits it. @@ -210,12 +211,10 @@ video output driver permits it.It is recommended to download and install RealPlayer8 or RealONE, because
MPlayer can use their libraries to decode files with RealVideo 2.0 or
- RealVideo 3.0 video. You may also just take the RealPlayer libraries from a
- full installation and put them in a suitable directory like
- /usr/lib/real
or $LIBDIR/real
. The MPlayer
- configure script should detect the RealPlayer libraries there or in the
- standard locations of a full installation. If it does not, tell configure
- where to look with the --with-reallibdir
switch.
--with-reallibdir
switch.
Note: RealPlayer libraries currently only work with Linux, FreeBSD, NetBSD and Cygwin on the x86 platform!
@@ -285,14 +284,16 @@ video output driver permits it.The most important audio codecs above all:
This is the default decoder used for files with AC3 audio.
-The AC3 decoder can create audio output mixes for 2, 4, or 6 -speakers. When configured for 6 speakers, this decoder provides -separate output of all the AC3 channels to the sound driver, -allowing for full "surround sound" experience without the external AC3 -decoder required to use the hwac3 codec.
+The AC3 decoder can create audio output mixes for 2, 4, or 6 speakers. When + configured for 6 speakers, this decoder provides separate output of all the + AC3 channels to the sound driver, allowing for full "surround sound" + experience without the external AC3 decoder required to use the hwac3 + codec.
-Use the -channels
option to select the number of output channels.
-Use -channels 2
for a stereo downmix. For a 4 channel downmix (Left
-Front, Right Front, Left Surround and Right Surround outputs), use
--channels 4
. In this case, any center channel will be mixed
-equally to the front channels. -channels 6
will output all the AC3
-channels as they are encoded - in the order Left, Right, Left Surround, Right
-Surround, Center and LFE.
Use the -channels
option to select the number of output
+ channels. Use -channels 2
for a stereo downmix. For a 4
+ channel downmix (Left Front, Right Front, Left Surround and Right Surround
+ outputs), use -channels 4
. In this case, any center channel will
+ be mixed equally to the front channels. -channels 6
will output
+ all the AC3 channels as they are encoded - in the order Left, Right, Left
+ Surround, Right Surround, Center and LFE.
The default number of output channels is 2.
-To use more than 2 output channels, you will need to use OSS, and have a sound -card that supports the appropriate number of output channels via the -SNDCTL_DSP_CHANNELS ioctl. An example of a suitable driver is emu10k1 (used by -Soundblaster Live! cards) from August 2001 or newer (ALSA CVS is also supposed to -work).
+To use more than 2 output channels, you will need to use OSS, and have a + sound card that supports the appropriate number of output channels via the + SNDCTL_DSP_CHANNELS ioctl. An example of a suitable driver is emu10k1 (used + by Soundblaster Live! cards) from August 2001 or newer (ALSA CVS is also + supposed to work).
-You need an AC3 capable sound card, with digital out (SP/DIF). The
-card's driver must properly support the AFMT_AC3 format (C-Media does).
-Connect your AC3 decoder to the SP/DIF output, and use the -ac hwac3
-option. It is experimental but known to work with C-Media cards and Soundblaster
-Live! + ALSA (but not OSS) drivers.
You need an AC3 capable sound card, with digital out (SP/DIF). The card's
+ driver must properly support the AFMT_AC3 format (C-Media does). Connect
+ your AC3 decoder to the SP/DIF output, and use the -ac hwac3
+ option. It is experimental but known to work with C-Media cards and
+ Soundblaster Live! + ALSA (but not OSS) drivers.
libmad is a multiplatform MPEG audio -decoding library. It does not handle broken files well, and it sometimes has -problems with seeking.
+libmad is a multiplatform MPEG + audio decoding library. It does not handle broken files well, and it + sometimes has problems with seeking.
To enable support, compile with the --enable-mad
configure
-option.
The audio codec used in VIVO files depends on whether it is a VIVO/1.0 or
-VIVO/2.0 file. VIVO/1.0 files have g.723 audio, and VIVO/2.0 files
-have Vivo Siren audio. Both are supported. You can grab the g.723/Siren
-Win32 DLL from
-here,
-then copy it into the /usr/lib/win32
directory.
/usr/lib/win32
directory.
-MPlayer supports decoding all versions of RealAudio:
+MPlayer supports decoding nearly all versions of RealAudio:
On how to install RealPlayer libraries, see the RealMedia file format section.
diff --git a/DOCS/documentation.html b/DOCS/documentation.html index d5faf6c726..761319e37e 100644 --- a/DOCS/documentation.html +++ b/DOCS/documentation.html @@ -339,12 +339,11 @@ library at all!). The another big feature of mplayer is the wide range of supported output drivers. It works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib, DirectFB, but you can use GGI and SDL (and this way all their drivers) and some lowlevel card-specific drivers (for Matrox, 3Dfx and Radeon, -Mach64, Permedia3), too! Most +Mach64, Permedia3) too! Most of them supports software or hardware scaling, so you can enjoy movies in fullscreen. MPlayer supports displaying through some hardware MPEG decoder boards, such as the DVB and - DXR3/Hollywood+! And what about the -nice big antialiased +DXR3/Hollywood+! And what about the nice big antialiased shaded subtitles (10 supported types!!!) with european/ISO 8859-1,2 (Hungarian, English, Czech, etc), Cyrillic, Korean fonts, and the onscreen display (OSD)? @@ -405,7 +404,7 @@ too. So I've decided to write/modify one... MOV/VIVO/RM/FLI/NUV fileformats support, native CRAM, Cinepak, ADPCM codecs, and support for XAnim's binary codecs; DVD subtitles support, first release of MEncoder, TV grabbing, cache, liba52, countless fixes.libvorbis
properly. Use deb/rpm packages if available, or
@@ -528,7 +532,6 @@ movies are best played with MPlayer's own Cinepak decoder!VIDEO CARDS
@@ -545,8 +548,8 @@ their memory, with small CPU usage (zooming doesn't increase it!), thus you get a nice and very fast fullscreen playing.Non-YUV cards
-
-Fullscreen playing can be achieved by either zooming
-by software (use the option -zoom, but i warn you: this is slooow!),
-or changing to a smaller video mode, for
-example to 352x288. If you don't have YUV acceleration, this latter method is
-the recommended one. Throughout MPlayer, this behavior can
-be switched on by using the -vm
option and with
-the following drivers:
+
Fullscreen playing can be achieved by either zooming by software (use
+ the option -zoom
or -vop
+ scale
, but I warn you: this is SLOW!), or changing to a smaller
+ video mode, for example to 352x288. If you don't have YUV acceleration, this
+ latter method is the recommended one. Throughout MPlayer, this
+ behavior can be switched on by using the -vm
option and with
+ the following drivers:
Some cards:
+ +-bpp 8
.SOUND CARDS
FEATURES
/proc
filesystem.
Use this command to enable RTC for normal users:
- echo 1024 > /proc/sys/dev/rtc/max-user-freq
+ echo 1024 > /proc/sys/dev/rtc/max-user-freq
drivers/char/rtc.c
and recompile your kernel. Find the
@@ -703,9 +735,8 @@ encode movies with MPlayer, read the TV input section.<
Then build MPlayer:
@@ -716,29 +747,30 @@ multiuser system! It's a clear way for everyone to gain root.At this point, MPlayer is ready to use. The directory
-$PREFIX/share/mplayer
contains the codecs.conf
-file, which is used to tell the program all the codecs and their capabilities.
-This file should always be kept uptodate together with the main binary!
-Check if you have codecs.conf in your home directory (~/.mplayer/codecs.conf)
-left from old MPlayer versions, and remove it!
$PREFIX/share/mplayer
contains the codecs.conf
+ file, which is used to tell the program all the codecs and their
+ capabilities. This file should always be kept uptodate together with the
+ main binary!Debian users can build a .deb package for themselves, it's very
-simple. Just exec fakeroot debian/rules binary
in MPlayer's
-root dir. Detailed instructions can be found here.
fakeroot debian/rules binary
in
+ MPlayer's root dir. Detailed instructions can be found
+ here.
ALWAYS browse the output of ./configure
, and the
-configure.log
file, they contain information about what will be
-built, and what will not. You may also want to view config.h
and
-config.mak
files.
-If you have some libraries installed, but not detected by ./configure
,
-then check if you also have the proper header files (usually the -dev packages)
-and their version matches. The configure.log
file usually tells
-you what is missing.
configure.log
file, they contain information about what will be
+ built, and what will not. You may also want to view config.h
and
+ config.mak
files../configure
, then check if you also have the proper header files
+ (usually the -dev packages) and their version matches. The
+ configure.log
file usually tells you what is missing.
-Though not mandatory, the fonts should be installed in order to gain
-OSD, and subtitle functionality. Download mp-arial-iso-8859-*.zip
-and/or optional (if exists) language updates. It's VERY RECOMMENDED to check the
-subtitle and OSD section for details.
Though not mandatory, the fonts should be installed in order to gain OSD,
+ and subtitle functionality. Download mp-arial-iso-8859-*.zip
+ and/or optional (if exists) language updates. It's VERY RECOMMENDED to check
+ section 1.5 for details.
mkdir ~/.mplayer/font @@ -751,86 +783,94 @@ and/or optional (if exists) language updates. It's VERY RECOMMENDED to check theThe GUI needs GTK (it isn't GTK, but the panels are). The skins are stored -in PNG format, so gtk, libpng (and their devel stuff) has to be installed. -You can build it by specifying
---enable-gui
during -./configure
. Then, to turn on GUI mode, you either
-gui
optiongui=yes
in your config fileln -s $PREFIX/bin/mplayer $PREFIX/bin/gmplayer
,
- and call gmplayer
instead.
---enable-gui
during
+ ./configure
. Then, to turn on GUI mode, you either
+ -gui
optiongui=yes
in your config fileln -s $PREFIX/bin/mplayer $PREFIX/bin/gmplayer
,
+ and call gmplayer
instead.HINT: use the middle button (on 2 button mice press left and right -simultaneously) for a popup GTK menu, with DVD playing option!
+ simultaneously) for a popup GTK menu, with DVD playing option! -As MPlayer doesn't have a skin included, you have to download them
-if you want to use the GUI. See the download page.
-They should be extracted to the usual system-wide directory ($PREFIX/share/mplayer/Skin
),
-or to $HOME/.mplayer/Skin
. MPlayer by default looks in
-these directories for a default named directory, but you can use the
--skin newskin
option, or the skin=newskin
config file
-directive to use the skin in */Skin/newskin
directory.
As MPlayer doesn't have a skin included, you have to download them if
+ you want to use the GUI. See the
+ download page.
+ They should be extracted to the usual system-wide directory
+ ($PREFIX/share/mplayer/Skin
), or to
+ $HOME/.mplayer/Skin
. MPlayer by default looks in these
+ directories for a directory named default, but you can use the
+ -skin newskin
option, or the skin=newskin
config
+ file directive to use the skin in */Skin/newskin
directory.
-MPlayer can display subtitles along with movie files. Currently the following -formats are supported:
+ MPlayer can display subtitles along with movie files. Currently the following + formats are supported:
-VobSub subtitles
-VobSub subtitles consist of a big (some megabytes) .SUB file, and optional
-.IDX and/or .IFO files.
-Usage: if you have files like sample.sub
, sample.ifo
,
-sample.idx
- you have to pass the -vobsub sample -vobsubid
-<id>
options (optionally with pathname, of course). The
--vobsubid
option is like -sid
for DVDs, you can
-choose between subtitle tracks (languages) with it.
sample.sub
,
+ sample.ifo
, sample.idx
- you have to pass the
+ -vobsub sample -vobsubid
+ <id>
options (optionally with pathname, of course). The
+ -vobsubid
option is like -sid
for DVDs, you can
+ choose between subtitle tracks (languages) with it.
-Other subtitles
-The other formats consist of a single text file containing timing, placement
-and text information.
-Usage: if you have a file like sample.txt
, you have to pass
-the option -sub sample.txt
(optionally with pathname, of course).
+ Other subtitles
+ The other formats consist of a single text file containing timing, placement
+ and text information.
+ Usage: if you have a file like sample.txt
, you have to pass the
+ option -sub sample.txt
(optionally with pathname, of course).
-Adjusting subtitle timing and placement
-
--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>
: 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.
-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 the subtitle file are different.
-Please note that the MicroDVD subtitle format uses absolute frame numbers for its
-timing, and therefore the -subfps
option cannot be used with this format. As
-MPlayer has no way to guess the frame rate of the subtitle file, you have to manually
-convert the frame rate. There is a little perl script in the contrib
directory of
-the MPlayer FTP site to do this conversion for you.
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
+ the subtitle file are different.
Please note that the MicroDVD subtitle
+ format uses absolute frame numbers for its timing, and therefore the
+ -subfps
option cannot be used with this format. As
+ MPlayer has no way to guess the frame rate of the subtitle file, you
+ have to manually convert the frame rate. There is a little perl script in the
+ contrib
directory of the MPlayer FTP site to do this conversion
+ for you.
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 (from -DOCS/tech/mpsub.sub): +
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 + (from + DOCS/tech/mpsub.sub):
@@ -847,64 +887,68 @@ in a galaxy far away...
Naboo was under an attack.
So you see, the main goal was to make subtitle editing/timing/joining/cutting easy. And,
-if you - say - get an SSA subtitle but it's badly timed/delayed to your
-version of the movie, you simply do a mplayer dummy.avi -sub source.ssa
--dumpmpsub
. A dump.mpsub
file will be created in the
-current directory, which will contain the source subtitle's text, but in
-MPsub format. Then you can freely add/subtract seconds to/from the
-subtitle.
So you see, the main goal was to make subtitle
+ editing/timing/joining/cutting easy. And, if you - say - get an SSA
+ subtitle but it's badly timed/delayed to your version of the movie, you
+ simply do a mplayer dummy.avi -sub source.ssa -dumpmpsub
.
+ A dump.mpsub
file will be created in the current directory,
+ which will contain the source subtitle's text, but in MPsub format.
+ Then you can freely add/subtract seconds to/from the subtitle.
Subtitles are displayed with a technique called 'OSD', On Screen Display. -OSD is used to display current time, volume bar, seek bar etc.
+Subtitles are displayed with a technique called 'OSD', On Screen + Display. OSD is used to display current time, volume bar, seek bar + etc.
INSTALLING OSD and SUB
You need an MPlayer font package to be able to use OSD/SUB feature. -There are many ways to get it:
+ There are many ways to get it: +-utf8
+ option or just name the subtitles file <video_name>.utf and have it
+ in the same dir as the video file. Recoding from different codepages to
+ utf8 could be done by using konwert (Debian) or iconv (Red Hat)
+ programs.After that, UNZIP the file you downloaded to ~/.mplayer
or
-$PREFIX/share/mplayer
. Then rename or symlink one of them to
-font
(like: ln -s ~/.mplayer/arial-24
-~/.mplayer/font
). Now you have to see a timer at the upper left corner
-of the movie (switch it off with the "o" key).
$PREFIX/share/mplayer
. Then rename or symlink one of them to
+ font
(like: ln -s ~/.mplayer/arial-24
+ ~/.mplayer/font
). Now you have to see a timer at the upper left corner
+ of the movie (switch it off with the "o" key).
OSD has 3 states: (switch with 'o')
+You can change default behaviour by setting osdlevel=
variable in config file.
You can change default behaviour by setting osdlevel=
variable
+ in config file.
-Note:
-If you have a TV card with an external audio device and get only a black
-screen, although input works with xawtv or similar, then try to use the
--noaudio
option. For the example above this would be:
- mplayer -tv on:noaudio:driver=v4l:width=640:height=480:outfmt=i420 -vc rawi420 -vo xv
+ Note:
+ If you have a TV card with an external audio device and get only a black
+ screen, although input works with xawtv or similar, then try to use the
+ -noaudio
option. For the example above this would be:
+ mplayer -tv on:noaudio:driver=v4l:width=640:height=480:outfmt=i420 -vc rawi420 -vo xv
Description:
-Draws a rectangle of the requested width and height at the designated +
Draws a white rectangle of the requested width and height at the designated
coordinates over the image. Useful to get visual feedback for the parameters
of -vop crop
before applying them.
If you don't like the standard location for the lirc-config file (~/.lircrc) -use the -lircconf <filename> switch to specify another file.
+ use the -lircconf <filename> switch to specify another file. @@ -1604,17 +1648,18 @@ use the -lircconf <filename> switch to specify another file.MPlayer can play files from network, using the HTTP or MMS protocol.
-Playing goes by simply using adding the URL to the command line. MPlayer -also honors the http_proxy environment variable, and uses proxy if available. -Proxy usage can also be forced:
+Playing goes by simply using adding the URL to the command line. + MPlayer also honors the http_proxy environment variable, and uses + proxy if available. Proxy usage can also be forced:
mplayer http_proxy://proxy.micorsops.com:3128/http://micorsops.com:80/stream.asf
MPlayer can read from stdin (NOT named pipes). This can be for example -used to play from FTP:
+ used to play from FTP: + wget ftp://micorsops.com/something.avi -O - | mplayer -
Note: It is recommended to enable the cache when playing from the network:
+Note: it's also recommended to enable CACHE when playback from network:
wget ftp://micorsops.com/something.avi -O - | mplayer -cache 8192 -
To build the package, get the cvs version, or .tgz and uncompress it, -and cd into programs directory:
+ and cd into programs directory:cd main @@ -1639,7 +1684,7 @@ and cd into programs directory:
(... mplayer detects hardware/software, builds itself and.. ) -dpkg-deb: building package `mplayer' in `../mplayer_0.90-1_i386.deb'.
+ dpkg-deb: building package `mplayer' in `../mplayer_0.90-1_i386.deb'.And now just become root, and:
@@ -1662,15 +1707,15 @@ dpkg-deb: building package `mplayer' in `../mplayer_0.90-1_i386.deb'.To build the package you will need GNU make (gmake, /usr/ports/devel/gmake), -native BSD make will not work.
+ native BSD make will not work.To run MPlayer you will need to re-compile the kernel with -"options USER_LDT" (unless you are running -CURRENT, where this is default). -If you have a CPU with SSE also use "options CPU_ENABLE_SSE" to use it -(FreeBSD-STABLE required, or use kernel patches).
+ "options USER_LDT" (unless you are running -CURRENT, where this is default). + If you have a CPU with SSE also use "options CPU_ENABLE_SSE" to use it + (FreeBSD-STABLE required, or use kernel patches).If MPlayer complains about "CD-ROM Device '/dev/cdrom' not found!" make a
-symbolic link: ln -s /dev/(your_cdrom_device) /dev/cdrom
ln -s /dev/(your_cdrom_device) /dev/cdrom
There's no DVD support for FreeBSD yet.
@@ -1679,22 +1724,22 @@ symbolic link:ln -s /dev/(your_cdrom_device) /dev/cdrom
MPlayer should work on Solaris 2.6 or newer.
AVI file playback works best on Solaris x86, because you have the -option to use the win32 codecs on the x86 platform, or can use MMX/MMX2/3DNow/etc -instructions for MP3/DivX/DVD/whatever. On Solaris SPARC, -you'll find quite a few AVI files with non working video and/or -audio playback, because the video/audio codecs using the Win32 DLLs -are not available. However, DivX/OpenDivX movies should work, -when using libavcodec.
+ option to use the win32 codecs on the x86 platform, or can use + MMX/MMX2/3DNow/etc instructions for MP3/DivX/DVD/whatever. On Colaris SPARC, + you'll find quite a few AVI files with non working video and/or audio + playback, because the video/audio codecs using the Win32 DLLs are not + available. However, DivX/OpenDivX movies should work, when using + libavcodec.On UltraSPARCs, MPlayer takes advantage of their VIS -extensions (equivalent to MMX), currently only in libmpeg2, -libvo and libavcodec, but not in mp3lib. You can watch a VOB file -on a 400MHz CPU. You'll need mLib installed.
+ extensions (equivalent to MMX), currently only in libmpeg2, + libvo and libavcodec, but not in mp3lib. You can watch a VOB + file on a 400MHz CPU. You'll need + mLib installed.To build the package you will need GNU make (gmake, /opt/sfw/gmake), native -Solaris make will not work. Typical error you get when building with Solaris' -make instead of GNU make:
+ Solaris make will not work. Typical error you get when building with Solaris' + make instead of GNU make:% /usr/ccs/bin/make @@ -1702,21 +1747,20 @@ make instead of GNU make:
On Solaris SPARC, you need the GNU C/C++ Compiler; it does not matter -if GNU C/C++ compiler is configured with or without the GNU assembler.
+ if GNU C/C++ compiler is configured with or without the GNU assembler. -On Solaris x86, you need the GNU assembler and the GNU C/C++
-compiler, configured to use the GNU assembler! The mplayer code on
-the x86 platform makes heavy use of MMX, SSE and 3DNOW!
-instructions that cannot be compiled using Sun's assembler
-/usr/ccs/bin/as
.
On Solaris x86, you need the GNU assembler and the GNU C/C++ compiler,
+ configured to use the GNU assembler! The mplayer code on the x86 platform
+ makes heavy use of MMX, SSE and 3DNOW! instructions that cannot be compiled
+ using Sun's assembler /usr/ccs/bin/as
.
The configure script tries to find out, which assembler program is -used by your "gcc" command (in case the autodetection fails, use -the "--as=/whereever/you/have/installed/gnu-as" option to tell the -configure script where it can find GNU "as" on your system).
+The configure script tries to find out, which assembler program is used by
+ your "gcc" command (in case the autodetection fails, use the
+ --as=/whereever/you/have/installed/gnu-as
option to tell the
+ configure script where it can find GNU "as" on your system).
Error message from configure on a Solaris x86 system using GCC -without GNU assembler:
+ without GNU assembler:% configure @@ -1728,7 +1772,7 @@ without GNU assembler:(Solution: Install and use a gcc configured with "--with-as=gas")
Typical error you get when building with a GNU C compiler that does -not use GNU as:
+ not use GNU as:% gmake @@ -1742,22 +1786,23 @@ not use GNU as:For DVD support you must have the patched libcss installed. Patch: -http://www.tools.de/solaris/mplayer/.
+ http://www.tools.de/solaris/mplayer/.Due to two bugs in Solaris 8 x86, you cannot reliably play DVDs using a -capacity >4GB:
+ capacity >4GB:
On Solaris with an UltraSPARC CPU, you can get some extra speed by @@ -1782,7 +1827,7 @@ all data is accessed modulo 4GB
Reported working. You'll probably have to use the SGI ao driver. -Anyone has closer info?
+ Anyone has closer info? @@ -1798,31 +1843,31 @@ Anyone has closer info?To build the package you will need GNU make (gmake, -/usr/ports/devel/gmake), native BSD make will not work, and a recent -binutils (including objcopy).
+ /usr/ports/devel/gmake), native BSD make will not work, and a recent + binutils (including objcopy). -Due to limitations in different versions of gas (relocation vs mmx),
-you'll need to compile in two steps: First make sure that the
-non-native as is first in PATH and do a 'gmake -k
', then make sure
-that the native version is used and do 'gmake
'.
Due to limitations in different versions of gas (relocation vs mmx), you'll
+ need to compile in two steps: First make sure that the non-native as is first
+ in PATH and do a 'gmake -k
', then make sure that the native
+ version is used and do 'gmake
'.
To use Win32 DLLs with MPlayer you will need to re-compile the
-kernel with "option USER_LDT
".
option USER_LDT
".
If MPlayer complains about not finding '/dev/cdrom' or
-'/dev/dvd' make a symbolic link, e.g. ln -s
-/dev/rcd0c /dev/dvd
ln -s
+ /dev/rcd0c /dev/dvd
The not so hardcore hackers amongst us might want to use the ports -version (/usr/ports/x11/mplayer).
+ version (/usr/ports/x11/mplayer). - + +You will have to go to the MPlayer directory, and copy or symlink
-etc/cygwin_inttypes.h
to /usr/include/inttypes.h
to
-make MPlayer compile. Otherwise it will complain about missing
-intypes.h
.
etc/cygwin_inttypes.h
to /usr/include/inttypes.h
to
+ make MPlayer compile. Otherwise it will complain about missing
+ intypes.h
.
@@ -2528,7 +2573,7 @@ Send Matrox related questions here
Things related to the hardware decoder card called DVB. (NOT DXR3!)
+Things related to the hardware decoder card called DVB. (NOT dxr3!)
MEncoder (MPlayer's Movie Encoder) is a simple movie encoder, -designed to encode MPlayer-playable movies -(AVI/ASF/OGG/DVD/VCD/VOB/MPG/MOV/VIV/FLI/RM/NUV/NET) to other MPlayer-playable -formats (see below). It can encode with various codecs, like DivX4 (1 or -2 passes), libavcodec, PCM/MP3/VBRMP3 audio. Also has -powerful plugin system for video manipulation.
+ designed to encode MPlayer-playable movies + (AVI/ASF/OGG/DVD/VCD/VOB/MPG/MOV/VIV/FLI/RM/NUV/NET) to other + MPlayer-playable formats (see below). It can encode with various codecs, like + DivX4 (1 or 2 passes), libavcodec, + PCM/MP3/VBR MP3 audio. Also has powerful plugin system + for video manipulation. @@ -52,7 +53,7 @@ powerful plugin system for video manipulation.You are ready. As you probably know, other encoding tools need the -avifile library installed. MEncoder doesn't need it at all.
+ avifile library installed. MEncoder doesn't need it at all. @@ -71,7 +72,7 @@ powerful plugin system for video manipulation.-ofps
option (useful when encoding
- 29.97fps VOB to 24fps AVI)2.4.3.1 Encoding 2 or 3-pass DivX4
-2-pass encoding: the name comes from the fact that this method encodes the file twice. -The first encoding (dubbed pass) creates some temporary files (*.log) with a -size of few megabytes, do not delete them yet (you can delete the AVI). In the second pass, the -2-pass output file is created, using the bitrate data from the temporary files. The resulting -file will have much better image quality. If this is the first time you heard -about this, you should consult some guides available on the Net.
+2-pass encoding: the name comes from the fact that this method + encodes the file twice. The first encoding (dubbed pass) + creates some temporary files (*.log) with a size of few megabytes, do not + delete them yet (you can delete the AVI). In the second pass, the 2-pass + output file is created, using the bitrate data from the temporary files. The + resulting file will have much better image quality. If this is the first time + you heard about this, you should consult some guides available on the + Net.
This example shows how to encode a DVD to a 2-pass DivX4 AVI. Just two
-commands are needed:
- rm frameno.avi
- remove this file, which
- can come from a previous 3-pass encoding (it interferes with current one)
- mencoder -dvd 2 -lavcopts vcodec=mpeg4:more_options
- -o movie.avi -pass 1
- mencoder -dvd 2 -lavcopts vcodec=mpeg4:more_options -o movie.avi -pass 2
rm frameno.avi
- remove this file, which
+ can come from a previous 3-pass encoding (it interferes with current
+ one) mencoder -dvd 2 -lavcopts
+ -vcodec=mpeg4:more_options -o movie.avi -pass 1
+ mencoder -dvd 2 -lavcopts vcodec=mpeg4:more_options
+ -o movie.avi -pass 2
3-pass encoding: this is an extension of 2-pass encoding,
where the audio encoding takes place in a separate pass. This method enables
@@ -143,29 +148,33 @@ commands are needed:
rm frameno.avi
- remove this file,
which can come from a previous 3-pass encoding (it interferes with current
one)
- mencoder -dvd 2 -ovc frameno
- -o frameno.avi
- mencoder -dvd 2
- -lavcopts vcodec=mpeg4:more_options -oac copy -o movie.avi -pass 1
+
- mencoder -dvd 2
- -lavcopts vcodec=mpeg4:more_options -oac copy -o movie.avi -pass 2 mencoder -dvd 2 -ovc frameno
+ -o frameno.avi
+ mencoder -dvd 2
+ -lavcopts vcodec=mpeg4:more_options -oac copy -o movie.avi -pass 1
+ mencoder -dvd 2
+ -lavcopts vcodec=mpeg4:more_options -oac copy -o movie.avi -pass 2
2 or 3-pass encoding using internal libavcodec controller: -Optionally you can use libavcodec's internal 2 or 3-pass mode, it may gives you -better final rate accuracy than using the external, DivX4-inspired 2-pass rate -controler with libavcodec.
+ Optionally you can use libavcodec's internal 2 or 3-pass mode, it may give + you better final rate accuracy than using the external, DivX4-inspired 2-pass + rate controler with libavcodec.rm -f lavc_stats.txt
-mencoder -dvd 2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 (audio-options) -o movie.avi
-mencoder -dvd 2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 (audio-options) -o movie.avi
rm -f frameno.avi lavc_stats.txt
-mencoder -dvd 2 -ovc frameno (audio-options) -o frameno.avi
-mencoder -dvd 2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o movie.avi
-mencoder -dvd 2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac copy -o movie.avi
rm -f lavc_stats.txt
+ mencoder -dvd 2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 (audio-options) -o
+ movie.avi
+ mencoder -dvd 2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 (audio-options) -o
+ movie.avi
rm -f frameno.avi lavc_stats.txt
+ mencoder -dvd 2 -ovc frameno (audio-options) -o frameno.avi
+ mencoder -dvd 2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o
+ movie.avi
+ mencoder -dvd 2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac copy -o
+ movie.avi
Usage:
- mencoder sample-svcd.mpg -lavcopts vcodec=mpeg4:more_options -vop scale=640:480 -sws 2 -o output.avi
mencoder sample-svcd.mpg -lavcopts
+ vcodec=mpeg4:more_options -vop scale=640:480 -sws 2 -o
+ output.avi
@@ -194,26 +205,28 @@ mencoder -dvd 2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac copy -o movie.avi<
copy them. This section is about copying.
-ovc copy
): nice stuff can be done :)-ovc copy
): nice stuff can be
+ done :)-oac copy
): straightforward.
- It is possible to take an external audio file (MP3, AC3, Vorbis) and mux it
- into the output stream. Use the -audiofile <filename>
- option for this.-audiofile <filename>
+ option for this.
2.4.3.4 Fixing AVIs with broken index or interleaving
Easiest thing. We simply copy the video and audio streams, and
-MEncoder generates the index. Of course this cannot fix possible bugs in
-the video and/or audio streams. It also fixes files with broken interleaving,
-thus the -ni
option won't be needed for them anymore.
-ni
option won't be needed for them
+ anymore.
Command: mencoder -idx input.avi -ovc copy -oac copy -o output.avi
-ni
option won't be needed for them anymore.
2.4.3.5 Encoding with the libavcodec codec family
libavcodec provides simple encoding to a -lot of interesting video and audio formats (currently its audio codecs are -unsupported). You can encode to the following codecs:
+ lot of interesting video and audio formats (currently its audio codecs are + unsupported). You can encode to the following codecs:vcodec
config, like: -lavcopts vcodec=msmpeg4
An example, with MJPEG compression:
- mencoder -dvd 2 -o title2.avi -ovc lavc -lavcopts vcodec=mjpeg
mencoder -dvd 2 -o title2.avi -ovc lavc
+ -lavcopts vcodec=mjpeg
2.4.3.6 Encoding from multiple input image files (JPEGs or PNGs)
@@ -288,38 +302,42 @@ unsupported). You can encode to the following codecs:2.4.3.7 Extracting DVD subtitles to Vobsub file
MEncoder is capable of extracting subtitles from a DVD into
-Vobsub fomat files. They consist of a pair of files ending in .idx
-and .sub
and are usually packaged in a single .rar
-archive. MPlayer can play these with the -vobsub
and
--vobsubid
options.
.idx
and .sub
and are usually packaged in a single
+ .rar
archive. MPlayer can play these with the
+ -vobsub
and -vobsubid
options.
You specify the basename (i.e without the .idx
or
-.sub
extension) of the output files with -vobsubout
-and the index for this subtitle in the resulting files with
--vobsuboutindex
.
.sub
extension) of the output files with -vobsubout
+ and the index for this subtitle in the resulting files with
+ -vobsuboutindex
.
If the input is not from a DVD you should use -ifo
to
-indicate the .ifo
file needed to construct the resulting
-.idx
file.
.ifo
file needed to construct the resulting
+ .idx
file.
-If the input is not from a DVD and you do not have the .ifo
file
-you will need to use the -vobsubid
option to let it know what
-language id to put in the .idx
file.
If the input is not from a DVD and you do not have the .ifo
+ file you will need to use the -vobsubid
option to let it know
+ what language id to put in the .idx
file.
Each run will append the running subtitle if the .idx
and
-.sub
files already exist. So you should remove any before starting.
.sub
files already exist. So you should remove any before
+ starting.
Examples
Copying two subtitles from a DVD while doing 3-pass encoding
- rm subtitles.idx subtitles.sub
- mencoder -dvd 1 -vobsubout subtitles -vobsuboutindex 0 -sid 2 -o frameno.avi -ovc frameno
- mencoder -dvd 1 -oac copy -ovc divx4 -pass 1
- mencoder -dvd 1 -oac copy -ovc divx4 -pass 2 -vobsubout subtitles -vobsuboutindex 1 -sid 5
rm subtitles.idx subtitles.sub
mencoder -dvd 1 -vobsubout subtitles -vobsuboutindex 0
+ -sid 2 -o frameno.avi -ovc frameno
mencoder -dvd 1 -oac copy -ovc divx4 -pass 1
mencoder -dvd 1 -oac copy -ovc divx4 -pass 2 -vobsubout
+ subtitles -vobsuboutindex 1 -sid 5
Copying a french subtitle from an MPEG file
- rm subtitles.idx subtitles.sub
- mencoder movie.mpg -ifo movie.ifo -vobsubout subtitles -vobsuboutindex 0 -vobsuboutid fr -sid 1
rm subtitles.idx subtitles.sub
mencoder movie.mpg -ifo movie.ifo -vobsubout subtitles
+ -vobsuboutindex 0 -vobsuboutid fr -sid 1
@@ -468,8 +486,7 @@ language id to put in the .idx
file.
Encoding from tuner (for tuner options see the TV input section!):
mencoder -tv on:driver=v4l:width=640:height=480 <options>
For all available options, check the MEncoder man page! -
+
For all available options, check the MEncoder man page!