25/05/2009 05:28 search |
|||||||||||||||||||||||
Julian Trinkler Movie processing Benötigte Software: mplayer/mencoder Erhältlich auf www.mplayerhq.hu oder direkt vom CVS LAME Erhältlich auf http://lame.sourceforge.net/ mplayer muss mit der libmp3lame Bibliothek kompiliert werden, dazu muss diese im Verzeichnis /usr/lib untergebracht sein. Film komprimieren (VideoCodec: msmpeg4v2 AudioCodec: mp3) Komprimierung mittels “one pass encoding”: mencoder film.mov -ovc lavc -lavcopts vcodec=msmpeg4v2 -aoc mp3lame -o film.avi Anstelle des msmpeg4v2 kann auch mpeg4 (DivX) gewählt werden. Eine Liste der verwendbaren Codecs ist mit dem Argument -ovc help bzw. -aoc help und im mencoder Manual zu finden. Es ist auch “two pass encoding” (und “three pass encoding”) möglich, was eine höhere Kompression und bessere Qualität ermöglicht: Zuerst die optimale Bitrate ausrechnen und im Skript einsetzen. optimal_bitrate = 50 * 25 * width * height 256 Für einen standart 768x576 ist die optimale Bitrate: 2160000 opt=”vbitrate=2160000:mbd=2:keyint=132:vqblur=1.0:cmp=2:subcomp=2:dia=2:mv0:last_pred=3” mencoder -ovc lavc -lavcopts vcodec=msmpeg4v2:vpass=1:$opt -nosound -o /dev/null film.avi mencoder -ovc lavc -lavcopts vcodec=msmpeg4v2:vpass=2:$opt -nosound -o output.avi film.avi Für den mpeg4: opt=”vbitrate=2160000:mbd=2:keyint=132:v4mv:vqmin=3:1umi_mask=0.07:dark_mask=0.2:scplx_mask=0.1:tcplx_mask=0.1:naq” mencoder -ovc lavc -lavcopts vcodec=mpeg4:vpass=1:$opt -nosound -o /dev/null film.avi mencoder -ovc lavc -lavcopts vcodec=mpeg4:vpass=2:$opt -nosound -o output.avi film.avi Für mehr Informationen bitte das mencoder Manual ansehen. You can also get MPlayer via anonymous CVS. Issue the following commands to get the latest sources: cvs -d:pserver:[email protected]:/cvsroot/mplayer login cvs -z3 -d:pserver:[email protected]:/cvsroot/mplayer co -P main When asked for a password, just hit enter. A directory named cvs -z3 update -dPA from within that directory. FFmpeg libavcodec/libavformatCVS MPlayer is not fully functional without a copy of the cvs -d:pserver:[email protected]:/cvsroot/ffmpeg login cvs -z3 -d:pserver:[email protected]:/cvsroot/ffmpeg co -P ffmpeg/libavcodec When asked for a password, just hit enter. A directory named In order to force automatic updates of libavcodec when you update MPlayer, add the following line to D/libavcodec//// FFmpeg also contains Browsing MPlayer CVS by HTTPThere is a web interface to the MPlayer CVS repository as well as to the FFmpeg CVS repository. |
|
|
||
This Web entire site and its dynamic publishing system have been created using Zope All trademarks and copyrights on this page are owned by their respective companies. The Rest is owned by nano-world.org ©2002. Please send comments to . |