Re: Music players that save (different) volume settings for each song (was: Re: mplayer with -loop 0 but w/o volume reset?

2020-03-05 Thread David Wright
On Tue 03 Mar 2020 at 07:22:49 (-0500), rhkra...@gmail.com wrote:
> On Tuesday, March 03, 2020 05:57:27 AM Curt wrote:
> > On 2020-03-02, David Wright  wrote:
> > > $ mplayer -volume 50 -fs -loop 0 -softvol Youtube/Come\ Live\ With\
> > > Me-_bVNd_sRlMk.mkv
> 
> (I'm not the OP.)  I wonder if there are any music players that can save a 
> (play)list along with a selected volume for each song on the playlist?  (Or 
> use a database of songs with volume setting, and then access the database as 
> the playlist calls for a song?)
> 
> (I'm aware of things (not sure that any are implemented in LInux music 
> players) that try to "normalize" the audio by either reviewing the content of 
> the entire song or some portion of it and and adjust the volume to be similar 
>  
> to the volume of other songs on the playlist, but those don't always work as 
> well as I would like.  Something that allowed you to set a volume for each 
> song (and maybe even store a list of volume changes for songs that had large 
> changes in volume) would be nice.)

The easiest way, with mpv, is to use the per-file options, just over
300 lines through the man page. For example, and using foo.mkv to
stand for the file above:

$ mpv --fs --\{ --volume=100 foo.mkv --\} --\{ --volume=50 foo.mkv --\} --\{ 
--volume=100 foo.mkv --\}

It might seem futile to triplicate one file for the playlist, but it
demonstrates that the volume changes are genuine.

Cheers,
David.



Re: Music players that save (different) volume settings for each song (was: Re: mplayer with -loop 0 but w/o volume reset?

2020-03-03 Thread Jonas Smedegaard
Quoting rhkra...@gmail.com (2020-03-03 13:22:49)
> (I'm not the OP.)  I wonder if there are any music players that can 
> save a (play)list along with a selected volume for each song on the 
> playlist?  (Or use a database of songs with volume setting, and then 
> access the database as the playlist calls for a song?)
> 
> (I'm aware of things (not sure that any are implemented in LInux music 
> players) that try to "normalize" the audio by either reviewing the 
> content of the entire song or some portion of it and and adjust the 
> volume to be similar to the volume of other songs on the playlist, but 
> those don't always work as well as I would like.  Something that 
> allowed you to set a volume for each song (and maybe even store a list 
> of volume changes for songs that had large changes in volume) would be 
> nice.)

I would use ID3 tags as "database", like this:

 2. Load all tunes into Picard, compute ReplayGain, and apply tags
 3. Use a player which respects ReplayGain tags to normalize volume
 4. Where some ReplayGain values are "wrong", manually adjust tags

Personally I would use Picard for tagging and ReplayGain computing 
(hint: configure it to enable module "ReplayGain"), and I would use MPD 
+ mpd-sima + ncmpcpp as player, but there are many many many options and 
most of them follows same general flow described above.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

signature.asc
Description: signature


Music players that save (different) volume settings for each song (was: Re: mplayer with -loop 0 but w/o volume reset?

2020-03-03 Thread rhkramer
(I'm not the OP.)  I wonder if there are any music players that can save a 
(play)list along with a selected volume for each song on the playlist?  (Or 
use a database of songs with volume setting, and then access the database as 
the playlist calls for a song?)

(I'm aware of things (not sure that any are implemented in LInux music 
players) that try to "normalize" the audio by either reviewing the content of 
the entire song or some portion of it and and adjust the volume to be similar  
to the volume of other songs on the playlist, but those don't always work as 
well as I would like.  Something that allowed you to set a volume for each 
song (and maybe even store a list of volume changes for songs that had large 
changes in volume) would be nice.)


On Tuesday, March 03, 2020 05:57:27 AM Curt wrote:
> On 2020-03-02, David Wright  wrote:
> > $ mplayer -volume 50 -fs -loop 0 -softvol Youtube/Come\ Live\ With\
> > Me-_bVNd_sRlMk.mkv



Re: mplayer with -loop 0 but w/o volume reset?

2020-03-03 Thread Curt
On 2020-03-02, David Wright  wrote:
>
> $ mplayer -volume 50 -fs -loop 0 -softvol Youtube/Come\ Live\ With\ 
> Me-_bVNd_sRlMk.mkv
>
> which sets the volume at 50%, and changed it with / and * whilst
> playing. The volume resets to 50% with each loop.
>

That's what I would expect and believed was what the OP was asking for,
failing somehow in miraculous fashion to derive the obvious inference
that he's changing the volume during play.

IOW, I misread his post.

I guess it's too much to ask that Emmanuel decide upon a commodious
volume before inducing the loop in order that I might save a little
face.


-- 
"J'ai pour me guérir du jugement des autres toute la distance qui me sépare de
moi." Antonin Artaud




Re: mplayer with -loop 0 but w/o volume reset?

2020-03-02 Thread Nicolas George
David Wright (12020-03-02):
> which sets the volume at 50%, and changed it with / and * whilst
> playing. The volume resets to 50% with each loop.

The reinit of the audio chain and the reset of the volume is hardcoded
in the source code, and there is no option similar to -fixed-vo to
disable it.

But you can go to the users mailing-list: if Alexander is around, he
might be able to patch something quickly.

Regards,

-- 
  Nicolas George


signature.asc
Description: PGP signature


Re: mplayer with -loop 0 but w/o volume reset?

2020-03-02 Thread David Wright
On Mon 02 Mar 2020 at 09:01:56 (-), Curt wrote:
> On 2020-03-02, Emanuel Berg  wrote:
> > Can I use mplayer with -loop 0 _but_ with the
> > volume not resetting when the file ends and
> > begins again?
> 
> It would seem a flabbergasting thing that a soft with a thousand flags 
> wouldn't
> have one or two to set the volume. What have you tried so far?
> 
>  mplayer RainyMood.mp3 -loop 0 -volume 55 &
> 
> ? 
> 
> I can't test this loopy hypothesis as I don't have mplayer installed on
> this machine. 
> 
> >From the man:
> 
>  -volume <-1-100> (also see -af volume)
> 
>  Set the startup volume in the mixer, either hardware or software (if
>  used with -softvol). A value of -1 (the default) will not change the
>  volume.

On my system, that doesn't work either. I used as an example:

$ mplayer -volume 50 -fs -loop 0 -softvol Youtube/Come\ Live\ With\ 
Me-_bVNd_sRlMk.mkv

which sets the volume at 50%, and changed it with / and * whilst
playing. The volume resets to 50% with each loop.

$ mplayer -volume -1 -fs -loop 0 -softvol Youtube/Come\ Live\ With\ 
Me-_bVNd_sRlMk.mkv

The volume starts at 100% with each loop, regardless of how it was
changed during playing.

$ mplayer -volume '-1' -fs -loop 0 -softvol Youtube/Come\ Live\ With\ 
Me-_bVNd_sRlMk.mkv

Ditto.

Actually, the -softvol is redundant here, as mplayer doesn't have
any effect on my ALSA mixer settings. (Which would it choose?)

> Maybe there ain't no way and you'll be obliged to switch to vlc or
> something.

I'm not sure I'd install vlc just for looping when mpv can handle it
satisfactorily already. What else would it buy me? (for 40 extra
packages including Recommends).

Cheers,
David.



Re: mplayer with -loop 0 but w/o volume reset?

2020-03-02 Thread Curt
On 2020-03-02, Emanuel Berg  wrote:
> Can I use mplayer with -loop 0 _but_ with the
> volume not resetting when the file ends and
> begins again?
>

It would seem a flabbergasting thing that a soft with a thousand flags wouldn't
have one or two to set the volume. What have you tried so far?

 mplayer RainyMood.mp3 -loop 0 -volume 55 &

? 

I can't test this loopy hypothesis as I don't have mplayer installed on
this machine. 

>From the man:

 -volume <-1-100> (also see -af volume)

 Set the startup volume in the mixer, either hardware or software (if
 used with -softvol). A value of -1 (the default) will not change the
 volume.

Maybe there ain't no way and you'll be obliged to switch to vlc or
something.


-- 
"J'ai pour me guérir du jugement des autres toute la distance qui me sépare de
moi." Antonin Artaud




Re: mplayer with -loop 0 but w/o volume reset?

2020-03-01 Thread David Wright
On Mon 02 Mar 2020 at 02:15:51 (+0100), Emanuel Berg wrote:
> > Can I use mplayer with -loop 0 _but_ with the
> > volume not resetting when the file ends and
> > begins again?
> 
> mpv with --loop-playlist does this if one cares
> to change media player.

Yes, as mpv's manpage points out:

"Normally, mpv will try to keep all settings when playing the next
 file on the playlist, even if they were changed by the user
 during playback. (This behavior is the opposite of MPlayer's,
 which tries to reset all settings when starting next file.)"

I see no option for overriding it in mplayer. There's a noticeable
hiatus between its loops anyway, which limits its usefulness.

Cheers,
David.



Re: mplayer with -loop 0 but w/o volume reset?

2020-03-01 Thread Emanuel Berg
> Can I use mplayer with -loop 0 _but_ with the
> volume not resetting when the file ends and
> begins again?

mpv with --loop-playlist does this if one cares
to change media player.

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal