Hi Friends I have written one plugin now i want that the plugin should be called with playbin....
can anybody please help me its really urgent...!!!! |
On Mon, Jan 19, 2009 at 3:35 AM, rakesh sharma
<[hidden email]> wrote: > > Hi Friends I have written one plugin now i want that the plugin should be > called with playbin.... > can anybody please help me its really urgent...!!!! You haven't given much context for us to go on here. Is your plugin a source? A sink? A demuxer or decoder? The key points to check, if you want playbin to autoplug it, are: - correct element details class - non-zero rank (and higher than other alternatives playbin might select) - correct caps templates. We can't be any more specific with the info you've given. Mike ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
I have written AVI decoder. for AVI decoder i want that playbin should detect and properly use my decoder. please provide me solution with example , i'll great thankful for you.
|
In reply to this post by michael smith-6-3
I have written mp4sp decoder plugin and i want this plugin should be detected and used by playbin ....
Can anybody help me with a simple example....!!!
|
set rank GST_RANK_PRIMARY in plugins_init function.
On Tue, Jan 20, 2009 at 11:18 AM, rakesh sharma <[hidden email]> wrote:
-- Regards, Sudarshan Bisht ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
This is not correct.....
it dosn't have any effect on playbin ...GST_RANK_PRIMARY
|
In reply to this post by rakesh sharma-2
On Mon, 2009-01-19 at 21:48 -0800, rakesh sharma wrote:
> I have written mp4sp decoder plugin and i want this plugin should be detected > and used by playbin .... Mike has given you all the details you need. How about you give us the gst-inspect output for your element so we can double-check the details? Alternatively, you could provide us with details on *all* of the points Mike mentioned, namely: > > The key points to check, if you want playbin to autoplug it, are: > > - correct element details class > > - non-zero rank (and higher than other alternatives playbin might select) > > - correct caps templates. > Can anybody help me with a simple example....!!! Almost every single decoder and demuxer in gst-plugins-base and gst-plugins-good will do as an example. Cheers -Tim ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
i am doing only gst_element_register(plugin, type_name, rank, type);
i am not doing any other registration..... gst-inspect of mp4sp_dec is : [root@bghwf9861 testelement]# gst-inspect mp4sp_dec Factory Details: Long name: mp4sp Class: video/decoder Description: mp4sp Video Decoder Author(s): Rakesh <info@rakesh.com> Rank: unknown (260) Plugin Details: Name: rakesh_plugin Description: Rakesh Sharma Filename: /usr/local/lib/librakesh_plugin.so Version: 0.1 License: Proprietary Source module: rakesh_plugin Binary package: rakesh_plugin Origin URL: Rakesh <info@rakesh.com> GObject +----GstObject +----GstElement +----psf_mp4sp_dec Pad Templates: SINK template: 'sink' Availability: Always Capabilities: video/x-mp4-sp width: [ 0, 2147483647 ] height: [ 0, 2147483647 ] framerate: [ 1, 2147483647 ] SRC template: 'src' Availability: Always Capabilities: video/x-raw-yuv width: [ 1, 2147483647 ] height: [ 1, 2147483647 ] framerate: [ 0/1, 2147483647/1 ] Element Flags: no flags set Element Implementation: No loopfunc(), must be chain-based or not configured yet Has change_state() function: element_change_state_func Has custom save_thyself() function: element_save_thyself Has custom restore_thyself() function: element_restore_thyself Element has no clocking capabilities. Element has no indexing capabilities. Pads: SRC: 'src' Implementation: Has custom eventfunc(): 0xbbcf4c Pad Template: 'src' SINK: 'sink' Implementation: Has chainfunc(): 0xbbc269 Has custom eventfunc(): 0xbbcf73 Has bufferallocfunc(): video_dec_buffer_alloc Pad Template: 'sink' Element Properties: name : The name of the object flags: readable, writable String. Default: null Current: "mp4sp_dec0" |
Why it is showing Rank: unknown (260) ?
On Tue, Jan 20, 2009 at 3:20 PM, rakesh sharma <[hidden email]> wrote:
-- Regards, Sudarshan Bisht ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by rakesh sharma-2
On Tue, 2009-01-20 at 01:50 -0800, rakesh sharma wrote:
> [root@bghwf9861 testelement]# gst-inspect mp4sp_dec > Factory Details: > Long name: mp4sp > Class: video/decoder This should be: 'Codec/Decoder/Video' Cheers -Tim ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by Sudarshan Bisht
On Tue, Jan 20, 2009 at 2:22 AM, sudarshan bisht
<[hidden email]> wrote: > Why it is showing Rank: unknown (260) ? There are a few "named" ranks - minimal, normal, maximum, and so on. But rank is just a number, so you can have intermediate values too - which this plugin has. That's actually fine. > > On Tue, Jan 20, 2009 at 3:20 PM, rakesh sharma <[hidden email]> > wrote: >> >> i am doing only gst_element_register(plugin, type_name, rank, type); >> i am not doing any other registration..... >> >> gst-inspect of mp4sp_dec is : >> >> [root@bghwf9861 testelement]# gst-inspect mp4sp_dec >> Factory Details: >> Long name: mp4sp >> Class: video/decoder >> Description: mp4sp Video Decoder >> Author(s): Rakesh <[hidden email]> >> Rank: unknown (260) >> >> Plugin Details: >> Name: rakesh_plugin >> Description: Rakesh Sharma >> Filename: /usr/local/lib/librakesh_plugin.so >> Version: 0.1 >> License: Proprietary >> Source module: rakesh_plugin >> Binary package: rakesh_plugin >> Origin URL: Rakesh <[hidden email]> >> >> GObject >> +----GstObject >> +----GstElement >> +----psf_mp4sp_dec >> >> Pad Templates: >> SINK template: 'sink' >> Availability: Always >> Capabilities: >> video/x-mp4-sp >> width: [ 0, 2147483647 ] >> height: [ 0, 2147483647 ] >> framerate: [ 1, 2147483647 ] This looks wrong in several ways: "video/x-mp4-sp" isn't, as far as I know, used anywhere in gstreamer. Of course, you might be using a custom demuxer that produces it, but you didn't mention anything like that. So I assume your decoder isn't actually compatible with any types that any demuxers might output. Additionally, framerate in gstreamer is a fraction, you have it here as an integer. Make sure you fix up the other things mentioned by other people too. Mike ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
i am using the caps like this
src caps src_template = gst_pad_template_new("src", GST_PAD_SRC, GST_PAD_ALWAYS, gst_caps_from_string("audio/x-raw-int, " "rate = (int) [ 1, MAX ], " "endianness = (int) BYTE_ORDER, " "signed = (boolean) { true, false }, " "channels = (int) { 1, 2}, " "width = (int) { 8, 16 }, " "depth = (int) { 8, 16 }")); and sink caps klass->dec->sink_caps = gst_caps_from_string("audio/x-mp3-unknown, " "outsize = (int) [ 1, MAX ], " "layer = (int) {1,2,3}, " "version = (int) {1,2,25}, " "rate = (int) { 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000 }, " "channels = (int) { 1, 2 }"); sink_template = gst_pad_template_new("sink", GST_PAD_SINK, GST_PAD_ALWAYS, klass->dec->sink_caps); If i am doing it GST_STATIC_CAPS ("ANY")); then its working.... might be the caps are not proper .... can u suggest me the proper caps for mp3 parser and the proper way...!! |
On Tue, 2009-01-20 at 23:01 -0800, rakesh sharma wrote:
> and sink caps > klass->dec->sink_caps = gst_caps_from_string("audio/x-mp3-unknown, " > "outsize = (int) [ 1, MAX ], " > "layer = (int) {1,2,3}, " > "version = (int) {1,2,25}, " > "rate = (int) { 8000, 11025, > 12000, 16000, 22050, 24000, 32000, 44100, 48000 }, " > "channels = (int) { 1, 2 }"); > sink_template = gst_pad_template_new("sink", GST_PAD_SINK, GST_PAD_ALWAYS, > klass->dec->sink_caps); > > If i am doing it GST_STATIC_CAPS ("ANY")); > then its working.... might be the caps are not proper .... > can u suggest me the proper caps for mp3 parser and the proper way...!! Where did you get the audio/x-mp3-unknown caps from? If you want to be compatible with other parts of GStreamer, like the typefinders, you can't just make up new media types (unless you also register some corresponding typefinder of your own as well). Have a look at one of the existing mp3 decoders/parsers (mad, mp3parse/mpegaudioparse) for the right caps. Cheers -Tim ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
For decoder we are givin Codec/Decoder/Audio in GST_ELEMENT_DETAILS.
If i want to do same for demux then what i have to give in GST_ELEMENT_DETAILS? |
On Wed, 2009-01-21 at 04:45 -0800, rakesh sharma wrote:
> For decoder we are givin Codec/Decoder/Audio in GST_ELEMENT_DETAILS. > If i want to do same for demux then what i have to give in > GST_ELEMENT_DETAILS? May I suggest you have a look at some of the existing demuxers and parsers in gst-inspect (or their source code)? Cheers -Tim ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Is there any way to know which elements are used by playbin......
I want to know which demux is used by decodebin. |
> -----Original Message----- > From: rakesh sharma [mailto:[hidden email]] > Sent: Wednesday, January 21, 2009 11:22 PM > To: [hidden email] > Subject: Re: [gst-devel] How to register Gstreamer Plugin withPlaybin so > that playbin detect my plugins > > > Is there any way to know which elements are used by playbin...... > I want to know which demux is used by decodebin. If you use the "-m" option, you will see messages from the elements' state changes, and can get the elements from there. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by rakesh sharma-2
rakesh sharma schrieb:
> Is there any way to know which elements are used by playbin...... > I want to know which demux is used by decodebin. use -v for gst-launch Stefan ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Can anybody tell me what this function do in depth... gst_element_make_from_uri()
the description is like this : Creates an element for handling the given URI If i want that it will use my own created plugin is it possible ??? My plugin dont have the uri property, whether i have to add uri property and do some more changes ??? |
On Tue, Jan 27, 2009 at 3:18 AM, rakesh sharma
<[hidden email]> wrote: > > Can anybody tell me what this function do in depth... > gst_element_make_from_uri() > the description is like this : Creates an element for handling the given URI > If i want that it will use my own created plugin is it possible ??? > My plugin dont have the uri property, whether i have to add uri property and > do some more changes ??? You plugin will need to implement the GstUriHandler interface (it's customary, but not required, that it also have a uri property). Mike ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |