You are not logged in.

#1 2007-10-27 19:20:33

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

[SOLVED] mplayer configuring help

hi! i see a lot of mplayer adepts here! so i wanna configure my ~/.mplayer/input config file so with diferent keys i can:

- change subtitle size
- change aspect ratio
- change audio track
- enable/disable deinterlace

and my ~/.mplayer/config
- have enabled by default postprocessing enabled
- have enabled by default volume normalization (and a key to enable/disable)
- have enabled by default video deblocking

i have read the http://www.mplayerhq.hu/DOCS/HTML-singl … layer.html page, but the examples and other things i want dont get clear how to implement them...
for example:
mplayer media.avi -af volnorm
Does the volume normalization i want, but dont know hoy to make it enabled by default, i add -af volnorm to ~/.mplayer/config but it says
$ Option -af needs a parameter at line 2
for example...

TNX in advice!

Last edited by leo2501 (2007-10-27 23:18:04)


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#2 2007-10-27 19:47:58

ProzacR
Member
Registered: 2007-04-29
Posts: 272

Re: [SOLVED] mplayer configuring help

I think much better concentrated explanation withount useless chichat is here:
http://gentoo-wiki.com/HOWTO_MPlayer
and at all gento-wiki rocks wink

But say if you still need help.

Offline

#3 2007-10-27 19:53:13

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: [SOLVED] mplayer configuring help

yes, its nice to start, but it dont say anything about those specific things i think would help a lot of people not only me tongue and i dont found anywhere


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#4 2007-10-27 19:57:08

ProzacR
Member
Registered: 2007-04-29
Posts: 272

Re: [SOLVED] mplayer configuring help

Arguments that you would normally pass with mplayer would be put in the config file in format argument=option,option. If an argument has suboptions, each one is separated with a colon.

so you have to add af=volnorm not -af volnorm.
And i do not remember all opts too so just look with command:
man mplayer
Then press / to input search term.

Last edited by ProzacR (2007-10-27 19:57:42)

Offline

#5 2007-10-27 21:55:25

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: [SOLVED] mplayer configuring help

my ~/.mplayer/config so far:

# Write your default config options here!
vo=xv
ao=alsa
channels=2
alang=en,es
monitoraspect = "16:10"
subfont-osd-scale=3
subfont-text-scale=3
autoq=6
volnorm="1:1" [NOT WORK]
hqdn3d="4:3:6" [NOT WORK]

big_smile with it i have no more to much big subtitles, aspect ratio now is set for 16:10 widescreen monitor, and with autoq i think i set postprocessing
but volnorm and hqdn3d are not working, the volume dont get normalizad and the picture quality is the same, so i think those settings need an adjustment...

im still searching how:

- change subtitle size [DONE] -> ~/.mplayer/config -> subfont-text-scale=3
- change aspect ratio [DONE] -> ~/.mplayer/config -> monitoraspect = "16:10"
- change audio track [DONE] "#" key (as say man page for mplayer: "(MPEG and Matroska only) Cycle through the available audio tracks."
- enable/disable deinterlace
- have enabled by default postprocessing enabled
- have enabled by default volume normalization (and a key to enable/disable)
- have enabled by default video deblocking

man page (so more easy, if someone knows hoy to insert this in the ~/.mplayer/config file:

volnorm[=method:target]
              Maximizes the volume without distorting the sound.
                 <method>
                      Sets the used method.
                         1: Use a single sample to smooth the  variations  via
                         the  standard  weighted  mean  over past samples (de-
                         fault).
                         2: Use several samples to smooth the  variations  via
                         the standard weighted mean over past samples.

                 <target>
                      Sets  the  target amplitude as a fraction of the maximum
                      for the sample type (default: 0.25).

pp[=filter1[:option1[:option2...]]/[-]filter2...] (also see -pphelp)
              Enables  the specified chain of postprocessing subfilters.  Sub-
              filters must be separated by '/' and can be disabled by prepend-
              ing  a  '-'.  Each subfilter and some options have a short and a
              long name that can be used interchangeably, i.e.  dr/dering  are
              the  same.   All  subfilters  share  common options to determine
              their scope:
                 a/autoq
                      Automatically switch the subfilter off if the CPU is too
                      slow.
                 c/chrom
                      Do chrominance filtering, too (default).
                 y/nochrom
                      Do luminance filtering only (no chrominance).
                 n/noluma
                      Do chrominance filtering only (no luminance).

              NOTE: -pphelp shows a list of available subfilters.

              Available subfilters are

                 hb/hdeblock[:difference[:flatness]]
                      horizontal deblocking filter

                 dr/dering
                      deringing filter

                 lb/linblenddeint
                      Linear  blend deinterlacing filter that deinterlaces the
                      given block by filtering all lines with a (1 2  1)  fil-
                      ter.

                 li/linipoldeint
                      Linear  interpolating deinterlacing filter that deinter-
                      laces the given block by  linearly  interpolating  every
                      second line.

                 ci/cubicipoldeint
                      Cubic  interpolating  deinterlacing  filter deinterlaces
                      the given block by cubically interpolating every  second
                      line.

                 md/mediandeint
                      Median  deinterlacing filter that deinterlaces the given
                      block by applying a median filter to every second  line.

                 fd/ffmpegdeint
                      FFmpeg  deinterlacing filter that deinterlaces the given
                      block by filtering every second line with a (-1  4  2  4
                      -1) filter.

                 de/default
                      default pp filter combination (hb:a,vb:a,dr:a)

                 fa/fast
                      fast pp filter combination (h1:a,v1:a,dr:a)

                 ac
                      high      quality      pp       filter       combination
                      (ha:a:128:7,va:a,dr:a)


denoise3d[=luma:chroma:time]
              This  filter  aims to reduce image noise producing smooth images
              and making still images really still (This should  enhance  com-
              pressibility.).
                 <luma>
                      spatial luma strength (default: 4)
                 <chroma>
                      spatial chroma strength (default: 3)
                 <time>
                      temporal strength (default: 6)

hqdn3d[=luma:chroma:time]
              High precision/quality version of the denoise3d filter.  Parame-
              ters and usage are the same.


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#6 2007-10-27 21:59:21

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: [SOLVED] mplayer configuring help

lol, ProzacR thanks for the last reply!, with that and the man page i see if i can build my config and share it with all! tongue


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#7 2007-10-27 23:17:40

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: [SOLVED] mplayer configuring help

# Write your default config options here!
vo=xv
ao=alsa
channels=2
alang=en,es
monitoraspect = "16:10"
subfont-osd-scale=3
subfont-text-scale=3
af=volnorm
vf=denoise3d,pp

finally all work smile


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

Board footer

Powered by FluxBB