LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-27-2015, 08:52 AM   #1
Miati
Member
 
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

Code:
(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-27-2015, 11:22 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Code:
(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, 09:04 AM   #3
Miati
Member
 
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.
 
  


Reply

Tags
mplayer, script



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 08:33 AM
How to start mplayer with reduced volume to 70pct ? mplayer -volume ? frenchn00b Linux - General 1 03-29-2008 08:29 AM
tar multiple volume archive - volume script RGummi Linux - General 2 08-31-2006 04:08 PM
MPlayer Volume tony500 Linux - General 4 04-27-2005 02:27 AM
How to change volume with mplayer WindowsBurner Linux - Software 1 12-10-2003 12:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:38 PM.

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