Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-27-2015, 09:52 AM   #1
Registered: Dec 2014
Distribution: Linux Mint 17.*
Posts: 326

Rep: Reputation: 106Reputation: 106
Script persistently lowering mplayer volume

I have a similar script as follows

(sleep 5m; echo "set_property volume 85 > "fifo_file")&

mplayer -volume 95 -quiet -slave -input file="fifo_file" song1 song2 song3
This makes the current song change volume to 85 after the 5 minute sleep period, but any songs after that revert to 95.

I want to keep it at volume 85 until the mplayer command completes but start at 95 until changed.

Is this possible?
Old 02-28-2015, 12:22 AM   #2
Senior Member
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
(echo "set_property volume 95 > fifo_file)& (sleep 5m: echo "set_property volume 85)& mplayer -quiet -slave -input file="fifo_file" song1 song2 song3
Might work
Old 03-01-2015, 10:04 AM   #3
Registered: Dec 2014
Distribution: Linux Mint 17.*
Posts: 326

Original Poster
Rep: Reputation: 106Reputation: 106
It didn't, but thanks for the effort.

I decided to switch to having a lower volume and doing a once change up to create a similar effect to what I want.
I would not consider this solved though.

There should be a scriptable way to change mplayer's volume persistenly after starting it and not be a per-song basis.


mplayer, script

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i make mplayer adjust only master volume rather than PCM volume Stevithen Linux - Desktop 2 04-04-2010 09:33 AM
How to start mplayer with reduced volume to 70pct ? mplayer -volume ? frenchn00b Linux - General 1 03-29-2008 09:29 AM
tar multiple volume archive - volume script RGummi Linux - General 2 08-31-2006 05:08 PM
MPlayer Volume tony500 Linux - General 4 04-27-2005 03:27 AM
How to change volume with mplayer WindowsBurner Linux - Software 1 12-10-2003 01:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration