comparison DOCS/documentation.html @ 1500:526047bdda07

*** empty log message ***
author gabucino
date Mon, 13 Aug 2001 10:38:01 +0000
parents a7a59a391a01
children 60ec209710b6
comparison
equal deleted inserted replaced
1499:c3517acc0497 1500:526047bdda07
199 If you own a Matrox G200/G400/G450 card, then please see the <A HREF="#2.2.1.6">2.2.1.6</A> 199 If you own a Matrox G200/G400/G450 card, then please see the <A HREF="#2.2.1.6">2.2.1.6</A>
200 section in order to gain big speedup. It is important to do these steps 200 section in order to gain big speedup. It is important to do these steps
201 _before_ compiling <B>MPlayer</B>, otherwise no Matrox-specific support will be 201 _before_ compiling <B>MPlayer</B>, otherwise no Matrox-specific support will be
202 built. 202 built.
203 203
204 If you plan to use the ProjectMayo's <B>OpenDivX</B> codec, check the
205 <A HREF="#2.1.2.1">2.1.2.1</A> section before compiling.
206
204 Then build <B>MPlayer</B>: 207 Then build <B>MPlayer</B>:
205 208
206 209
207 ./configure 210 ./configure
208 make 211 make
258 See http://mplayer.sourceforge.net/DOCS/codecs.html for the complete, 261 See http://mplayer.sourceforge.net/DOCS/codecs.html for the complete,
259 daily updated list!!! 262 daily updated list!!!
260 263
261 The most important video codecs: 264 The most important video codecs:
262 - MPEG1 (VCD) and MPEG2 (DVD) video 265 - MPEG1 (VCD) and MPEG2 (DVD) video
263 - DivX, OpenDivX and other MPEG4 variants 266 - DivX, FFmpeg, OpenDivX and other MPEG4 variants
264 - Windows Media Video 7 (WMV1) used in .wmv files 267 - Windows Media Video 7 (WMV1) used in .wmv files
265 - Intel Indeo codecs (3.1,3.2,4.1,5.0) 268 - Intel Indeo codecs (3.1,3.2,4.1,5.0)
266 - MJPEG, ASV2 and other hardware formats 269 - MJPEG, ASV2 and other hardware formats
267 270
268 The most important audio codecs: 271 The most important audio codecs:
305 ldconfig 308 ldconfig
306 cp decore.h /usr/local/include/ 309 cp decore.h /usr/local/include/
307 310
308 311
309 <B>MPlayer</B> autodetects if OpenDivX is (properly) installed, just compile 312 <B>MPlayer</B> autodetects if OpenDivX is (properly) installed, just compile
310 as usual. 313 as usual. If it doesn't detect it, you didn't install it exactly as above,
314 and/or has fucked up config (see last question of 6.1 section).
311 315
312 Using it is a bit tricky. As it conflicts with the old OpenDivX (it's API is 316 Using it is a bit tricky. As it conflicts with the old OpenDivX (it's API is
313 very similar to OpenDivX's), OpenDivX code is disabled, and the OpenDivX 317 very similar to OpenDivX's), OpenDivX code is disabled, and the OpenDivX
314 driver calls this library too. 318 driver calls this library too.
315 319
343 347
344 Beginning with version 0.4.2 , <A HREF="http://ffmpeg.sourceforge.net">ffmpeg</A> contains an <B>opensource</B> DivX codec, 348 Beginning with version 0.4.2 , <A HREF="http://ffmpeg.sourceforge.net">ffmpeg</A> contains an <B>opensource</B> DivX codec,
345 which is compatible with the traditional DivX. <B>MPlayer</B> contains this codec, 349 which is compatible with the traditional DivX. <B>MPlayer</B> contains this codec,
346 and this makes it possible to <B>watch DivX movies on non-x86 platforms!</B> 350 and this makes it possible to <B>watch DivX movies on non-x86 platforms!</B>
347 To get it compile, you'll need nasm, bison, and flex, above the other 351 To get it compile, you'll need nasm, bison, and flex, above the other
348 devel tools. No manual hacking is needed to build it, ./configure detects 352 devel tools. It was removed from <B>MPlayer</B>'s cvs tree, you have
349 if it can be built. At the moment it doesn't support postprocessing, and 353 to download it manually directly from <B>FFmpeg</B>'s tree :
350 is under optimization (it's generally a bit faster than the DirectShow 354
351 DivX codec, now). 355
356 cvs -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg login
357 cvs -d:pserver:anonymous@cvs.ffmpeg.sourceforge.net:/cvsroot/ffmpeg co ffmpeg
358
359
360 Note: if you copy with CVS subdirs, next time it's enough to do
361 'cvs update'.
362
363 Now, move the newly downloaded ffmpeg source's <B>libavcodec</B> directory,
364 (with all it's subdirectories) to <B>MPlayer</B>'s tree, so it will look
365 like this :
366
367
368 main/libavcodec
369
370
371 Symlinking is NOT enough, you have to copy it.
372
373 ./configure detects if it can be built. At the moment it doesn't support
374 postprocessing, and is under optimization (it's faster than the DS/VfW DivX
375 codec).
352 376
353 In order to use it, refresh your codecs.conf file, and do as the manpage, 377 In order to use it, refresh your codecs.conf file, and do as the manpage,
354 or the example.conf says (the -vfm option). 378 or the example.conf says (the -vfm option).
355 379
356 Note: libavcodec contains other codecs as well, but at the moment we mostly 380 Note: libavcodec contains other codecs as well, but at the moment we mostly
357 focus on ffdivx. 381 focus on ffdivx, and it's unlikely that this will change.
358 382
359 <A NAME=2.1.3>2.1.4. Codec importing howto 383 <A NAME=2.1.3>2.1.4. Codec importing howto
360 384
361 385
362 <A NAME=2.1.4.1>2.1.4.1. VFW codecs 386 <A NAME=2.1.4.1>2.1.4.1. VFW codecs
386 410
387 411
388 This is the MP3 codec. 412 This is the MP3 codec.
389 So, now we have all the info needed (fourcc, codec file, sample AVI), submit 413 So, now we have all the info needed (fourcc, codec file, sample AVI), submit
390 your codec support request in mail, and upload these files to the FTP: 414 your codec support request in mail, and upload these files to the FTP:
391 ftp://mplayerhq.hu/MPlayer/incoming/<codecname>/ 415 ftp://mplayerhq.hu/MPlayer/incoming/[codecname]/
392 416
393 417
394 <A NAME=2.1.4.2>2.1.4.2. DirectShow codecs 418 <A NAME=2.1.4.2>2.1.4.2. DirectShow codecs
395 419
396 DirectShow is the newer Video API, which is even worse than its predecessor. 420 DirectShow is the newer Video API, which is even worse than its predecessor.
419 NOTE : dump that M$ shit. 443 NOTE : dump that M$ shit.
420 444
421 445
422 So, now we have all the info needed (fourcc, GUID, codec file, sample AVI), 446 So, now we have all the info needed (fourcc, GUID, codec file, sample AVI),
423 submit your codec support request in mail, and upload these files to the FTP: 447 submit your codec support request in mail, and upload these files to the FTP:
424 ftp://mplayerhq.hu/MPlayer/incoming/<codecname>/ 448 ftp://mplayerhq.hu/MPlayer/incoming/[codecname]/
425 449
426 450
427 <A NAME=2.2>2.2. Video & Audio output devices 451 <A NAME=2.2>2.2. Video & Audio output devices
428 452
429 453
780 There are several commandline switches for SDL: 804 There are several commandline switches for SDL:
781 805
782 -vo sdl:name specifies sdl video driver to use (ie. aalib, 806 -vo sdl:name specifies sdl video driver to use (ie. aalib,
783 dga, x11) 807 dga, x11)
784 -ao sdl:name specifies sdl audio driver to use (ie. dsp, 808 -ao sdl:name specifies sdl audio driver to use (ie. dsp,
785 esd) 809 esd, arts)
786 -noxv disables Xvideo hardware acceleration 810 -noxv disables Xvideo hardware acceleration
787 -forcexv tries to force Xvideo acceleration 811 -forcexv tries to force Xvideo acceleration
788 812
789 SDL Keys: 813 SDL Keys:
790 814
819 cards, such as S3 Trio64), only VBE 1.2 (or older?) : 843 cards, such as S3 Trio64), only VBE 1.2 (or older?) :
820 Well, VESAfb is still available, but you'll have to load SciTech Display 844 Well, VESAfb is still available, but you'll have to load SciTech Display
821 Doctor (formerly UniVBE) before booting Linux. Use a DOS boot disk or 845 Doctor (formerly UniVBE) before booting Linux. Use a DOS boot disk or
822 whatever. And don't forget to register your UniVBE ;)) 846 whatever. And don't forget to register your UniVBE ;))
823 847
848 The FBdev output takes some additional parameters above the others:
849
850 -fb specify the framebuffer device to use (/dev/fd0)
851 -fbmode mode name to use (according to /etc/fb.modes)
852 -fbmodeconfig config file of modes (default /etc/fb.modes)
853 monitor_hfreq
854 monitor_vfreq IMPORTANT values, see example.conf
855 monitor_dotclock
856
857 If you want to change to a specific mode, then use
858
859 mplayer -vm -fbmode (NameOfMode) filename
860
861 -vm alone will choose the most suitable mode from /etc/fb.modes . Can be
862 used together with -x and -y options too. The -flip option is supported only
863 if the movie's pixel format matches the video mode's pixel format.
864 Pay attention to the bpp value, fbdev driver tries to use the current,
865 or if you specify the -bpp option, then that.
866 -zoom option isn't supported (software scaling is slow). -fs option
867 isn't supported. You can't use 8bpp (or less) modes.
824 868
825 NOTE: FBdev video mode changing _does not work_ with the VESA framebuffer, 869 NOTE: FBdev video mode changing _does not work_ with the VESA framebuffer,
826 and don't ask for it, since it's not an <B>MPlayer</B> limitation. 870 and don't ask for it, since it's not an <B>MPlayer</B> limitation.
827 871
828 872
1055 button = Tape_Stop 1099 button = Tape_Stop
1056 config = QUIT 1100 config = QUIT
1057 end 1101 end
1058 1102
1059 If you don't like the standard location for the lirc-config file (~/.lircrc) 1103 If you don't like the standard location for the lirc-config file (~/.lircrc)
1060 use the -lircconf <filename> switch to specify another file. 1104 use the -lircconf [filename] switch to specify another file.
1061 1105
1062 1106
1063 <A NAME=3.3>3.3. Streaming from network or pipes 1107 <A NAME=3.3>3.3. Streaming from network or pipes
1064 1108
1065 <B>MPlayer</B> can play media from network, by using the HTTP protocol, and even 1109 <B>MPlayer</B> can play media from network, by using the HTTP protocol, and even
1182 1226
1183 for 2MB prefetched reading from the file (it's useful for scratched CDROMs). 1227 for 2MB prefetched reading from the file (it's useful for scratched CDROMs).
1184 It's recommended that you tuneup your CDROM drive also with hdparm : 1228 It's recommended that you tuneup your CDROM drive also with hdparm :
1185 1229
1186 1230
1187 hdparm -d1 -a8 -u1 <cdrom device> 1231 hdparm -d1 -a8 -u1 (cdrom device)
1188 1232
1189 1233
1190 to enable using DMA access, readahead, and IRQ unmasking. 1234 to enable using DMA access, readahead, and IRQ unmasking.
1191 (if you don't understand these, *read the hdparm manpage*) 1235 (if you don't understand these, *read the hdparm manpage*)
1192 1236
1349 <A NAME=6.1>6.1. Compilation 1393 <A NAME=6.1>6.1. Compilation
1350 1394
1351 <B>Q: What's the problem with gcc 2.96 ? 1395 <B>Q: What's the problem with gcc 2.96 ?
1352 </B>A: gcc 2.96 is RedHat's UNOFFICIAL (it can be found only on RedHat sites, or 1396 </B>A: gcc 2.96 is RedHat's UNOFFICIAL (it can be found only on RedHat sites, or
1353 RedHat distributions) and BUGGY gcc release. gcc 2.96 is TOTALLY 1397 RedHat distributions) and BUGGY gcc release. gcc 2.96 is TOTALLY
1354 unsupported by <B>MPlayer</B>, because it simply SKIPS MMX codes, it just does not 1398 unsupported by <B>MPlayer</B>, because it simply SKIPS MMX codes, it just does
1355 compile it. Important: this is NOT an <B>MPlayer</B>-specific problem, numerous 1399 not compile it. Important: this is NOT an <B>MPlayer</B>-specific problem,
1356 other projects (DRI, avifile, etc..) have problems with this shit too. 1400 numerous other projects (DRI, avifile, etc..) have problems with this shit
1401 too.
1357 ** DO NOT USE gcc 2.96 !!! ** 1402 ** DO NOT USE gcc 2.96 !!! **
1403
1404 <B>Q: Great, I have gcc 3.0.1 from RedHat/Mandrake, then I'm fine--!
1405 </B>A: No :) Their gcc 3.0.1 was compiled with gcc 2.96, so they are
1406 buggy shit too.
1407
1408 <B>Q: Now then. What should I use?
1409 </B>A: Any of gcc 2.95 series.
1358 1410
1359 <B>Q: SDL output doesn't work or compile. Problem is .... 1411 <B>Q: SDL output doesn't work or compile. Problem is ....
1360 </B>A: It is tested with newest SDL (probably runs on 1.1.7+). 1412 </B>A: It is tested with newest SDL (probably runs on 1.1.7+).
1361 It does NOT work with 1.1.6, 1.1.5 1.1.4 1.1.3 1.0.4 etc, don't ask. 1413 It does NOT work with 1.1.6, 1.1.5 1.1.4 1.1.3 1.0.4 etc, don't ask.
1362 1414
1402 Alternatively, try SDL's DGA driver with '-vo sdl:dga' options. 1454 Alternatively, try SDL's DGA driver with '-vo sdl:dga' options.
1403 1455
1404 <B>Q: I can't compile SVGAlib.. I'm using 2.3/2.4 kernel. 1456 <B>Q: I can't compile SVGAlib.. I'm using 2.3/2.4 kernel.
1405 </B>A: You have to edit SVGAlib's Makefile.cfg and comment "BACKGROUND = y" out. 1457 </B>A: You have to edit SVGAlib's Makefile.cfg and comment "BACKGROUND = y" out.
1406 1458
1407 <B>Q: I compiled <B>MPlayer</B> with libcss support, but when I try to start 1459 <B>Q: I compiled <B>MPlayer</B> with libcss/libdivxdecore support, but when
1408 it, it says : 1460 I try to start it, it says :
1409 > error while loading shared libraries: libcss.so.0: cannot load 1461 > error while loading shared libraries: libcss.so.0: cannot load
1410 > shared object file: No such file or directory 1462 > shared object file: No such file or directory
1411 I checked up on the file and it IS there in /usr/local/lib. 1463 I checked up on the file and it IS there in /usr/local/lib.
1412 </B>A: What are you doing on Linux? Can't you install a library? Why do 1464 </B>A: What are you doing on Linux? Can't you install a library? Why do
1413 we get these questions? It's not <B>MPlayer</B> specific at all! Add 1465 we get these questions? It's not <B>MPlayer</B> specific at all! Add
1414 /usr/local/lib to <B>/etc/ld.so.conf</B> and run <B>ldconfig</B> . 1466 /usr/local/lib to <B>/etc/ld.so.conf</B> and run <B>ldconfig</B> .
1467 Or install it to /usr/lib , because if you can't solve the /usr/local
1468 problem, you are careless enough to do such things.
1415 1469
1416 <A NAME=6.2>6.2. General questions 1470 <A NAME=6.2>6.2. General questions
1417 1471
1418 <B>Q: What about DVD playback? 1472 <B>Q: What about DVD playback?
1419 </B>A: Read files 'DVD' and 'DVD-FAQ'. 1473 </B>A: Read files 'DVD' and 'DVD-FAQ'.
1712 1766
1713 To run <B>MPlayer</B> you will need to re-compile the kernel with 1767 To run <B>MPlayer</B> you will need to re-compile the kernel with
1714 "options USER_LDT" (unless you are running -CURRENT, where this is default). 1768 "options USER_LDT" (unless you are running -CURRENT, where this is default).
1715 1769
1716 If <B>MPlayer</B> complains about "CD-ROM Device '/dev/cdrom' not found!" make a 1770 If <B>MPlayer</B> complains about "CD-ROM Device '/dev/cdrom' not found!" make a
1717 symbolic link : ln -s /dev/<your_cdrom_device> /dev/cdrom 1771 symbolic link : ln -s /dev/(your_cdrom_device) /dev/cdrom
1718 1772
1719 There's no DVD support for FreeBSD yet. 1773 There's no DVD support for FreeBSD yet.
1720 Feel free to add it :-) 1774 Feel free to add it :-)
1721 1775
1722 1776
1768 % gmake 1822 % gmake
1769 ... 1823 ...
1770 gcc -c -Iloader -Ilibvo -O4 -march=i686 -mcpu=i686 -pipe -ffast-math 1824 gcc -c -Iloader -Ilibvo -O4 -march=i686 -mcpu=i686 -pipe -ffast-math
1771 -fomit-frame-pointer -I/usr/local/include -o mplayer.o mplayer.c 1825 -fomit-frame-pointer -I/usr/local/include -o mplayer.o mplayer.c
1772 Assembler: mplayer.c 1826 Assembler: mplayer.c
1773 "<stdin>", line 3567 : Illegal mnemonic 1827 "(stdin)", line 3567 : Illegal mnemonic
1774 "<stdin>", line 3567 : Syntax error 1828 "(stdin)", line 3567 : Syntax error
1775 ... more "Illegal mnemonic" and "Syntax error" errors ... 1829 ... more "Illegal mnemonic" and "Syntax error" errors ...
1776 1830
1777 1831
1778 For DVD support you must have the patched libcss installed. Patch: 1832 For DVD support you must have the patched libcss installed. Patch:
1779 http://www.tools.de/solaris/mplayer/ 1833 http://www.tools.de/solaris/mplayer/