Author Topic: Show off your mplayer config file  (Read 6368 times)

Offline dankles

  • Member
  • Posts: 963
  • Don't remember what you can infer
Show off your mplayer config file
« on: July 06, 2009, 02:06:07 AM »
I thought it would be cool to get ideas from other people.

Here is mine:
Code: [Select]
# Write your default config options here!
cache=8000
vo=vdpau,xv,
vc=ffh264vdpau,ffmpeg12vdpau,
ao=alsa

ass=true
#Turn on SSA/ASS subtitle rendering. With this option, libass will be used for SSA/ASS external subtitles and Matroska tracks. You may also want to use embeddedfonts.
#NOTE: Unlike normal OSD, libass uses fontconfig by default. To disable it, use nofontconfig.

ass-border-color=0x00000040
# Sets the border (outline) color for text subtitles. The color format is RRGGBBAA. <-- actually it is AABBGGRR; 12345678 goes 78563412
# transparency % value: 100 95 90 85 80 75 70 65 60 55 50 45 40 35 30 25 20 15 10 5  0
# adding after   "0x" :  FF F2 E6 D9 CC BF B3 A6 99 8C 80 73 66 59 4D 40 33 26 1A 0D 00
# e.g. "black" 25% transparent would be: 0x4000EFFF

ass-color=0xFFEF0026
# Sets the color for text subtitles. The color format is RRGGBBAA. <-- actually it is AABBGGRR; 12345678 goes 78563412
# e.g. "process yellow" 15% transparent would be: 0x2600EFFF

ass-font-scale=1
# Set the scale coefficient to be used for fonts in the SSA/ASS renderer.
# 0-100

#ass-force-style="FontName=FreeSans,Default.Bold=1,PrimaryColour=0x2600EFFF,OutlineColour=0x40000000,Outline=1,Shadow=1,Italic=0,BackColour=0x40000000,SecondaryColour=0x40FFFFFF,BorderStyle=1,Underline=0,Strikeout=0"
# Override some style or script info parameters.
# e.g. ass-force-style=FontName=FreeSans,Default.Bold=1

ass-hinting=7
# 0 - no hinting
# 1 - FreeType autohinter, light mode
# 2 - FreeType autohinter, normal mode
# 3 - font native hinter
# 03 + 4 - The same, but hinting will only be performed if the OSD is rendered at screen resolution and will therefore not be scaled.
# The default value is 7 (use native hinter for unscaled OSD and no hinting otherwise).


embeddedfonts=true
# Enables extraction of Matroska embedded fonts (default: disabled). These fonts can be used for SSA/ASS subtitle rendering (ass option). Font files are created in the ~/.mplayer/fonts directory.
# NOTE: With FontConfig 2.4.2 or newer, embedded fonts are opened directly from memory, and this option is enabled by default.

font="FreeSans:style=Bold"
# font="FreeSans:style=BoldOblique"
# font="FreeSans:style=Medium"
# font="FreeSans:style=Oblique"
# font="Verdana:style=Bold"
# font="FreeUniversal:style=Bold"
# With Fontconfig, this option determines the Fontconfig font pattern.

fontconfig=true
# Enables the usage of fontconfig managed fonts.
# NOTE: By default fontconfig is used for libassrendered subtitles and not used for OSD. With -fontconfig it is used for both libass and OSD, with -nofontconfig it is not used at all.


slang=English,eng,en
# Specify a priority list of subtitle languages to use. Different container formats employ different language codes. DVDs use ISO 6391 two letter language codes, Matroska uses ISO 639-2 three letter language codes while OGM uses a free-form identifier. MPlayer prints the available languages when run in verbose (-v) mode.
# mplayer dvd://1 slang hu,en
# Chooses the Hungarian subtitle track on a DVD and falls back on English if Hungarian is not available.
# mplayer slang jpn example.mkv
# Plays a Matroska file with Japanese subtitles.


spuaa=4
# Antialiasing/scaling mode for DVD/VOBsub. A value of 16 may be added to <mode> in order to force scaling even when original and scaled frame size already match. This can be employed to e.g. smooth subtitles with gaussian blur. Available modes are:
# 0 - none (fastest, very ugly)
# 1 - approximate (broken?)
# 2 - full (slow)
# 3 - bilinear (default, fast and not too bad)
# 4 - uses swscaler gaussian blur (looks very good)

spugauss=2.5
# Variance parameter of gaussian used by spuaa 4. Higher means more blur (default: 1.0); 0.0-3.0

sub-bg-alpha=255 # default?
# Specify the alpha channel value for subtitles and OSD backgrounds. Big values mean more transparency. 0 means completely transparent; 0-255

sub-bg-color=0 # default?
# Specify the color value for subtitles and OSD backgrounds. Currently subtitles are grayscale so this value is equivalent to the intensity of the color. 255 means white and 0 black.

subfont-autoscale=3
# NOTE: 0 means that text scale and OSD scale are font heights in points.
# 0 - no autoscale
# 1 - proportional to movie height
# 2 - proportional to movie width
# 3 - proportional to movie diagonal (default)

subfont-blur=1
# Sets the font blur radius (default: 2); 0-8; 1/2 the value of ffactor and subfont-outline seems good

subfont-osd-scale=5
# Sets the autoscale coefficient of the OSD elements (default: 6); 0-100

subfont-outline=2
# Sets the font outline thickness (default: 2); 0-8

ffactor=2
# Resample the font alphamap. Can be:
# 0    - plain white fonts
# 0.75 - very narrow black outline (default)
# 1    - narrow black outline
# 10   - bold black outline

subfont-text-scale=5
# Sets the subtitle text autoscale coefficient as percentage of the screen size (default: 5); 0-100

alang=Japanese,jpn,ja
unicode=yes
utf8=yes

Offline molbjerg

  • Member
  • Posts: 1645
Re: Show off your mplayer config file
« Reply #1 on: July 06, 2009, 01:21:55 PM »
I like that config files' tits. Well nice.
all i can think of when i hear that garbage is just pounding guys in the ass

Offline c614h2

  • Member
  • Posts: 331
  • The cake is a lie
Re: Show off your mplayer config file
« Reply #2 on: July 07, 2009, 08:54:29 AM »
Does the vdpau actually work? And if so, which version of the nvidia driver are you using?

Offline dankles

  • Member
  • Posts: 963
  • Don't remember what you can infer
Re: Show off your mplayer config file
« Reply #3 on: July 07, 2009, 02:55:16 PM »
Does the vdpau actually work? And if so, which version of the nvidia driver are you using?
It works like a dream!!! It efing kicks ass!!!! screw the dumb ass coreavc crap!! With vdpau I can watch 1080p with almost 0% CPU.
Look here for details: http://en.wikipedia.org/wiki/VDPAU

You'll need an SVN copy of mplayer + NV driver 180 or higher + a compatible video card.

Offline bloody000

  • Member
  • Posts: 1401
Re: Show off your mplayer config file
« Reply #4 on: July 07, 2009, 06:56:35 PM »
Not so noble now are you? ::)
All you have to do is study it out. Just study it out.

Offline c614h2

  • Member
  • Posts: 331
  • The cake is a lie
Re: Show off your mplayer config file
« Reply #5 on: July 08, 2009, 09:43:31 AM »
Got it working, but it plays frames out of order and some videos don't work.  Tried upgrading from video driver 180 to 185, but that froze when I tried to start GDM.

On the plus side,  I don't need VDPAU to play 1080p ;p

Offline dankles

  • Member
  • Posts: 963
  • Don't remember what you can infer
Re: Show off your mplayer config file
« Reply #6 on: July 08, 2009, 12:12:24 PM »
Got it working, but it plays frames out of order and some videos don't work.  Tried upgrading from video driver 180 to 185, but that froze when I tried to start GDM.

On the plus side,  I don't need VDPAU to play 1080p ;p
What SVN release did you use? What distro are you on and what video card do you have? Cuz i haven't had a single problem with my nvidia 8600GT.
Also, I'm on nvidia 185.

Offline c614h2

  • Member
  • Posts: 331
  • The cake is a lie
Re: Show off your mplayer config file
« Reply #7 on: July 09, 2009, 07:52:16 AM »
rev 29415, ubuntu 8.10, GTX 295. Someone on the forums had the same freezing problem, and registering for them is a PITA so there must be more.

Offline dankles

  • Member
  • Posts: 963
  • Don't remember what you can infer
Re: Show off your mplayer config file
« Reply #8 on: July 09, 2009, 02:34:21 PM »
rev 29415, ubuntu 8.10, GTX 295. Someone on the forums had the same freezing problem, and registering for them is a PITA so there must be more.
weird...

Offline Kuroshima

  • Member
  • Posts: 150
Re: Show off your mplayer config file
« Reply #9 on: November 30, 2009, 05:47:15 PM »
How do you enable vdpau on by default for h264?
I'm fairlyl new to Linux (haven't usedin a while)  so I'm not sure how I would add parameter:
is it
-vo ffh264vdpau -vc %F
with %F being file?
Can I have this done in./configure?
Then compile?

Help would be appreciated...
I realize this is an old thread... I'm wondering if it's ok to revive this..



Offline dankles

  • Member
  • Posts: 963
  • Don't remember what you can infer
Re: Show off your mplayer config file
« Reply #10 on: November 30, 2009, 07:47:03 PM »
How do you enable vdpau on by default for h264?
I'm fairlyl new to Linux (haven't usedin a while)  so I'm not sure how I would add parameter:
is it
-vo ffh264vdpau -vc %F
with %F being file?
Can I have this done in./configure?
Then compile?

Help would be appreciated...
I realize this is an old thread... I'm wondering if it's ok to revive this..

Which version of mplayer do you have? u need one that has vdpau support. And you also need an Nvidia 8000 series or higher graphics card (ATI, intel, Via, etc cards wont support vdpau). If you have all the prerequisites then you can just try from the comand line:
Code: [Select]
mplayer -vc ffh264vdpau -vo vdpau filename.mkv

if that works then just copy the relevant sections of my config file to yours.

Feel free to ask questions.


Offline Kuroshima

  • Member
  • Posts: 150
Re: Show off your mplayer config file
« Reply #11 on: November 30, 2009, 08:34:59 PM »
Ok sweet.... I had karmic koala (mint 8) with a capable mplayer build....
Then I did something stupid. (yes I'm a super n00b) and uninstalled the curently one (the one in the package manager) and built one from source forcing a compile (because I used --enable-gui),
it pretty much broke my mplayer... I'm not exactly sure how to clean up all the left over stuff and uninstall it.
I'm pretty sure ican run option make uninstall because I still have my make file... Willthis be able to clean up all the crap in my file system so I can install the original package from apt-get?
I'll try when I get home.

Thanks for the help! :) 

Offline Xiong Chiamiov

  • Member
  • Posts: 3012
  • I'm gonna tolerate and love the SHIT out of you!
    • changedmy.name
Re: Show off your mplayer config file
« Reply #12 on: November 30, 2009, 09:33:54 PM »
Quote
make uninstall
if you got to doing a 'make install'.  If you didn't, then there shouldn't be any files outside of the source directory.
Projects of interest: nagi | sheska | bdg
Posts made between 2009-05-09 and 2011-08-26 were in the capacity of staff.  Please read accordingly.

Offline dankles

  • Member
  • Posts: 963
  • Don't remember what you can infer
Re: Show off your mplayer config file
« Reply #13 on: November 30, 2009, 09:36:58 PM »
Here is what I would do if i was you:

- run make uninstall from the same directory you ran make install do get rid of the mplayer u manually installed. If you deleted that directory then ur SOL... but it sounds like you didn't.

- install mplayer from this repository (mplayer comes with ubuntu, but this version is better and it supports vdpau):
http://avenard.org/media/Ubuntu_Repository/Ubuntu_Repository.html

- You said you wanted a GUI, so i would recommend using smplayer (a great, fully featured front end to mplayer): http://smplayer.sourceforge.net/
use this repository to get the official smplayer builds for ubuntu (smplayer comes with ubuntu, but this version is better): https://launchpad.net/~rvm/+archive/smplayer

- after you have these installed, just select vdpau as the display output in smplayer, then smplayer will do the rest (no need to add stuff like ffh264vdpau as a driver).

- Also, you will want to disable framedropping in smplayer because that can cause wierd issues with H264 stuff.



let me know if this works for you.

Offline Kuroshima

  • Member
  • Posts: 150
Re: Show off your mplayer config file
« Reply #14 on: November 30, 2009, 09:45:46 PM »
Thank you for the prompt responses. I still have the install directory with the make file.
It's too bad I didn't realize the version of mplayer I had (Linux mint 8) already had vdpau integrated.

Doesn't mplayer already have GUI? Since smplayer is a frontend it would just extend functionality... Pretty much mplayer running underneath correct?

Thanks for all the help. I need to try this when I get home...

edit: i have issues adding ppa repositories...not sure why. This is a new installation.

I'll compile smplayer from source...should be ok right?

double edit:
Ok installed smplayer from source.

also... this is kinda off topic but, whenever I want to check if I have the correct dependencies for a application I should run:
sudo apt-get (or aptitude) build-dep <package>
right?
however, i get "you need to add source URI to sources.list
is this the source file in:
/etc/apt/sources.list
?
^-- edit: okay, fixed this issue. You need to add
<code>
deb-src "repository"
</code>
add these to all the repositories in your sources.list. Making a deb-src line for each repository. This will allow you to use
"build-dep" without getting [E: You must put some 'source' URIs in your sources.list ], allowing you to acquire the dependencies of what your are compiling.
I do notice that only the original sources that come with the distro are there. Maybe this is linked with my problem of adding ppa in synaptic...
I really don't know...

triple edit: :p
vdpau works now using smplayer with it enabled. Thanks a lot for all the help.
cpu load is now *just* 30 % :D
yeah...i have a 939 athlong @2.2 8)

oh btw...where's the mplayer config file? <-- super n00b question. in usr/lib?
« Last Edit: December 03, 2009, 03:35:08 AM by Kuroshima »

Offline Xiong Chiamiov

  • Member
  • Posts: 3012
  • I'm gonna tolerate and love the SHIT out of you!
    • changedmy.name
Re: Show off your mplayer config file
« Reply #15 on: December 01, 2009, 07:36:44 AM »
Doesn't mplayer already have GUI?
Yes, but it sucks balls.

Quote
oh btw...where's the mplayer config file? <-- super n00b question. in usr/lib?
Mine seem to be in /etc/mplayer (system-wide) and ~/.mplayer/ (per-user).

All this compiling separately from the package manager... is one of the reasons I love my Arch. <3
Projects of interest: nagi | sheska | bdg
Posts made between 2009-05-09 and 2011-08-26 were in the capacity of staff.  Please read accordingly.

Offline Kuroshima

  • Member
  • Posts: 150
Re: Show off your mplayer config file
« Reply #16 on: December 01, 2009, 01:11:39 PM »
I know I believe I like watching the text scroll down the screen.... I just regret I sold my quad core... This single core sucks....

Thanks I actually don't mind the GUI of mplayerthat much... Smplayer is nice once I apply that mpc skin...
I need to configure it to work exactly like mpc...I'm pretty sure that would be kinda tricky...
• is the only way to uninstall custom built apps to use the original makefile and make uninstall?

Offline Xiong Chiamiov

  • Member
  • Posts: 3012
  • I'm gonna tolerate and love the SHIT out of you!
    • changedmy.name
Re: Show off your mplayer config file
« Reply #17 on: December 02, 2009, 05:10:26 AM »
Well, it's just a make task, so you could do the same thing manually.  It'll probably have some conditionals in there, though, based on how you ./configure it.

Remember, uninstalling is just deleting files.  There's no Windows registry here.
Projects of interest: nagi | sheska | bdg
Posts made between 2009-05-09 and 2011-08-26 were in the capacity of staff.  Please read accordingly.

Offline Kuroshima

  • Member
  • Posts: 150
Re: Show off your mplayer config file
« Reply #18 on: December 02, 2009, 06:13:26 AM »
Indeed. However it is a problem when you don't know where those files are ;)

any way to modify the mplayer.config (or smplayer in this case), to pause the video when I click it?
That is probably something that would be in the source right?

Offline kureshii

  • Former Staff
  • Member
  • Posts: 4485
  • May typeset edited light novels if asked nicely.
Re: Show off your mplayer config file
« Reply #19 on: December 10, 2009, 01:01:04 PM »
No point showing my config file here since I'm using mplayer through SMPlayer frontend (yeah, I like GUI convenience), but here's the command used for invoking mplayer:

/usr/bin/mplayer -noquiet -nofs -nomouseinput -lavdopts threads=4 -sub-fuzziness 1 -identify -msglevel demux=6 -slave -vo xv:adaptor=0 -ao alsa -nokeepaspect -autosync 100 -nodr -double -input conf=/usr/share/smplayer/input.conf -stop-xscreensaver -wid 25165839 -monitorpixelaspect 1 -ass -embeddedfonts -ass-line-spacing 0 -ass-font-scale 1 -ass-styles /home/kureshii/.config/smplayer/styles.ass -fontconfig -font FreeSans -subfont-autoscale 0 -subfont-osd-scale 24 -subfont-text-scale 24 -subcp ISO-8859-1 -vid 0 -subpos 100 -cache 2000 -osdlevel 0 -vf-add hqdn3d,pp=ac -vf-add screenshot -slices -channels 6 -softvol -softvol-max 110 -sws 9 /path/of/file

Those options were all configured by SMPlayer, the only ones I added manually were "-sws 9" (lanczos scaling) and "-vf-add hqdn3d,pp=ac" (high-quality denoise and accurate deblocking).

One of these days when I have more time to sit down and explore manpages in detail I'll probably get latest mplayer compiled instead of using Ubuntu's outdated repo copy (which will add gradfun option as well). It works fine for now since I just want a working multimedia setup with minimal effort, at the moment serious work is still being done on the laptop and not in Ubuntu.
« Last Edit: December 10, 2009, 01:10:06 PM by kureshii »