-//W3C//DTD XHTML 1.0 Strict//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd>

MPlayer / MEncoder

MPlayer / MEncoder

Paul Hänsch

FUB Course: Digital Video

Contents

Intro

http://mplayerhq.hu

MPlayer for Users - Shortcuts

MPlayer for Users - Invocation

Simple files:

mplayer video1.avi video2.mkv dvdrip.iso

Web-URL:

mplayer http://example.com/video.mpg

MPlayer for Users - Invocation

Image sequence:

mplayer mf://*.jpg -mf fps=15

Webcam, DVD, AudioCD:

mplayer dvd://1 cdda://0 tv:// -dvd-device /dev/dvd -cdrom-device /dev/cdrom -tv device=/dev/video0

MPlayer for Users - Invocation

Play in fullscreen, start playback at 1 hour, 22 minutes

mplayer -fs movie.mp4 -ss 4920

MPlayer for Users - Output Drivers

Video Output

mplayer -novideo 
mplayer -vo matrixview:cols=48:rows=32

MPlayer for Users - Output Drivers

Audio Output

mplayer -nosound
mplayer -ao pulse:example.com

MPlayer for Users - Video Filters

mplayer -vf scale=1280:600,crop=400:200,mirror video.mpeg

mplayer -vf-add scale=1280:600 -vf-add crop=400:200 -vf-add mirror video.mpeg

MPlayer for Users - Additional Codecs

MPlayer for Users - Config Files

~/.mplayer/config
cache=8192
cache-min=2

fs=yes
vf=scale=-2:600
vo=x11
ao=pulse:Jupiter
hardframedrop=yes
subfont-osd-scale=2
osdlevel=3
heartbeat-cmd="xscreensaver-command -deactivate >/dev/null 2>/dev/null &"

MEncoder for Users - Invocation

mencoder -oac lavc -ovc lavc -of avi -o Out.avi In1.mpg In2.mkv

mencoder -vf mirror In1.avi In2.avi -o Out.avi
mencoder In1.avi -vf mirror In2.avi -o Out.avi

MEncoder for Users - Output Container

mencoder -of avi
mencoder -of mpeg
mencoder -of lavf -lavfopts format=...

MEncoder for Users - Video Codec

mencoder -ovc help
mencoder -ovc lavc -lavcopts vcodec=...
mencoder -ovc x264enc

MEncoder for Users - Audio Codec

mencoder -nosound mencoder -oac help mencoder -oac lavc mencoder -oac twolame mencoder -oac mp3lame …

For Developers - Slave Mode

mplayer -slave

For Developers - Status Line

Future Development

Thank You!

...