MPlayer
From Indie IT Wiki
Revision as of 15:36, 22 November 2017 by imported>Plittlefield (→HOWTO: Play Half Size)
Documentation
https://wiki.archlinux.org/index.php/MPlayer
http://forums.debian.net/viewtopic.php?t=17783
HOWTO: Play Video Over SSH
ssh username@remoteserver "cat movie.mp4" | mplayer -
This will deal with spaces in the filename...
ssh username@remoteserver "cat \"\/path\/to\/My Movie.mkv\"" | mplayer -
HOWTO: Play Music Over SSH
ssh username@remoteserver "cat track.mp3" | mplayer -
This will deal with spaces in the filename...
ssh username@remoteserver "cat \"01 Fish.mp3\"" | mplayer -
HOWTO: Play Half Size
mplayer -xy 0.5 filename.mp4
HOWTO: Play With No Sound
mplayer -noaudio filename.mp4
HOWTO: Take A Screenshot
mplayer -vf screenshot /path/to/video_file
Then, press the S key.
To take continuous shots per frame, press SHIFT+S keys.
Thanks - http://lorenzod8n.wordpress.com/2007/05/23/screenshots-with-mplayer/
HOWTO: 5.1 Surround Sound, Full Screen, Deactivate Screensaver, Nicer Audio
mplayer -channels 6 -fs -heartbeat-cmd "xscreensaver-command -deactivate" -af equalizer=-8:-6:-4:-2:0:0:2:4:6:8 filename.mkv
HOWTO: Stop Screensaver
mplayer -heartbeat-cmd "xscreensaver-command -deactivate" filename.avi
HOWTO: Audio 10 Band Graphic Equaliser In Console
mplayer -af equalizer=-16:-8:-4:-2:0:0:2:4:8:16 *.flac
Stream Videos Across The Network Or Internet
mplayer -cache 10000 -lavdopts lowres=1 -vfm ffmpeg "http://address/video.avi"
Install Latest SVN Version Of Mplayer (With VDPAU) In Ubuntu
Download the source code... (first time)
cd ~ svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer cd mplayer/
Download the source code... (next time)
cd mplayer/ svn update
Download the Nvidia VDPAU libraries... (just the first time)
mkdir vdpau cd vdpau/ wget -r ftp://download.nvidia.com/XFree86/vdpau/include/vdpau/ cd .. cp -av vdpau ffmpeg/
Configure...
./configure --enable-vdpau
Build...
make
Backup the existing version of mplayer you have...
sudo mv /usr/bin/mplayer /root/
Install...
sudo make install
Test...
mplayer MPlayer SVN-r35003-4.4.5 (C) 2000-2012 MPlayer Team
Enjoy :-)
Custom Configuration Files
nano .mplayer/config
[default] # VIDEO OPTIONS fs=yes demuxer=lavf vo=vdpau:deint=3 vc=ffmpeg12vdpau,ffh264vdpau,ffvc1vdpau,ffwmv3vdpau, vfm=ffmpeg, # AUDIO OPTIONS ao=pulse ac=fftruehd,ffdca,ffeac3,ffac3,fflpcm, afm=ffmpeg, alang=English,eng,en slang=English,eng,en forcedsubsonly=yes channels=6 autosync=1 # CACHE OPTIONS cache=8000 cache-min=20.0 cache-seek-min=50 # CONTROLLER OPTIONS noar=yes nomouseinput=yes nolirc=yes nojoystick=yes
nano ~/.mplayer/input.conf
F1 switch_ratio 0 F2 switch_ratio 1.3333 F3 switch_ratio 1.7778 F4 switch_ratio 1.85 F5 switch_ratio 2.3
Playing Multiple Files
for i in *.mp3; do mplayer "$i"; done