mplayer 1.0pre7try2: Unterschied zwischen den Versionen
Michi (Diskussion | Beiträge) (Die Seite wurde neu angelegt: Herunterladen: http://packman.links2linux.de == Software-Anforderungen == * binutils >= 2.11 (responsible for generating MMX/ 3DNow!/etc instructions) * gcc >= 3.2 < ...) |
Michi (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
Zeile 1: | Zeile 1: | ||
<b>mplayer 1.0pre7try2</b> ist eine Version des Medienspielers [[mplayer]] | |||
Herunterladen: http://packman.links2linux.de | Herunterladen: http://packman.links2linux.de | ||
Version vom 6. Februar 2009, 13:51 Uhr
mplayer 1.0pre7try2 ist eine Version des Medienspielers mplayer
Herunterladen: http://packman.links2linux.de
Software-Anforderungen
- binutils >= 2.11 (responsible for generating MMX/ 3DNow!/etc instructions)
- gcc >= 3.2 < 4.x
- XFree86 auf SUSE 10.0 nicht vorhanden
- make >= 3.79
- SDL >= 1.2
- libjpeg (optional JPEG decoder)
- libpng (recommended and default (M)PNG decoder)
- lame >= 3.90 (recommended)
- zlib (recommended)
- libogg (optional)
- libvorbis (optional)
- Live.com (optional, needed for playing RTSP/RTP streams)
- RealPlayer (optional, needed for playing RTSP/RTP streams)
- directfb >= 0.9.13 (optional)
- cdparanoia (optional, for CDDA support)
- libfreetype >= 2.0.9 (optional, for TTF fonts support)
- libmad (optional, an MPEG Audio Decoder)
- libxmms >= 1.2.7 (optional, for XMMS input plugin support)
- libsmb (optional, for Samba support)
- ALSA >= 0.9.0rc4 (optional, for ALSA audio output support)
- bio2jack (optional, for JACK audio output support, needed only in compile time - since it doesn't have install option you have to manually put the file "libbio2jack.a" somewhere in your library path, e. g. "/usr/local/lib" or use the "--with-bio2jack=DIR" switch to tell "./configure" where that file is)
Codec-Anforderungen
- Libavcodec: This codec package is capable of decoding H.263/MJPEG/RV10/DivX3/DivX4/DivX5/MP41/MP42/WMV1/WMV2/SVQ1/SVQ3 encoded video streams and WMA (Windows Media Audio) v1/v2 audio streams, on multiple platforms. It is also known to be the fastest for this task. See FFmpeg section for details. The codec is right in the MPlayer package. Features:
- gain decoding of videos mentioned above, on non-x86 machines
- encoding with most of the mentioned codecs
- this codec is the fastest codec available for DivX/3/4/5 and other MPEG-4 types. Recommended!
- Win32 codecs: If you plan to use MPlayer on x86 architecture, you will possibly need them. These codecs can be downloaded from the MPlayer site and must be put in "/usr/lib/win32" BEFORE compiling MPlayer, otherwise no Win32 support will be compiled! Features:
- you need this if you want to play or encode for example movies recorded with various hardware compressors, like tuner cards, digital cameras (example: DV, ATI VCR, MJPEG)
- needed if you want to play WMV9/WMA9 movies.
- Not needed for old ASF's with MP41 or MP42 video (though VoxWare audio is frequent for these files - it's done by the Win32 codec), or WMV7. Also not needed for WMA (Windows Media Audio), Libavcodec has open source decoder for that.
# tar xjf all-20050412.tar.bz2 # cd all-20050412 # mv -i * /usr/lib/win32
- QuickTime codecs: on x86 platforms these codecs can be used to decode RPZA, and other QuickTime video, and QDesign audio streams.
- DivX4/DivX5: information about this codec is available in the DivX4/DivX5 section. You possibly don't want this codec as Libavcodec (see above) is much faster and has better quality than this, for both decoding and encoding. Features:
- one pass or two pass encoding with MEncoder
- can play old DivX3 movies much faster than the Win32 DLL but slower than Libavcodec!
- it's closed-source, and only a x86 version is available.
- XviD: Open source encoding alternative to DivX4Linux. Features:
- one pass or two pass encoding with MEncoder
- it's open-source, so it's multiplatform.
- it's about 2 times faster than divX4 when encoding - about the same quality
$ bzip2 -cd xvidcore-1.1.0.tar.bz2 | tar xf - $ cd xvidcore-1.1.0/build/generic $ ./configure $ make # make install /usr/local/lib I: /usr/local/lib/libxvidcore.so.4.1 I: /usr/local/lib/libxvidcore.a D: /usr/local/include I: /usr/local/include/xvid.h
- The XAnim codecs are the best (full screen, hardware YUV zoom) for decoding 3ivx and Indeo 3/4/5 movies, and some old formats. And they are multiplatform, so this is the only way to play Indeo on non-x86 platforms (well, apart from using XAnim:). But for example Cinepak movies are best played with MPlayer's own Cinepak decoder! Download: http://www.mplayerhq.hu/MPlayer/releases/codecs/
# tar xjf xanimdlls-20040626.tar.bz2 # cd xanimdlls-20040626 # mv -i * /usr/lib/xanim/mods
- For Ogg Vorbis audio decoding you need to install libvorbis properly.
- MPlayer can use the libraries of RealPlayer 8 or RealONE to play files with RealVideo 3.0 and 4.0 video, and Sipro/Cook audio.
Installation GCC 3.4.5
In attempting to compile Mplayer for SUSE 10, you will come upon the problem of having GCC 4.0.2 installed by default. You will need to download an older version of GCC, e. g. GCC 3.4.5 as that was the last stable version in the 3.x tree.
# bzip2 -cd gcc-3.4.5.tar.bz2 | tar xf - # cd gcc-3.4.5 # mkdir /opt/gcc-3.4.5 # ./configure --prefix=/opt/gcc-3.4.5 # make # make install
If everything goes well, you should get no errors. Follow up with the requisite make and make install commands. To test your new version of GCC out, change into "/opt/gcc-3.4.5/bin" and type "./gcc". The help screen for version 3.4.5 should thus be displayed.
Now that we have our previous version of GCC up and running, it is time to compile MPlayer.
Installation Mplayer
$ tar xjf MPlayer-1.0pre7try2.tar.bz2 $ cd MPlayer-1.0pre7try2
Configuring allows to customize certain parameters. To see all of MPlayers configuring options run:
$ ./configure --help
I recommend the following options:
$ ./configure --enable-gui --enable-largefiles --enable-menu --enable-xmms --cc=/opt/gcc-3.4.5/bin/gcc
Detected operating system: Linux Detected host architecture: i386 Checking for /opt/gcc-3.4.5/bin/gcc version ... 3.4.5, ok Checking for host cc ... /opt/gcc-3.4.5/bin/gcc Checking for CPU vendor ... GenuineIntel (15:2:4) Checking for CPU type ... Intel(R) Pentium(R) 4 CPU 2.40GHz Checking for GCC & CPU optimization abilities ... pentium4 Checking for kernel support of mmx ... yes Checking for kernel support of mmx2 ... yes Checking for kernel support of sse ... yes Checking for kernel support of sse2 ... yes Checking for mtrr support ... yes Checking for assembler support of -pipe option ... yes Checking for assembler (as 2.16.91.0.2) ... ok Checking for Linux kernel version ... 2.6.13-15.7-default, ok Checking for mplayer binary name ... mplayer Checking for awk ... gawk Checking for extra headers ... none Checking for extra libs ... none Checking for -lposix ... no Checking for -lm ... yes Checking for i18n ... yes Checking for iconv ... yes Checking for langinfo ... yes Checking for language ... using en (man pages: en) Checking for enable sighandler ... yes Checking for runtime cpudetection ... no Checking for restrict keyword ... __restrict Checking for __builtin_expect ... yes Checking for kstat ... no Checking for posix4 ... no Checking for lrintf ... yes Checking for nanosleep ... yes Checking for socklib ... yes (using -lnsl) Checking for inet_pton() ... yes (using -lnsl) Checking for inttypes.h (required) ... yes Checking for int_fastXY_t in inttypes.h ... yes Checking for word size ... 32 Checking for stddef.h ... yes Checking for malloc.h ... yes Checking for memalign() ... yes Checking for alloca.h ... yes Checking for mman.h ... yes Checking for dynamic loader ... yes Checking for dynamic a/v plugins support ... no Checking for pthread ... yes (using -lpthread) Checking for sys/soundcard.h ... yes Checking for sys/dvdio.h ... no Checking for sys/cdio.h ... no Checking for linux/cdrom.h ... yes Checking for dvd.h ... no Checking for BSDI dvd.h ... no Checking for HPUX SCSI header ... no Checking for userspace SCSI headers (Solaris) ... no Checking for termcap ... no Checking for termios ... yes (using sys/termios.h) Checking for shm ... yes Checking for linux devfs ... no Checking for scandir() ... yes Checking for strsep() ... yes Checking for strlcpy() ... no Checking for strlcat() ... no Checking for fseeko() ... yes Checking for localtime_r() ... yes Checking for vsscanf() ... yes Checking for swab() ... yes Checking for posix select() ... yes Checking for gettimeofday() ... yes Checking for glob() ... yes Checking for sys/sysinfo.h ... yes Checking for Mac OS X APIs ... no Checking for Mac OS X Finder Support ... no Checking for Mac OS X Bundle file locations ... no Checking for Samba support (libsmbclient) ... no Checking for 3dfx ... no Checking for tdfxfb ... no Checking for tdfxvid ... no Checking for tga ... yes Checking for DirectFB headers presence ... yes (using -I/usr/include/directfb) Checking for DirectFB ... yes (922) Checking for X11 headers presence ... yes (using /usr/X11/include) Checking for X11 libs presence ... yes (using /usr/X11R6/lib) Checking for X11 ... yes Checking for DPMS ... yes (using Xdpms 4) Checking for Xv ... yes Checking for XvMC ... no Checking for Xinerama ... yes Checking for Xxf86vm ... yes Checking for XF86keysym ... yes Checking for DGA ... yes (using DGA 2.0) Checking for OpenGL ... yes Checking for /dev/mga_vid ... no Checking for xmga ... no Checking for GGI ... no Checking for AA ... yes Checking for CACA ... no Checking for SVGAlib ... no Checking for FBDev ... yes Checking for DVB ... no (specify path to DVB/ost/include with --with-dvbincdir=DIR) Checking for DVB HEAD ... yes Checking for PNG support ... yes Checking for JPEG support ... no Checking for PNM support ... yes Checking for md5sum support ... yes Checking for GIF support ... no Checking for VESA support ... yes Checking for SDL ... yes (using sdl-config) Checking for Windows waveout ... no Checking for Directx ... no Checking for NAS ... no Checking for DXR2 ... no Checking for DXR3/H+ ... no Checking for libmp1e ... no Checking for libfame ... no Checking for OSS Audio ... yes Checking for aRts ... yes Checking for EsounD ... yes Checking for esd_get_latency() ... yes Checking for Polyp ... no Checking for JACK ... no Checking for ALSA audio ... yes (using alsa 1.0.x and alsa/asoundlib.h) Checking for Sun audio ... no Checking for Sun mediaLib ... no Checking for SGI audio ... no Checking for VCD support ... ok Checking for DVD support (libmpdvdkit) ... yes Checking for DVD support (libdvdread) ... disabled by libmpdvdkit2 Checking for cdparanoia ... yes Checking for freetype >= 2.0.9 ... yes Checking for fontconfig ... yes Checking for fribidi with charsets ... no Checking for ENCA ... no Checking for zlib ... yes Checking for RTC ... yes Checking for external liblzo support ... no Checking for mad support ... yes Checking for Toolame ... no Checking for OggVorbis support ... yes (internal Tremor) Checking for OggTheora support (only the CVS version!) ... no Checking for mp3lib support ... yes Checking for liba52 support ... yes Checking for libdts support ... no Checking for libmpeg2 support ... yes Checking for Matroska support ... yes Checking for internal FAAD2 (AAC) support ... yes Checking for external FAAD2 (AAC) support ... no Checking for LADSPA plugin support ... yes Checking for Win32 codec DLL support ... yes (using /usr/lib/win32) Checking for Win32 loader support ... yes Checking for DirectShow ... yes Checking for XAnim DLL ... yes (using /usr/lib/xanim/mods) Checking for RealPlayer DLL ... yes (using /usr/lib/win32) Checking for LIVE.COM Streaming Media libraries ... yes (using /usr/lib/live) Checking for FFmpeg libavcodec (static) ... yes Checking for FFmpeg libavformat (static) ... yes Checking for amr narrowband ... no Checking for amr narrowband, fixed point ... no Checking for amr wideband ... no Checking for libdv-0.9.5+ ... yes Checking for zr ... no Checking for bl ... no Checking for XviD ... yes Checking for DivX4 compatibility in XviD ... no Checking for x264 ... no Checking for DivX4linux/DivX5linux/OpenDivX decore ... no Checking for libmp3lame (for mencoder) ... yes Checking for DivX4linux encore (for mencoder) ... no Checking for mencoder ... yes Checking for fastmemcpy ... yes Checking for UniquE RAR File Library ... yes Checking for TV interface ... yes Checking for EDL support ... yes Checking for *BSD BrookTree 848 TV interface ... no Checking for Video 4 Linux TV interface ... yes Checking for Video 4 Linux 2 TV interface ... yes Checking for audio select() ... yes Checking for network ... yes Checking for ftp ... yes Checking for vstream client ... no Checking for byte order ... little-endian Checking for shared postprocess lib ... no Checking for OSD menu ... yes Checking for QTX codecs ... yes Checking for Subtitles sorting ... yes Checking for XMMS inputplugin support ... yes Checking for inet6 ... yes Checking for gethostbyname2 ... yes Checking for GUI ... yes Checking for XShape extension ... yes Checking for GTK version ... 1.2.10 (using gtk-config) Checking for glib version ... 1.2.10 (using glib-config) Creating Gui/config.mak Checking for automatic gdb attach ... no Checking for compiler support for -fno-PIC ... yes Checking for ftello() ... yes Checking for VIDIX ... yes Checking for joystick ... no Checking for lirc ... no Checking for lircc ... no Creating config.mak Creating config.h Creating libvo/config.mak Creating libao2/config.mak Creating libaf/config.mak Config files successfully generated by ./configure ! Install prefix: /usr/local Data directory: /usr/local/share/mplayer Config direct.: /usr/local/etc/mplayer Byte order: little-endian Optimizing for: pentium4 mmx mmx2 sse sse2 mtrr Languages: Messages/GUI: en Manual pages: en Enabled optional drivers: Input: ftp network tv-v4l2 tv-v4l edl tv live.com matroska cdda mpdvdkit2 vcd dvb Codecs: qtx xvid libdv libavcodec real xanim dshow/dmo win32 faad2(internal) libmpeg2 liba52 mp3lib tremor(internal) libmad Audio output: alsa esd arts oss sdl mpegpes(dvb) Video output: xvidix cvidix sdl vesa md5sum pnm png mpegpes(dvb) fbdev aa opengl dga xv x11 xover dfbmga directfb tga Audio filters: ladspa Disabled optional drivers: Input: vstream tv-bsdbt848 dvdread smb Codecs: opendivx x264 amr_wb amr_nb libdts libtheora toolame liblzo gif Audio output: sgi sun jack polyp dxr2 nas dsound win32 macosx Video output: winvidix bl zr zr2 dxr3 dxr2 directx gif89a jpeg svga caca ggi xmga mga xvmc tdfx_vid tdfxfb 3dfx quartz Audio filters: 'config.h' and 'config.mak' contain your configuration options. Note: If you alter theses files (for instance CFLAGS) MPlayer may no longer compile *** DO NOT REPORT BUGS if you tweak these files *** 'make' will now compile MPlayer and 'make install' will install it. Note: On non-Linux systems you might need to use 'gmake' instead of 'make'. Please check mtrr settings at /proc/mtrr (see DOCS/HTML/en/video.html#mtrr) Check configure.log if you wonder why an autodetection failed (check whether the development headers/packages are installed). If you suspect a bug, please read DOCS/HTML/en/bugreports.html.
or forget the GUI if there is a problem with GTK:
$ ./configure --enable-largefiles --enable-xmms --cc=/opt/gcc-3.4.5/bin/gcc
Read the output carefully to determine whether or not any mistakes were made or if some library is not detected. For example to check if the Lame libraries were detected, look for the following line:
Checking for libmp3lame (for mencoder) ... yes
If you'd like to add any additional codecs just modify the configure settings and re-run the configure script.
Not all the codecs should be detected. In fact most will not. However the many that you have should be an adequate starting point for using MPlayer to decode and encode. Read over the MPlayer documention to find out how to enable additional codecs or input/output drivers.
Note: When MPlayer fails to detect a plugin or library, make sure you have that library RPM installed AND make sure you have its devel RPM installed. For example: for artsd output you need arts-1.1.4-3 and arts-devel-1.1.4-3.3.3.2.
Kompilieren:
$ make
If there is an error at this point you may have used an improper library or version of a dependancy. Try to determine at which file the compile fails and post to help forums, newsgroups or mailing lists for assistance. Reading MPlayer documentions usually helps. Often the easiest solution is go to a previous version of a library or dependancy application. For example: using the DivX 5.0.1 instead of 5.0.5. Another solution maybe to entirely disable that plugin. Running "./configure --help" will show how to disable most plugins or detections that MPlayer uses.
If you need to fix something, you will have to re-do the configure step from above. Otherwise continue:
# checkinstall # yast -i /usr/src/packages/RPMS/i386/MPlayer-1.0pre7try2-1.i386.rpm