christophbeatty / gnome-mplayer

Automatically exported from code.google.com/p/gnome-mplayer
GNU General Public License v2.0
0 stars 1 forks source link

gnome-mplayer changes system volume to max on every song change. #349

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open gnome-mplayer to play mp3's
2. Play music
3. gnome / system volume is set to 100% 
(3.5: quickly mute system or turn down volume before you blow the speakers.)
4. this happens every time a new song starts playing.

What is the expected output? What do you see instead?

Expected: The volume will remain unchanged. If any adjustments are
required, the user can make them manually.

Instead: Loud unsettling volume spikes make gnome-mplayer unusable.

What version of the product are you using? On what operating system?

I am running Fedora 12 using pulse audio. I initially tried using a
pre-compiled version from the rpmfusion repository. When that didn't work I
checked out a copy from svn and compiled it. The problem is still present.

Please provide any additional information below.

I have tried playing with the various volume related options in the
preferences to no avail. (default volume level, software volume control, etc.)

ps. Thanks for maintaining this project :) your efforts are appreciated.

Original issue reported on code.google.com by ilikejun...@gmail.com on 27 Jan 2010 at 6:49

GoogleCodeExporter commented 8 years ago
Has been reported several times and is fixed in SVN

Original comment by kdeko...@gmail.com on 27 Jan 2010 at 12:13

GoogleCodeExporter commented 8 years ago
This issue is actually different than the one that it has been marked a 
duplicate of
and has not been fixed in svn. As originally stated, one of the steps I took to 
try
to resolve the issue was to download and compile from svn, however that did not 
fix
it. I double checked again tonight compiling the svn version and yes the 
problem is
still manifesting its self.

The difference between the issue I submitted and the one that it was merged 
with is
that when I play a song it starts each song by instantaneously setting the 
volume to
100% and blasts the audio out. Where as the issue talhajj reported caused the 
volume
to slowly fade to 0% during playback (I have also experienced similar symptoms 
in
some versions of the player, but it is not what i was reporting.)

Original comment by ilikejun...@gmail.com on 29 Jan 2010 at 7:09

GoogleCodeExporter commented 8 years ago
What AO are you using and do you have pulseaudio installed and if you have it
installed what version do you have. There are a couple of config or build time
options that can really affect this. So knowing all this can be helpful

Original comment by kdeko...@gmail.com on 29 Jan 2010 at 2:25

GoogleCodeExporter commented 8 years ago
Sorry , I don't know what AO means.

$ pulseaudio --version
pulseaudio 0.9.21

Original comment by ilikejun...@gmail.com on 29 Jan 2010 at 5:20

GoogleCodeExporter commented 8 years ago
What audio output do you have selected in gnome-mplayer?

Original comment by kdeko...@gmail.com on 29 Jan 2010 at 5:33

GoogleCodeExporter commented 8 years ago
Please run gnome-mplayer with the -v option and post the output here.

Original comment by kdeko...@gmail.com on 29 Jan 2010 at 5:34

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Console output is below of me opening mplayer adding a song to the playlist and
playing it. As you can see, pulse is the AO. I also tried playing an AVI video 
file
and the same thing happened.
----------------------------

$ ./gnome-mplayer -v

GNOME MPlayer v0.9.9
vo = (null) ao = pulse
Running in single instance mode
Running with GIO support
Using volume of 11 from gnome-mplayer preference
Using match: type='signal',interface='com.gnome.mplayer'
Using match: type='signal',interface='org.gnome.SettingsDaemon'
Using match: type='signal',interface='org.gnome.SettingsDaemon.MediaKeys'
Proxy connections and Command connected
opening playlist
playlist detection = 0
adding
file:///home/cevin/Desktop/untitled%20folder/Tegan%20and%20Sarah%20-%20Come%20On
.mp3
to playlist (cancel = 0)
getting file metadata for /home/cevin/Desktop/untitled folder/Tegan and Sarah - 
Come
On.mp3

(gnome-mplayer:4276): Gtk-CRITICAL **: gtk_list_store_get_path: assertion
`iter->stamp == GTK_LIST_STORE (tree_model)->stamp' failed
playing -
file:///home/cevin/Desktop/untitled%20folder/Tegan%20and%20Sarah%20-%20Come%20On
.mp3
is playlist 0
libcurl required for cover art retrieval
mplayer -profile gnome-mplayer -quiet -slave -identify -volume 11 -framedrop 
-vf-pre
yadif,softskip,scale -noconsolecontrols -noidle -osdlevel 0 -nomouseinput 
-nocache
-wid 0x3a00048 -ss 0 -subfont-text-scale 5 -subfont Sans -channels 2 -vf-add
screenshot -dvd-device /dev/dvd -af-add export=/tmp/mplayer-af_exportxmowut:512
/home/cevin/Desktop/untitled folder/Tegan and Sarah - Come On.mp3 
Spawn succeeded for filename /home/cevin/Desktop/untitled folder/Tegan and 
Sarah -
Come On.mp3
MPlayer SVN-r29800-4.4.2 (C) 2000-2009 MPlayer Team
ERROR: mplayer: could not connect to socket

ERROR: mplayer: No such file or directory
Playing /home/cevin/Desktop/untitled folder/Tegan and Sarah - Come On.mp3.
ERROR: Failed to open LIRC support. You will not be able to use your remote 
control.
ID_AUDIO_ID=0
Audio only file format detected.
Clip info:
 Title: Come On
ID_CLIP_INFO_NAME0=Title
ID_CLIP_INFO_VALUE0=Come On
 Artist: Tegan and Sara
ID_CLIP_INFO_NAME1=Artist
ID_CLIP_INFO_VALUE1=Tegan and Sara
 Album: -
ID_CLIP_INFO_NAME2=Album
ID_CLIP_INFO_VALUE2=-
 Year: 2000
ID_CLIP_INFO_NAME3=Year
ID_CLIP_INFO_VALUE3=2000
 Comment:                               
ID_CLIP_INFO_NAME4=Comment
ID_CLIP_INFO_VALUE4=                              
 Genre: Rock
ID_CLIP_INFO_NAME5=Genre
ID_CLIP_INFO_VALUE5=Rock
ID_CLIP_INFO_N=6
ID_FILENAME=/home/cevin/Desktop/untitled folder/Tegan and Sarah - Come On.mp3
ID_DEMUXER=audio
ID_AUDIO_FORMAT=85
ID_AUDIO_BITRATE=128000
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=0
ID_LENGTH=245.00
ID_SEEKABLE=1
ID_CHAPTERS=0
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
ID_AUDIO_BITRATE=128000
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[export] Exporting to file: /tmp/mplayer-af_exportxmowut
[export] Memory mapped to file: /tmp/mplayer-af_exportxmowut (0xb7892000)
[export] Exporting to file: /tmp/mplayer-af_exportxmowut
[export] Memory mapped to file: /tmp/mplayer-af_exportxmowut (0xb7892000)
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
[export] Exporting to file: /tmp/mplayer-af_exportxmowut
[export] Memory mapped to file: /tmp/mplayer-af_exportxmowut (0xb7892000)
[export] Exporting to file: /tmp/mplayer-af_exportxmowut
[export] Memory mapped to file: /tmp/mplayer-af_exportxmowut (0xb7892000)
ID_AUDIO_CODEC=mp3
Video: no video
Starting playback...
ANS_switch_audio is invalid -1

ERROR: Thread completing

Original comment by ilikejun...@gmail.com on 30 Jan 2010 at 7:13

GoogleCodeExporter commented 8 years ago
This problem is not just applicable to gnome-mplayer... this problem is 
manifested in
the mplayer backend itself...

$ mplayer <file>

...also exhibits this behaviour

System: Fedora 12
Audio:  pulse

Original comment by metamorf...@gmail.com on 12 Feb 2010 at 1:41

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Problem appears to be the way MPlayer interacts with PulseAudio, as I've 
discovered a
workaraound for Fedora 12...

Use 'alsa' instead of 'pulse' as the audio output stream.

1. Install the alsa-plugins-pulseaudio package.
   # yum -y install alsa-plugins-pulseaudio

2. either:
   Edit the system-wide /etc/mplayer/mplayer.conf file:
   Replace the line 'ao = pulse' with 'ao = alsa'
   or:
   Edit the user-specific ~/.mplayer/config file:
   Add the line 'ao = alsa'
   (to fix invoking mplayer from the command line)

3. Start GNOME-MPlayer.
   select the 'Edit->Preferences' menu item.
   Change the 'Audio Output' option from 'pulse' to 'alsa'.

Audio output is now shunted to PulseAudio via an ALSA plugin.  Although this 
creates
a layer of overhead in delivering audio, the system volume is no longer being 
set to
maximum.

Original comment by metamorf...@gmail.com on 13 Feb 2010 at 6:32

GoogleCodeExporter commented 8 years ago
I've tried the workaround but it wasn't successful for me. The system volum is 
still
set to maximum.

Original comment by ionut.r...@gmail.com on 22 Mar 2010 at 2:51

GoogleCodeExporter commented 8 years ago
please run gnome-mplayer -v from the command line and post the log. The 
workaround
has worked on several machines, so unsure why it is not working on yours.

Original comment by kdeko...@gmail.com on 22 Mar 2010 at 2:58

GoogleCodeExporter commented 8 years ago
Problem appears to have been fixed upstream (i.e. in the realm of MPlayer).

Original comment by metamorf...@gmail.com on 29 May 2010 at 3:12

GoogleCodeExporter commented 8 years ago

Original comment by kdeko...@gmail.com on 22 Jul 2010 at 7:37