[MPlayer-dev-eng] [PATCH] Allow loading config per stream type.

Benjamin Zores ben at geexbox.org
Sat Jan 5 16:14:49 CET 2008


On Jan 4, 2008 2:02 PM, Benjamin Zores <ben at geexbox.org> wrote:
> On Jan 4, 2008 12:58 PM, Ulion <ulion2002 at gmail.com> wrote:
>
> > Could this be implemented by using the [section] in mplayer's config file?
> > i.g. [protocol.dvd], [protocol.dvdnav], [fileext.mp4], etc.

What about attached patch then ?
It uses profiles in mplayer.conf as it does for mencoder, except that
they are automatically loaded (you don't need to pass the -profile
option to command line).

Example of mplayer.conf addition:

[protocol.dvd]
profile-desc="Profile for dvd:// streams"

[protocol.tv]
profile-desc="Profile for tv:// streams"
tv=driver=dummy
vo=sdl

[extension.mpeg]
profile-desc="Profile for MPEG files"
vo=x11

Documentation will of course be appended accordingly if applied.


-- 
"My life, and by extension everyone else's is meaningless."
Bender, Futurama
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-mplayer-conf-per-protocol-extension.diff
Type: text/x-diff
Size: 3629 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080105/e65a2345/attachment.diff>


More information about the MPlayer-dev-eng mailing list