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


Groups > linux.debian.user > #228681

Re: How to manage audio volume unattended.

From Curt <curty@free.fr>
Newsgroups linux.debian.user
Subject Re: How to manage audio volume unattended.
Date 2020-11-15 13:50 +0100
Message-ID <BbpDH-6Ej-5@gated-at.bofh.it> (permalink)
References <Bbg7n-Uu-1@gated-at.bofh.it>
Organization Unorganized

Show all headers | View raw


On 2020-11-15, Juan R. de Silva <juan.r.d.silva@gmail.com> wrote:
> I use cron job to run VLC several times a day at predefined times. Each 
> time a different mp3 file is played and I need to set different audio 
> volume for each file. I also need to make it working unattended.
>
> I can set the volume by executing 'pactl set-sink-input-volume X Y%' but 
> to do it I need to know in advance X number, which is Sink Input number 
> used by VLC on every run. The problem is that VLC changes Sink Input on 
> each consequitive run.
>
> The correct number can be obtained by executing 'pactl list sink-inputs' 
> while VLC is run but this requieres my involvement.
>
> Is there any way either to get the VLC Input Sink # programmatically, or 
> to make VLC using the same Input Sink it used at each previous run, or 
> let say some default Input Sink?
>
> If somebody can suggest another way to achieve the desired, please 
> suggest. For example, can anyone suggest a media player, which can accept 
> a desired volume level as a command line argument? Any other ideas?

Normalize the volume of the mp3 files beforehand rather than adjusting
the volume of the player in real time for each individual file (e.g.
with an app like python-rgain)? 

Or does this not speak to the reason for the volume changes?


> Thanks.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to manage audio volume unattended. "Juan R. de Silva" <juan.r.d.silva@gmail.com> - 2020-11-15 03:40 +0100
  Re: How to manage audio volume unattended. Andrei POPESCU <andreimpopescu@gmail.com> - 2020-11-15 10:00 +0100
  Re: How to manage audio volume unattended. Curt <curty@free.fr> - 2020-11-15 13:50 +0100
    Re: How to manage audio volume unattended. "Juan R. de Silva" <juan.r.d.silva@gmail.com> - 2020-11-15 22:10 +0100
      Re: How to manage audio volume unattended. Curt <curty@free.fr> - 2020-11-16 12:30 +0100
  Re: How to manage audio volume unattended. didier gaumet <didier.gaumet@gmail.com> - 2020-11-15 14:20 +0100
    Re: How to manage audio volume unattended. didier gaumet <didier.gaumet@gmail.com> - 2020-11-15 15:10 +0100
  Re: How to manage audio volume unattended. Dan Ritter <dsr@randomstring.org> - 2020-11-15 15:40 +0100
  Re: How to manage audio volume unattended. Brian <ad44@cityscape.co.uk> - 2020-11-15 15:50 +0100
    Re: How to manage audio volume unattended. "Juan R. de Silva" <juan.r.d.silva@gmail.com> - 2020-11-15 22:00 +0100
  Re: How to manage audio volume unattended. "Juan R. de Silva" <juan.r.d.silva@gmail.com> - 2020-11-15 22:00 +0100

csiph-web