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


Groups > linux.debian.user > #228665

How to manage audio volume unattended.

From "Juan R. de Silva" <juan.r.d.silva@gmail.com>
Newsgroups linux.debian.user
Subject How to manage audio volume unattended.
Date 2020-11-15 03:40 +0100
Message-ID <Bbg7n-Uu-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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?

Thanks.

Back to linux.debian.user | Previous | Next — 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