Mplayer
Jump to navigation
Jump to search
Installation
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer-svn cd mplayer-svn CFLAGS="-fomit-frame-pointer -O3 -I/opt/lame/include -I/opt/xvid/include" LDFLAGS="-L/opt/lame/lib \ -L/opt/xvid/lib" ./configure --prefix=/opt/mplayer --enable-3dnow --enable-3dnowext --enable-mmx \ --enable-mmxext --enable-shm --enable-sse --enable-theora --enable-liba52 --enable-mp3lib make sudo make install
See these links as to why we have to use all these extra flags:
- #11203: source doesn't compile with -O0 but they compile with -O3
- #32267: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
- FFMPEG4 Camera files to xvid: no sound
Usage
To generate an MPEG-4 avi file from existing .png frames:
mencoder mf://*.png -mf fps=24:type=png -ovc lavc -oac copy -o movie.avi
To generate a flash video:
mencoder $file -ofps 25 -o $file.flv -of lavf -oac mp3lame -lameopts abr:br=64 -srate 22050 \ -ovc lavc -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames \ -lavcopts vcodec=flv:keyint=50:vbitrate=700:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 \ -vf scale=320:240
To generate screenshots[1], start mplayer with:
mplayer -vf screenshot file.mpg
Then, while the file is playing, press "s" to generate a screenshot in the current directory. Press capital "S" to generate continuous screenshots.