how to get spectrum data's without playing an audio file?

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

how to get spectrum data's without playing an audio file?

victorvictor
Hello

I would like to use the spectrum element to get the spectrum data of an audio file without playing it. For example, I would like to get the spectrum data's of every second of a  'flac' file, but as fast as possible, not by waiting that the piece is completely played to the end.

Please how could I do that?

Victor
Reply | Threaded
Open this post in threaded view
|

Re: how to get spectrum data's without playing an audio file?

Wes Miller
Administrator




On 10/25/11 7:34 PM, "victorvictor" <[hidden email]> wrote:

>Hello
>
>I would like to use the spectrum element to get the spectrum data of an
>audio file without playing it. For example, I would like to get the
>spectrum
>data's of every second of a  'flac' file, but as fast as possible, not by
>waiting that the piece is completely played to the end.
>

Not completely sure about this, but if the spectrum element actually has
to have a sink then try fakesink.  Fakesink should suck your file through
your pipeline at max speed.

Wes


CONFIDENTIALITY NOTE:

This e-mail and any attachments are confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please notify us immediately by returning it to the sender and delete this copy from your system. Thank you for your cooperation.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to get spectrum data's without playing an audio file?

victorvictor
Hello Wes

>>I would like to use the spectrum element to get the spectrum data of an
>>audio file without playing it. ...

>Not completely sure about this, but if the spectrum element actually has
>to have a sink then try fakesink.  Fakesink should suck your file through
>your pipeline at max speed.

You are completely right; it works perfectly. thank you so much

Victor