[MPlayer-users] Re: Encoding quality advices

Diego Zuccato diego at otello.alma.unibo.it
Mon Dec 2 10:51:03 CET 2002


Rocky Hetherington wrote:

> Each profile could have something like:
> 
> vhq=true
> 4mv=true
> lavc=true
> vcodec=mpeg4
> vbitrate=1000
> 
> and so on.
> 
> By not hardcoding settings into presets surely it would be easier to
> maintain, plus there's the added benefit of people being able to
> contribute profiles of their own tailored to certain types of film.
> 
> Sure it wont produce files as nice as those made experimenting with
> different command line options, but it helps those that don't want to
> experiment with different options.
> 
> Opinions?
A bash script is enough for this !
At least for a config file format like:
ACTION=vhq:vbitrate=1000:...
BLEACH=vbitrate=128:...

Try:
#!/bin/bash
. ~/.mplayer/mencoder.profiles
mencoder -oac ... -ovc lavc -lavcopts ${!1} ...

The trick in that ${!1} that uses $1 (the first parameter) as a variable
name.
Optimizations, error checking, multipass and the rest are left as an
exercise for the reader :-)

BYtE,
 Diego.




More information about the MPlayer-users mailing list