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


Groups > linux.debian.user > #228684

Re: How to manage audio volume unattended.

From Dan Ritter <dsr@randomstring.org>
Newsgroups linux.debian.user
Subject Re: How to manage audio volume unattended.
Date 2020-11-15 15:40 +0100
Message-ID <Bbrma-7I0-15@gated-at.bofh.it> (permalink)
References <Bbg7n-Uu-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Juan R. de Silva 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.

VLC has a remote control feature -- several, actually. Control
can be handled by a command line, Lua, telnet, or http, among others.

https://wiki.videolan.org/Documentation:Modules/rc/

The command you are probably looking for is
volume [X] . . . . . . . . . . . . . . . . . .  set/get audio volume


-dsr-

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