LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Blogs > linux-related notes
User Name
Password

Notices

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.

Code:
softvol = "yes"
af=volume=-24
"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

Code:
ass=yes
#ass-color=FFFF00
ass-border-color=000000
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

Code:
af=scaletempo,volnorm=2:0.75,volume=2
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 848 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 11:23 AM.

Main Menu
Advertisement

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