Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #219697 > unrolled thread

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

Started byEmanuel Berg <moasenwood@zoho.eu>
First post2020-03-02 01:30 +0100
Last post2020-03-05 20:00 +0100
Articles 10 — 6 participants

Back to article view | Back to linux.debian.user


Contents

  mplayer with -loop 0 but w/o volume reset? Emanuel Berg <moasenwood@zoho.eu> - 2020-03-02 01:30 +0100
    Re: mplayer with -loop 0 but w/o volume reset? Emanuel Berg <moasenwood@zoho.eu> - 2020-03-02 02:20 +0100
      Re: mplayer with -loop 0 but w/o volume reset? David Wright <deblis@lionunicorn.co.uk> - 2020-03-02 03:20 +0100
    Re: mplayer with -loop 0 but w/o volume reset? Curt <curty@free.fr> - 2020-03-02 10:10 +0100
      Re: mplayer with -loop 0 but w/o volume reset? David Wright <deblis@lionunicorn.co.uk> - 2020-03-02 19:20 +0100
        Re: mplayer with -loop 0 but w/o volume reset? Nicolas George <george@nsup.org> - 2020-03-02 19:30 +0100
        Re: mplayer with -loop 0 but w/o volume reset? Curt <curty@free.fr> - 2020-03-03 12:00 +0100
          Music players that save (different) volume settings for each song (was: Re: mplayer with -loop 0 but w/o volume reset? rhkramer@gmail.com - 2020-03-03 13:30 +0100
            Re: Music players that save (different) volume settings for each song (was: Re: mplayer with -loop 0 but w/o volume reset? Jonas Smedegaard <jonas@jones.dk> - 2020-03-03 14:20 +0100
            Re: Music players that save (different) volume settings for each  song (was: Re: mplayer with -loop 0 but w/o volume reset? David Wright <deblis@lionunicorn.co.uk> - 2020-03-05 20:00 +0100

#219697 — mplayer with -loop 0 but w/o volume reset?

FromEmanuel Berg <moasenwood@zoho.eu>
Date2020-03-02 01:30 +0100
Subjectmplayer with -loop 0 but w/o volume reset?
Message-ID<zFH85-3wb-1@gated-at.bofh.it>
Can I use mplayer with -loop 0 _but_ with the
volume not resetting when the file ends and
begins again?

I'm on Debian Buster if that matters, with

$ uname -a
Linux xxxx 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2
(2019-11-11) x86_64 GNU/Linux

and mplayer version 2:1.3.0-8+b4 (according to
'aptitude show', there seems to be no -version
option)

TIA

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

[toc] | [next] | [standalone]


#219698

FromEmanuel Berg <moasenwood@zoho.eu>
Date2020-03-02 02:20 +0100
Message-ID<zFHUv-41k-5@gated-at.bofh.it>
In reply to#219697
> 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

[toc] | [prev] | [next] | [standalone]


#219699

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2020-03-02 03:20 +0100
Message-ID<zFIQy-4zQ-5@gated-at.bofh.it>
In reply to#219698
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.

[toc] | [prev] | [next] | [standalone]


#219706

FromCurt <curty@free.fr>
Date2020-03-02 10:10 +0100
Message-ID<zFPfk-h8-3@gated-at.bofh.it>
In reply to#219697
On 2020-03-02, Emanuel Berg <moasenwood@zoho.eu> 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

[toc] | [prev] | [next] | [standalone]


#219723

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2020-03-02 19:20 +0100
Message-ID<zFXPA-5Bh-13@gated-at.bofh.it>
In reply to#219706
On Mon 02 Mar 2020 at 09:01:56 (-0000), Curt wrote:
> On 2020-03-02, Emanuel Berg <moasenwood@zoho.eu> 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.

[toc] | [prev] | [next] | [standalone]


#219724

FromNicolas George <george@nsup.org>
Date2020-03-02 19:30 +0100
Message-ID<zFXZg-5EG-5@gated-at.bofh.it>
In reply to#219723

[Multipart message — attachments visible in raw view] — view raw

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

[toc] | [prev] | [next] | [standalone]


#219743

FromCurt <curty@free.fr>
Date2020-03-03 12:00 +0100
Message-ID<zGdrk-6RX-3@gated-at.bofh.it>
In reply to#219723
On 2020-03-02, David Wright <deblis@lionunicorn.co.uk> 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

[toc] | [prev] | [next] | [standalone]


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

Fromrhkramer@gmail.com
Date2020-03-03 13:30 +0100
SubjectMusic players that save (different) volume settings for each song (was: Re: mplayer with -loop 0 but w/o volume reset?
Message-ID<zGeQp-7Uh-3@gated-at.bofh.it>
In reply to#219743
(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 <deblis@lionunicorn.co.uk> wrote:
> > $ mplayer -volume 50 -fs -loop 0 -softvol Youtube/Come\ Live\ With\
> > Me-_bVNd_sRlMk.mkv

[toc] | [prev] | [next] | [standalone]


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

FromJonas Smedegaard <jonas@jones.dk>
Date2020-03-03 14:20 +0100
SubjectRe: Music players that save (different) volume settings for each song (was: Re: mplayer with -loop 0 but w/o volume reset?
Message-ID<zGfCN-8pV-3@gated-at.bofh.it>
In reply to#219746

[Multipart message — attachments visible in raw view] — view raw

Quoting rhkramer@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

[toc] | [prev] | [next] | [standalone]


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

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2020-03-05 20:00 +0100
SubjectRe: Music players that save (different) volume settings for each song (was: Re: mplayer with -loop 0 but w/o volume reset?
Message-ID<zH3SW-5Jx-7@gated-at.bofh.it>
In reply to#219746
On Tue 03 Mar 2020 at 07:22:49 (-0500), rhkramer@gmail.com wrote:
> On Tuesday, March 03, 2020 05:57:27 AM Curt wrote:
> > On 2020-03-02, David Wright <deblis@lionunicorn.co.uk> 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.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web