複数のコンフィギュレーションの扱いを簡単にするために、コンフィギュレーション・ファイルの中にプロファイルを定義しておく事が出来ます。プロファイルはスクエアブラケットで括った名前で始めます。例えば「[my-profile]」。これで後に続くオプションは全てプロファイルの一部となります。description(-profile helpで表示されるもの)は、profile-descオプションで定義できます。プロファイルを終えるには、他のプロファイルを記述するか、「[default]」として通常オプションの記述を再開します。
EXAMPLE MPLAYER PROFILE:[protocol.dvd] profile-desc="profile for dvd:// streams" vf=pp=hb/vb/dr/al/fd alang=en [protocol.dvdnav] profile-desc="profile for dvdnav:// streams" profile=protocol.dvd mouse-movements=yes nocache=yes [extension.flv] profile-desc="profile for .flv files" flip=yes [vo.pnm] outdir=/tmp [ao.alsa] device=spdifEXAMPLE MENCODER PROFILE:
[mpeg4] profile-desc="MPEG4 encoding" ovc=lacv=yes lavcopts=vcodec=mpeg4:vbitrate=1200 [mpeg4-hq] profile-desc="HQ MPEG4 encoding" profile=mpeg4 lavcopts=mbd=2:trell=yes:v4mv=yes
PROFILES To ease working with different configurations profiles can be defined in the configuration files. A profile starts with its name between square brackets, e.g. '[my-profile]'. All following options will be part of the profile. A description (shown by -profile help) can be de- fined with the profile-desc option. To end the profile, start another one or use the profile name 'default' to continue with normal options. EXAMPLE MPLAYER PROFILE: [protocol.dvd] profile-desc="profile for dvd:// streams" vf=pp=hb/vb/dr/al/fd alang=en [protocol.dvdnav] profile-desc="profile for dvdnav:// streams" profile=protocol.dvd mouse-movements=yes nocache=yes [extension.flv] profile-desc="profile for .flv files" flip=yes [vo.pnm] outdir=/tmp [ao.alsa] device=spdif EXAMPLE MENCODER PROFILE: [mpeg4] profile-desc="MPEG4 encoding" ovc=lacv=yes lavcopts=vcodec=mpeg4:vbitrate=1200 [mpeg4-hq] profile-desc="HQ MPEG4 encoding" profile=mpeg4 lavcopts=mbd=2:trell=yes:v4mv=yes