HTML docs - config files - patch
Hi I noticed that the html documentation does not include much information about config files. Feeling in a festive mood I thought I would try and improve this. Then I discovered a need to know what docbook is 8-( So here is a patch based on what I have learnt today and the man pages. You are welcome to do what you like with it 8-) David Index: en/usage.xml =================================================================== --- en/usage.xml (revision 21785) +++ en/usage.xml (working copy) @@ -101,7 +101,86 @@ </para> </sect1> +<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> + +<sect1 id="conf"> +<title>Configuration Files</title> +<para> +<application>MPlayer</application> can use information stored in 3 types of configuration file. +<itemizedlist> + <listitem><para>System</para></listitem> + <listitem><para>User</para></listitem> + <listitem><para>File Specific</para></listitem> +</itemizedlist> +</para> +<para>The system wide configuration file <filename>mplayer.conf</filename>, + or for <application>MEncoder</application> <filename>mencoder.conf</filename>, + is in your configuration directory + (e.g. /etc/ mplayer or /usr/local/etc/mplayer). + As part of the install an example <filename>mplayer.conf</filename> is created with a number + of useful options well documented but commented out. +</para> +<para>The user file is called simply <filename>config</filename> +or for <application>MEncoder</application> <filename>mencoder.conf</filename>, and is located in ~/ .mplayer +This will not exist in a default installation, but can be added by the user. +</para> +<para>If you wish to have a configuration file for a file called <filename>movie.avi</filename>, +create a file named <filename>movie.avi.conf</filename> with the file-specific options in it +and put it in ~/.mplayer/. You can also put the configuration file in the same directory + as the file to be played, as long as you give the −use-filedir-conf option + (either on the command line or in your global config file). +</para> +<para>The options will be read in the following order with the later over ruling earlier options +</para> +<para> System ==> User ==> File ==> Command line +</para> +<formalpara><title>Syntax</title> +<para> Option=Value </para></formalpara> +<para> Where Option is any of the command line options, without the leading '-'. +The value will vary with each option, but must exist. Where normaly no value is used +'=yes' or '=1' or '=true' can be used. ('=no' or '=0' or '=false' to disable) +</para> +<para>Everything after a '#' is considered a comment</para> +<para> +Examples: +<screen> +# mplayer.conf +# Use Matrox driver by default. +vo=xmga +# I love practicing handstands while watching videos. +flip=yes +# Decode/encode multiple files from PNG, +# start with mf://filemask +mf=type=png:fps=25 +# Eerie negative images are cool. +vf=eq2=1.0:-0.8</screen> +<screen> +#mencoder.conf +# Make MEncoder output to a default filename. +o=encoded.avi +# The next 4 lines allow mencoder tv:// to start capturing immediately. +oac=pcm=yes +ovc=lavc=yes +lavcopts=vcodec=mjpeg +tv=driver=v4l2:input=1:width=768:height=576:device=/dev/video0:audiorate=48000 +# more complex default encoding option set +lavcopts=vcodec=mpeg4:autoaspect=1 +lameopts=aq=2:vbr=4 +ovc=lavc=1 +oac=lavc=1 +passlogfile=pass1stats.log +noautoexpand=1 +subfont-autoscale=3 +subfont-osd-scale=6 +subfont-text-scale=4 +subalign=2 +subpos=96 +spuaa=20 +</screen> +</para> +</sect1> + <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
Hi, David Stevenson wrote:
I noticed that the html documentation does not include much information about config files. Feeling in a festive mood I thought I would try and improve this. Then I discovered a need to know what docbook is 8-(
So here is a patch based on what I have learnt today and the man pages.
You are welcome to do what you like with it 8-)
This seems like a valuable addition to the docs. I'll do my best to review and merge it to the "official" docs ASAP. Sorry for the delay BTW, I've been offline for a while, painting the town red ;o) Guillaume
I noticed that the html documentation does not include much information about config files. Feeling in a festive mood I thought I would try and improve this. Then I discovered a need to know what docbook is 8-(
So here is a patch based on what I have learnt today and the man pages.
You are welcome to do what you like with it 8-)
This seems like a valuable addition to the docs. I'll do my best to review and merge it to the "official" docs ASAP. Thanks, compliments are what I need today 8-)
Sorry for the delay BTW, I've been offline for a while, painting the town red ;o) Hope you had a good time.
On Wed, Jan 03, 2007 at 10:30:35AM +0100, Guillaume Poirier wrote:
David Stevenson wrote:
I noticed that the html documentation does not include much information about config files. Feeling in a festive mood I thought I would try and improve this. Then I discovered a need to know what docbook is 8-(
So here is a patch based on what I have learnt today and the man pages.
You are welcome to do what you like with it 8-)
This seems like a valuable addition to the docs. I'll do my best to review and merge it to the "official" docs ASAP.
It looks as though this is duplicated from the man page, though.
Sorry for the delay BTW, I've been offline for a while, painting the town red ;o)
Peculiar way to pass time ... Diego
Hi, On 1/4/07, Diego Biurrun <diego@biurrun.de> wrote:
On Wed, Jan 03, 2007 at 10:30:35AM +0100, Guillaume Poirier wrote:
This seems like a valuable addition to the docs. I'll do my best to review and merge it to the "official" docs ASAP.
It looks as though this is duplicated from the man page, though.
Indeed. I had not carefully read it previously, and now I see that there's nothing that isn't already covered in the man page. Nice effort David though. Feel free to improve other areas of the doc if you still wanna learn some docbook. Guillaume -- An association of men who will not quarrel with one another is a thing which has never yet existed, from the greatest confederacy of nations down to a town meeting or a vestry. -- Thomas Jefferson (when interviewed about MPlayer ML flamewars) http://www.brainyquote.com/quotes/quotes/t/thomasjeff157207.html
Nice effort David though. Feel free to improve other areas of the doc if you still wanna learn some docbook.
OK that is fine. I just felt that the html should mention the fact config files exist. The control via the command line is mentioned in both, but the config files only in the man pages. Is there a guide for what should be in the html? David
participants (5)
-
david -
David Stevenson -
Diego Biurrun -
Guillaume Poirier -
Guillaume POIRIER