Plugin

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

Plugin

vaisakhn7
I am trying to write mp3plugin,now its in a partial  working stage

but problem is that,
caps of my element is fixed caps by using this api,
gst_pad_use_fixed_caps (filter->srcpad);
and caps set using this  function
void  Set_Caps(GstExampleFilter *filter,int sample_rate,int channels)
{

GstCaps *caps;
                caps = gst_caps_new_simple ("audio/x-raw-int",

                "endianness", G_TYPE_INT,G_BYTE_ORDER,  //little endian//

                "signed", G_TYPE_BOOLEAN, TRUE,

                "width", G_TYPE_INT,32,

                "depth", G_TYPE_INT,32,

                "rate", G_TYPE_INT,sample_rate,
                "channels",G_TYPE_INT,channels,NULL);
                gst_pad_set_caps (filter->srcpad, caps);

}


*/


if i put " 1"  for channels  it play the 2channel song (stereo)  very well
but it become worse if i put 2 for that(channels)

can any one identiy the problem?
help
me..please.
***** Confidentiality Statement/Disclaimer *****

This message and any attachments is intended for the sole use of the intended recipient. It may contain confidential information. Any unauthorized use, dissemination or modification is strictly prohibited. If you are not the intended recipient, please notify the sender immediately then delete it from all your systems, and do not copy, use or print. Internet communications are not secure and it is the responsibility of the recipient to make sure that it is virus/malicious code exempt.
The company/sender cannot be responsible for any unauthorized alterations or modifications made to the contents. If you require any form of confirmation of the contents, please contact the company/sender. The company/sender is not liable for any errors or omissions in the content of this message.
***** Confidentiality Statement/Disclaimer *****  

This message and any attachments is intended for the sole use of the intended recipient. It may contain confidential information. Any unauthorized use, dissemination or modification is strictly prohibited. If you are not the intended recipient, please notify the sender immediately then delete it from all your systems, and do not copy, use or print. Internet communications are not secure and it is the responsibility of the recipient to make sure that it is virus/malicious code exempt.

The company/sender cannot be responsible for any unauthorized alterations or modifications made to the contents. If you require any form of confirmation of the contents, please contact the company/sender. The company/sender is not liable for any errors or omissions in the content of this message.


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Plugin

michael smith-6-3
On Wed, Feb 4, 2009 at 4:25 AM, vaisakh.n <[hidden email]> wrote:

> I am trying to write mp3plugin,now its in a partial  working stage
>
> but problem is that,
> caps of my element is fixed caps by using this api,
> gst_pad_use_fixed_caps (filter->srcpad);
> and caps set using this  function
> void  Set_Caps(GstExampleFilter *filter,int sample_rate,int channels)
> {
>
> GstCaps *caps;
>                caps = gst_caps_new_simple ("audio/x-raw-int",
>
>                "endianness", G_TYPE_INT,G_BYTE_ORDER,  //little endian//
>
>                "signed", G_TYPE_BOOLEAN, TRUE,
>
>                "width", G_TYPE_INT,32,
>
>                "depth", G_TYPE_INT,32,
>
>                "rate", G_TYPE_INT,sample_rate,
>                "channels",G_TYPE_INT,channels,NULL);
>                gst_pad_set_caps (filter->srcpad, caps);
>
> }

This looks pretty plausible.

> if i put " 1"  for channels  it play the 2channel song (stereo)  very well
> but it become worse if i put 2 for that(channels)

It's a bug in your element somewhere - your caps look fine, but maybe
you're decoding the audio data incorrectly.

You've shown _far_ too little detail for us to give any more specific advice.

Mike

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel