links - soft - mplayer & mencoder [links - soft] [home] [search

src

build instructions:
  1. export CFLAGS="$CFLAGS -fomit-frame-pointer" (see here why)
  2. export CXXFLAGS="$CXXFLAGS -fomit-frame-pointer"
  3. in configure, replace the string
    for _ld_gif in "-lungif" "-lgif" ; do
    by
    for _ld_gif in "-lungif -lX11" "-lgif" ; do
  4. cd libdvdread4; ln -s /usr/local/live555/{groupsock,UsageEnvironment,BasicUsageEnvironment,liveMedia} .
  5. ./configure --enable-gui --prefix=/pack/MPlayer-1.0rc4 --disable-ivtv --enable-encoder=/usr/local/ffmpeg/bin/ffmpeg --enable-decoder=/usr/local/ffmpeg/bin/ffmpeg --enable-parser=/usr/local/ffmpeg/bin/ffmpeg --enable-demuxer=/usr/local/ffmpeg/bin/ffmpeg --enable-muxer=/usr/local/ffmpeg/bin/ffmpeg --with-freetype-config=/pack/freetype/bin/freetype-config --extra-cflags="-I/usr/local/live555/liveMedia/include -I/usr/local/live555/groupsock/include -I/usr/local/live555/UsageEnvironment/include"
  6. make; make install
  7. copy binary codecs from the old MPlayer to /pack/MPLayer-1.0rc4/lib/codecs
  8. copy the content of Blue-1.7.tar.bz2 from the old MPlayer to /pack/MPLayer-1.0rc4/share/mplayer/skins/default
  9. ln -s /lib/fonts/TTF/Vera.ttf /pack/MPLayer-1.0rc4/share/mplayer/subfont.ttf
  10. PROFIT!

If a message "Error opening/initializing the selected video_out (-vo) device" pops out when trying to play in GUI mode, check ~/.mplayer/gui.conf and remove/modify any bogus (like vo_driver = "xmga") entries.
Example of dvd playing from files residing on harddisk (VOBs, etc.): mplayer -dvd-device /path/to/dvd/dir dvd://3 -alang fr,ru
To slideshow, for example, all jpegs in the given directory: mplayer mf:///home/archive/pictures/girls/*.jpg -mf fps=0.25 -fs
To cut a piece from a video:
mencoder input.mov -o output.avi -oac [copy|pcm] -ovc copy -ss 00:14 -endpos 01:23 
or
mencoder input.mov -o output.avi -oac pcm -ovc lavc -lavcopts vcodec=mpeg4 -ss 00:14 -endpos 01:23
The first produces sometimes a file with desynchronized video and audio. The second seems to work always, hugely compressing the whole thing by the way.


created Oct 29 2008
last modified Wed Aug 24 16:40:19 EEST 2011