[MPlayer-dev-eng] [PATCH] Profiles support for MEncoder

Danny - liste pi at digitalfantasy.it
Mon Jan 9 09:25:09 CET 2006


Hello to all.

With this patch MEncoder support a sort of profiles: profiles are a set 
of encoding options listed in some 'profiles file', modificable by the user.

The use is something like

    mencoder file.mpg -profiles mpg4_hq,mp3

or

    mencoder video.avi -profiles dvd_pal,ac3

The profile are stored in files, where [name] start the profile, valid 
until the end of file or the beginning of a new one. Take a look at the 
file mencoder.pro included to see a sample.

This file is also copied in the configuration directory by the install 
(using a cp, I don't know if is the rigth way to do it ...).

The documentation part is really brute (sorry) but is a start.

In the future this can be a place where put some control about the 
encoding (for examples the maximum keyframe for a dvd encoding) or, 
using a simple parser, using parametrized profiles, to have something 
simple for setting the bitrate like:

    mencoder file.mpg -profiles mpeg4_hq(1200),mp3(160)

It's far for complete but is usable and I think is a nice thing to have ;)

What's missing is:

    . MP_MSG handing: I put some printf (commented by //@) that may be 
use the standard handling.

    . A better documentation ;)

    . Some good profile to put in the 'standard' file

    . profiles for MPlayer ?

    . preload the profiles in memory (this can be a must if we have a 
lots of profile, for examples for the various top-box that we have)

A last note: even if this kind of work can be done with include files I 
prefer to have a single part (the mencoder.pro file) where you have some 
good setup.

You always have the opportunity to change the default profiles, using a 
user file (that can be put in the ~.mplayer/mencoder configuration).

A nice thing to do, after the compile, is:

    mencoder -profile-list

to see if the profiles are loaded ok.

    Daniele Forghieri

   

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: me_profiles.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060109/e0dd52d0/attachment.txt>


More information about the MPlayer-dev-eng mailing list