Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Blogs > linux-related notes
User Name


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Rate this Entry

Mplayer configuration tips

Posted 07-07-2012 at 01:50 AM by the dsc
Updated 02-09-2013 at 08:32 PM by the dsc (adding more content)

Setting the default volume for mplayer and gmplayer

Despite of having different config files, "config" and "gui.conf", this is one configuration that gmplayer inherits from "config", and will be ignored if set on "gui.conf", with the volume being reset to max and the line in the config file removed. That's one of those easter-eggs to give type As heart attacks. I think that's valid for Debian squeeze's gmplayer version, it may have changed afterward.

softvol = "yes"
"Softvol" stands for "software volume", meaning that mplayer will have its own "independent" volume relative to the OS global volume settings such as PCM, Master, Front, etc. I don't know why exactly the volume setting is negative, perhaps it's relative to some absolute default that is not zero, that just happened to be the value that sounded OK for me.

Controls for brightness, contrast and saturation
(The keyboard shortcuts are the numbers in the number row)

Just use "vo=gl" instead of "vo=xv" (default I guess), no noticeable compromise in performance. I don't know the requirements for that, but right now I just have standard wheezy and/or squeezy packages from Debian's repositories, not debian-multimedia.

Changing subtitles colors

subfont-text-scale = "7"
I don't get exactly what's the deal with selecting the color, because if I recall when I tried to set yellow the subtitles would be cyan, and so on, I was probably using the wrong color "codes", and I couldn't find reference for the proper one to use. The subtitles are somehow yellow with black contours with the configuration above, anyway. Gui.conf has no options on subtitles colors, and it will be yellow as well, perhaps that's the default for "Advanced SubStation Alpha".

Fast or slower tempo, preserving pitch -- plus normalization

The "2" on volnorm means that it will base its normalization on two samples or something like that, the default is one.

Default and alternative configs for gmplayer

If you read an alternative gmplayer config file, it will overwrite the default one. The best way to circumvent that I've thought so far is simply to set whatever defaults and mark the gui.conf file as write-protected. So you can call alternative configs whenever you want (via "-gui-include"), and the default settings will be preserved. You just got to remember you've done that once you decide to change some default configuration, so you un-protect it for a while.
Posted in Uncategorized
Views 1635 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 04:02 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration