[MPlayer-dev-eng] [PATCH] remember the volume in a playlist with all AOs

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Dec 27 16:42:53 CET 2009


On Sun, Dec 27, 2009 at 04:19:06PM +0100, Adrian Stutz wrote:
> On Sat, Dec 26, 2009 at 10:25 AM, Reimar Döffinger
> <Reimar.Doeffinger at gmx.de> wrote:
> > -volume should have preference, otherwise you break e.g. per-file config
> > files with -volume in it.
> > It also allows disabling this new feature by specifying -volume on the
> > commandline.
> > However, it might be a good idea to add a flag to the AOs so we don't do
> > this for AOs that also prefer it on their own, possible in a more
> > intelligent way (pulseaudio, to a degree OSS...).
> 
> There should also be a way of specifying an initial volume, which then
> can be changed by the user and will stay at whatever level without
> reverting on each file or ordered chapter change.
> 
> This is the case for front-ends which offer a volume slider which
> should not reset. The front-ends still have to set the initial volume
> (using the slave mode can result in short volume bursts, especially
> bad if the playback should start muted) but whatever volume the user
> sets during playback should then stick.
> 
> Maybe this needs an -initalvolume (or similar) option? i.e. a way to
> change the initial 25% the volume is set to and which then can be
> overridden by subsequent -volume options?

Uh, just set -volume only for those files where you want the volume to
be reset?
E.g.:
mplayer file1 -volume 100 file2 file3
to start with 100% volume but then keep the volume for the remaining
files (of course the last part only working with the patch or specific
AOs like pulse, OSS).



More information about the MPlayer-dev-eng mailing list