alsasink and volume issue

classic Classic list List threaded Threaded
4 messages Options
G.B
Reply | Threaded
Open this post in threaded view
|

alsasink and volume issue

G.B
Hi,

When using alsasink to playback music, I am having a strange problem. The music went on for around 10 minutes, then all of sudden, the volume went really low, if I put my ear really close to the speaker, I could hear it going on normally, just the volume was extremely low, then after some other 10 minutes, the volume came back normal to loud all of sudden by itself.
The volume-high-low cycle repeats.

The mp3 clip itself can be played by other players well and long enough.

Any ideas please?
Reply | Threaded
Open this post in threaded view
|

Re: alsasink and volume issue

Zheng, Huan
Does your alsasink is configured to use PulseAudio?
If so, you may check inside pulseaudio console to see if the stream's volume is changed when the issue happens

Start pulse audio console #>pacmd
Check stream status #>list-sink-inputs

-----Original Message-----
From: G.B [mailto:[hidden email]]
Sent: Saturday, June 26, 2010 2:41 PM
To: [hidden email]
Subject: [gst-devel] alsasink and volume issue


Hi,

When using alsasink to playback music, I am having a strange problem. The
music went on for around 10 minutes, then all of sudden, the volume went
really low, if I put my ear really close to the speaker, I could hear it
going on normally, just the volume was extremely low, then after some other
10 minutes, the volume came back normal to loud all of sudden by itself.
The volume-high-low cycle repeats.

The mp3 clip itself can be played by other players well and long enough.

Any ideas please?
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/alsasink-and-volume-issue-tp2269211p2269211.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
G.B
Reply | Threaded
Open this post in threaded view
|

Re: alsasink and volume issue

G.B
Thank you for your help.

No, I am not using Pulse Audio, just straight Alsa. Also the music clip is of same content, so no volume changes as well.

The audio was still working, just the volume was very very low, so some part of the gstreamer/alsalib makes the hardware to lower the volume. The same music clip can be played fine by vlc, mplayer, etc for long time without any problem.
Reply | Threaded
Open this post in threaded view
|

Re: alsasink and volume issue

Tim-Philipp Müller-2
On Sun, 2010-06-27 at 18:36 -0700, G.B wrote:

> No, I am not using Pulse Audio, just straight Alsa. Also the music clip is
> of same content, so no volume changes as well.
>
> The audio was still working, just the volume was very very low, so some part
> of the gstreamer/alsalib makes the hardware to lower the volume. The same
> music clip can be played fine by vlc, mplayer, etc for long time without any
> problem.

So this happens with gst-launch? What pipeline exactly? Using what mp3
decoder? Does it happen just with that one particular mp3 clip, or any
mp3 clip, or any audio file (wav, aac, vorbis, flac?). Does it happen
with audiotestsrc?

Why do you think "some part of the gstreamer/alsalib makes the hardware
to lower the volume" ? Do you see the hardware mixer settings change,
e.g. in the alsamixer application? GStreamer/alsasink don't mess with
hardware mixer settings usually.

 Cheers
  -Tim


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel