Gstreamer Volume Element - Bug??

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Gstreamer Volume Element - Bug??

akaChella
Hi All,

I have used volume element of gstreamer in my pipeline to control the volume.

Could any one please clarify what the volume factor of "volume" property means??

In gstreamer reference manual, they have given the definition as follows:

                       volume factor, 1.0=100%.

                       Allowed values: [0,10]

                       Default value: 1

They say, allowed value is from 0 to 10, but 1.0 = 100%. Sounds confusing..!!

When i set the volume property to 0, No audio. when the volume property as 1, 2, 3, 4 and 5, the volume increases gradually. But when i set the volume property to 8, i am not able to listen to any audio. [Audio is set to mute].

Any idea??

Thanks in advance.

Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer Volume Element - Bug??

Sebastian Dröge-7
On Tue, 2011-10-11 at 08:21 -0700, akaChella wrote:

> Hi All,
>
> I have used volume element of gstreamer in my pipeline to control the
> volume.
>
> Could any one please clarify what the volume factor of "volume" property
> means??
>
> In gstreamer reference manual, they have given the definition as follows:
>
>                        *volume factor, 1.0=100%.*
>
>                        *Allowed values: [0,10]*
>
>                        *Default value: 1*
>
> They say, allowed value is from 0 to 10, but 1.0 = 100%. Sounds
> confusing..!!
>
> When i set the volume property to 0, No audio. when the volume property as
> 1, 2, 3, 4 and 5, the volume increases gradually. But when i set the volume
> property to 8, i am not able to listen to any audio. [Audio is set to mute].
>
> Any idea??
There was a bug in older versions of volume that caused a volume of 0 if
volume=8 was used. volume=1.0 means "original volume", volume=2.0 means
that every sample is scaled by a (linear) factor of 2, etc.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer Volume Element - Bug??

akaChella
Hi Sebastian,

Thanks for the reply. I am using gst-base-plugins version 32.

Is the bug retained in this version too?? If so, in which version it is fixed?

Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer Volume Element - Bug??

Sebastian Dröge
On Tue, 2011-10-11 at 23:58 -0700, akaChella wrote:
> Hi Sebastian,
>
> Thanks for the reply. I am using gst-base-plugins version 32.
>
> Is the bug retained in this version too?? If so, in which version it is
> fixed?

Hi,

it definitely was in version 0.10.32 and was fixed in commit
8f967e9e7029b5b77c3a434af8a1cce878a2954d (0.10.36):
http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=8f967e9e7029b5b77c3a434af8a1cce878a2954d

I don't know for sure when it was introduced but IIRC it was introduced
in 0.10.32 and wasn't happening in 0.10.31.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer Volume Element - Bug??

skrk_536
@Sebastian : Thank you very much for the information