Last Change: Friday, 22.05.2009 nano-world.org | Kontakt  

   Info |    Personen    |    Partner    |    English    |    Sitemap    |

English
25/05/2009
05:28


English
 search


   mencoder

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 main will be created. You can later update your sources by saying

  cvs -z3 update -dPA

from within that directory.

FFmpeg libavcodec/libavformat

CVS MPlayer is not fully functional without a copy of the libavcodec codec library from FFmpeg. Get FFmpeg CVS via

  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 ffmpeg will be created. Copy the libavcodec subdirectory into the main directory just created from the MPlayer checkout.

In order to force automatic updates of libavcodec when you update MPlayer, add the following line to main/CVS/Entries:

  D/libavcodec////

FFmpeg also contains libavformat, a library to decode container formats that can optionally be used to extend MPlayer's container format support. Get it from FFmpeg CVS by the same steps outlined above for libavcodec, just substitute libavcodec by libavformat everywhere.

Browsing MPlayer CVS by HTTP

There is a web interface to the MPlayer CVS repository as well as to the FFmpeg CVS repository.


Picture of the day
pictofday
Downloads
für Linux
für Windows
für osX
Ereignisse
Lila (18-20.5.09)
SeniorenUni (3+4.12.08)
SJf 2008 (24.8-29.8.08)
SVIA Tagung (3.4.08)
Jahrestagung SPS (26.-27.03.08)
more
Artikel
Nanowelt begeistert
Nanoscience Education
Status Report
Die Atome des Herrn Einstein
Focus Physical Review
more
Projekte
Foyer.Nano-World.org
Virtual Experiments (VEXP)
nano-grid.org
rafm.nano-world.org
Online Experimente
Reibungsmodul
Labor Rundblick
Telelabor
Demonstration Nano Labor
Enter the Lab
WebLinks
NCCR Nanoscale Science
Swiss Virtual Campus
Invsee
Schullabor.com

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 .
[ home | Uni Basel | Physik Basel | Visitor log | top ]