GST_TYPE_ELEMENT, that means the "video-sink" is a GstElement, actually it should be a GstElement pointer and the default value is NULL.
You need to create the videosink element externally, and set the pointer to this property. You can refer totem sourcecode. Zhao Liang -----Original Message----- From: Zhao, Halley [mailto:[hidden email]] Sent: Thursday, February 26, 2009 11:08 AM To: Zhao Liang-E3423C; Discussion of the development of GStreamer; Michael Smith Cc: [hidden email] Subject: RE: [gst-embedded] [gst-devel] can playbin handle the sinkwithdecoding functions? video-sink is GstElement? But I saw the following codes: gst_play_bin_class_init (GstPlayBinClass * klass) { ... g_object_class_install_property (gobject_klass, ARG_VIDEO_SINK, g_param_spec_object ("video-sink", "Video Sink", "the video output element to use (NULL = default sink)", GST_TYPE_ELEMENT, G_PARAM_READWRITE)); ... } >-----Original Message----- >From: Zhao Liang-E3423C [mailto:[hidden email]] >Sent: 2009年2月24日 10:56 >To: Discussion of the development of GStreamer; Michael Smith >Cc: [hidden email] >Subject: Re: [gst-embedded] [gst-devel] can playbin handle the sinkwith >decoding functions? > >The type of Video-sink is GstElement, not string. > >-----Original Message----- >From: Zhao, Halley [mailto:[hidden email]] >Sent: Tuesday, February 24, 2009 10:46 AM >To: Discussion of the development of GStreamer; Michael Smith >Cc: [hidden email] >Subject: Re: [gst-devel] [gst-embedded] can playbin handle the sinkwith >decoding functions? > > My gst version is 0.10.18 (Ubuntu hardy). > I saw that playbin has the property of "video-sink", but my try fails: > gst-launch playbin -v -v uri=file:///home/halley/media/video/test.avi >video-sink=xvimagesink > The error message is: > WARNING: erroneous pipeline: could not set property "video-sink" in >element "playbin10" to "xvimagesink" > > Even when I try to use playbin2 and fakesink, it always give the same >error. > > Where is my problem, thanks. > > >-----Original Message----- > >From: Michael Smith [mailto:[hidden email]] > >Sent: 2009年2月21日 12:31 > >To: Liang Zhao > >Cc: [hidden email]; > >[hidden email] > >Subject: Re: [gst-devel] [gst-embedded] can playbin handle the sink >with > >decoding functions? > > > >On Fri, Feb 20, 2009 at 6:03 PM, Liang Zhao <[hidden email]> >wrote: > >> Hi Mke, > >> > >> Thank you. > >> > >> So the only way is to use playbin2? what is the difference on >intefaces, > >> properties and signals between playbin2 and playbin? > >> I find most of them are same. > > > >The only sensible approach (assuming you want to reuse existing code, > >rather than writing something from scratch yourself) is to switch to > >playbin2. > > > >The documentation can help you with the differences - you're right, > >most things are similar. > > > >Mike > > > >>---------------------------------------------------------------------- >- > >------- > >Open Source Business Conference (OSBC), March 24-25, 2009, San >Francisco, > >CA > >-OSBC tackles the biggest issue in open source: Open Sourcing the >Enterprise > >-Strategies to boost innovation and cut costs with open source >participation > >-Receive a $600 discount off the registration fee with the source code: >SFAD > >http://p.sf.net/sfu/XcvMzF8H > >_______________________________________________ > >gstreamer-devel mailing list > >[hidden email] > >https://lists.sourceforge.net/lists/listinfo/gstreamer-devel >----------------------------------------------------------------------- >------- >Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, >CA -OSBC tackles the biggest issue in open source: Open Sourcing the >Enterprise -Strategies to boost innovation and cut costs with open source >participation -Receive a $600 discount off the registration fee with the >source code: SFAD http://p.sf.net/sfu/XcvMzF8H >_______________________________________________ >gstreamer-devel mailing list >[hidden email] >https://lists.sourceforge.net/lists/listinfo/gstreamer-devel > >----------------------------------------------------------------------- >------- >Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, >CA >-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise >-Strategies to boost innovation and cut costs with open source participation >-Receive a $600 discount off the registration fee with the source code: SFAD >http://p.sf.net/sfu/XcvMzF8H >_______________________________________________ >Gstreamer-embedded mailing list >[hidden email] >https://lists.sourceforge.net/lists/listinfo/gstreamer-embedded ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Then it means, I can't set this property through gst-launch,
but create the element and set it to playbin in programming language (C, python, etc.). Thanks. >-----Original Message----- >From: Zhao Liang-E3423C [mailto:[hidden email]] >Sent: 2009年2月26日 11:14 >To: Zhao, Halley; Discussion of the development of GStreamer; Michael Smith >Cc: [hidden email] >Subject: RE: [gst-embedded] [gst-devel] can playbin handle the >sinkwithdecoding functions? > >GST_TYPE_ELEMENT, that means the "video-sink" is a GstElement, actually >it should be a GstElement pointer and the default value is NULL. > >You need to create the videosink element externally, and set the pointer >to this property. You can refer totem sourcecode. > >Zhao Liang > >-----Original Message----- >From: Zhao, Halley [mailto:[hidden email]] >Sent: Thursday, February 26, 2009 11:08 AM >To: Zhao Liang-E3423C; Discussion of the development of GStreamer; Michael >Smith >Cc: [hidden email] >Subject: RE: [gst-embedded] [gst-devel] can playbin handle the >sinkwithdecoding functions? > > video-sink is GstElement? But I saw the following codes: > > gst_play_bin_class_init (GstPlayBinClass * klass) > { > ... > g_object_class_install_property (gobject_klass, ARG_VIDEO_SINK, > g_param_spec_object ("video-sink", "Video Sink", > "the video output element to use (NULL = default sink)", > GST_TYPE_ELEMENT, G_PARAM_READWRITE)); > ... > } > > >-----Original Message----- > >From: Zhao Liang-E3423C [mailto:[hidden email]] > >Sent: 2009年2月24日 10:56 > >To: Discussion of the development of GStreamer; Michael Smith > >Cc: [hidden email] > >Subject: Re: [gst-embedded] [gst-devel] can playbin handle the >sinkwith > >decoding functions? > > > >The type of Video-sink is GstElement, not string. > > > >-----Original Message----- > >From: Zhao, Halley [mailto:[hidden email]] > >Sent: Tuesday, February 24, 2009 10:46 AM > >To: Discussion of the development of GStreamer; Michael Smith > >Cc: [hidden email] > >Subject: Re: [gst-devel] [gst-embedded] can playbin handle the >sinkwith > >decoding functions? > > > > My gst version is 0.10.18 (Ubuntu hardy). > > I saw that playbin has the property of "video-sink", but my try >fails: > > gst-launch playbin -v -v >uri=file:///home/halley/media/video/test.avi > >video-sink=xvimagesink > > The error message is: > > WARNING: erroneous pipeline: could not set property "video-sink" >in > >element "playbin10" to "xvimagesink" > > > > Even when I try to use playbin2 and fakesink, it always give the >same > >error. > > > > Where is my problem, thanks. > > > > >-----Original Message----- > > >From: Michael Smith [mailto:[hidden email]] > > >Sent: 2009年2月21日 12:31 > > >To: Liang Zhao > > >Cc: [hidden email]; > > >[hidden email] > > >Subject: Re: [gst-devel] [gst-embedded] can playbin handle the >sink > >with > > >decoding functions? > > > > > >On Fri, Feb 20, 2009 at 6:03 PM, Liang Zhao ><[hidden email]> > >wrote: > > >> Hi Mke, > > >> > > >> Thank you. > > >> > > >> So the only way is to use playbin2? what is the difference on > >intefaces, > > >> properties and signals between playbin2 and playbin? > > >> I find most of them are same. > > > > > >The only sensible approach (assuming you want to reuse existing >code, > > >rather than writing something from scratch yourself) is to switch >to > > >playbin2. > > > > > >The documentation can help you with the differences - you're >right, > > >most things are similar. > > > > > >Mike > > > > > > >>>--------------------------------------------------------------------- >- > >- > > >------- > > >Open Source Business Conference (OSBC), March 24-25, 2009, San > >Francisco, > > >CA > > >-OSBC tackles the biggest issue in open source: Open Sourcing the > >Enterprise > > >-Strategies to boost innovation and cut costs with open source > >participation > > >-Receive a $600 discount off the registration fee with the source >code: > >SFAD > > >http://p.sf.net/sfu/XcvMzF8H > > >_______________________________________________ > > >gstreamer-devel mailing list > > >[hidden email] > > >https://lists.sourceforge.net/lists/listinfo/gstreamer-devel > >>---------------------------------------------------------------------- >- > >------- > >Open Source Business Conference (OSBC), March 24-25, 2009, San >Francisco, > >CA -OSBC tackles the biggest issue in open source: Open Sourcing the > >Enterprise -Strategies to boost innovation and cut costs with open >source > >participation -Receive a $600 discount off the registration fee with >the > >source code: SFAD http://p.sf.net/sfu/XcvMzF8H > >_______________________________________________ > >gstreamer-devel mailing list > >[hidden email] > >https://lists.sourceforge.net/lists/listinfo/gstreamer-devel > > > >>---------------------------------------------------------------------- >- > >------- > >Open Source Business Conference (OSBC), March 24-25, 2009, San >Francisco, > >CA > >-OSBC tackles the biggest issue in open source: Open Sourcing the >Enterprise > >-Strategies to boost innovation and cut costs with open source >participation > >-Receive a $600 discount off the registration fee with the source code: >SFAD > >http://p.sf.net/sfu/XcvMzF8H > >_______________________________________________ > >Gstreamer-embedded mailing list > >[hidden email] > >https://lists.sourceforge.net/lists/listinfo/gstreamer-embedded ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
2009/2/26 Zhao, Halley <[hidden email]>:
> Then it means, I can't set this property through gst-launch, > but create the element and set it to playbin in programming language (C, python, etc.). Perhaps gst launch string specifications of gstreamer pipelines could use some kind of feature to make this possible? -- http://codebad.com/ ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by michael smith-6-3
Can playbin2 support both decoder and decodesink? I mean if both of them are available, can I decide the playbin2 behavior that whic element can be used by some methods? I find some signals in decodebin2, such as "autoplug-factories", "autoplug-select", can I use it?
Zhao Liang 2009/2/21 Michael Smith <[hidden email]>
------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by Zhao, Halley
Zhao, Halley schrieb:
> Then it means, I can't set this property through gst-launch, > but create the element and set it to playbin in programming language (C, python, etc.). > This is correct. Stefan > Thanks. > > > >-----Original Message----- > >From: Zhao Liang-E3423C [mailto:[hidden email]] > >Sent: 2009年2月26日 11:14 > >To: Zhao, Halley; Discussion of the development of GStreamer; Michael Smith > >Cc: [hidden email] > >Subject: RE: [gst-embedded] [gst-devel] can playbin handle the > >sinkwithdecoding functions? > > > >GST_TYPE_ELEMENT, that means the "video-sink" is a GstElement, actually > >it should be a GstElement pointer and the default value is NULL. > > > >You need to create the videosink element externally, and set the pointer > >to this property. You can refer totem sourcecode. > > > >Zhao Liang > > > >-----Original Message----- > >From: Zhao, Halley [mailto:[hidden email]] > >Sent: Thursday, February 26, 2009 11:08 AM > >To: Zhao Liang-E3423C; Discussion of the development of GStreamer; Michael > >Smith > >Cc: [hidden email] > >Subject: RE: [gst-embedded] [gst-devel] can playbin handle the > >sinkwithdecoding functions? > > > > video-sink is GstElement? But I saw the following codes: > > > > gst_play_bin_class_init (GstPlayBinClass * klass) > > { > > ... > > g_object_class_install_property (gobject_klass, ARG_VIDEO_SINK, > > g_param_spec_object ("video-sink", "Video Sink", > > "the video output element to use (NULL = default sink)", > > GST_TYPE_ELEMENT, G_PARAM_READWRITE)); > > ... > > } > > > > >-----Original Message----- > > >From: Zhao Liang-E3423C [mailto:[hidden email]] > > >Sent: 2009年2月24日 10:56 > > >To: Discussion of the development of GStreamer; Michael Smith > > >Cc: [hidden email] > > >Subject: Re: [gst-embedded] [gst-devel] can playbin handle the > >sinkwith > > >decoding functions? > > > > > >The type of Video-sink is GstElement, not string. > > > > > >-----Original Message----- > > >From: Zhao, Halley [mailto:[hidden email]] > > >Sent: Tuesday, February 24, 2009 10:46 AM > > >To: Discussion of the development of GStreamer; Michael Smith > > >Cc: [hidden email] > > >Subject: Re: [gst-devel] [gst-embedded] can playbin handle the > >sinkwith > > >decoding functions? > > > > > > My gst version is 0.10.18 (Ubuntu hardy). > > > I saw that playbin has the property of "video-sink", but my try > >fails: > > > gst-launch playbin -v -v > >uri=file:///home/halley/media/video/test.avi > > >video-sink=xvimagesink > > > The error message is: > > > WARNING: erroneous pipeline: could not set property "video-sink" > >in > > >element "playbin10" to "xvimagesink" > > > > > > Even when I try to use playbin2 and fakesink, it always give the > >same > > >error. > > > > > > Where is my problem, thanks. > > > > > > >-----Original Message----- > > > >From: Michael Smith [mailto:[hidden email]] > > > >Sent: 2009年2月21日 12:31 > > > >To: Liang Zhao > > > >Cc: [hidden email]; > > > >[hidden email] > > > >Subject: Re: [gst-devel] [gst-embedded] can playbin handle the > >sink > > >with > > > >decoding functions? > > > > > > > >On Fri, Feb 20, 2009 at 6:03 PM, Liang Zhao > ><[hidden email]> > > >wrote: > > > >> Hi Mke, > > > >> > > > >> Thank you. > > > >> > > > >> So the only way is to use playbin2? what is the difference on > > >intefaces, > > > >> properties and signals between playbin2 and playbin? > > > >> I find most of them are same. > > > > > > > >The only sensible approach (assuming you want to reuse existing > >code, > > > >rather than writing something from scratch yourself) is to switch > >to > > > >playbin2. > > > > > > > >The documentation can help you with the differences - you're > >right, > > > >most things are similar. > > > > > > > >Mike > > > > > > > > > > >>>--------------------------------------------------------------------- > >- > > >- > > > >------- > > > >Open Source Business Conference (OSBC), March 24-25, 2009, San > > >Francisco, > > > >CA > > > >-OSBC tackles the biggest issue in open source: Open Sourcing the > > >Enterprise > > > >-Strategies to boost innovation and cut costs with open source > > >participation > > > >-Receive a $600 discount off the registration fee with the source > >code: > > >SFAD > > > >http://p.sf.net/sfu/XcvMzF8H > > > >_______________________________________________ > > > >gstreamer-devel mailing list > > > >[hidden email] > > > >https://lists.sourceforge.net/lists/listinfo/gstreamer-devel > > > >>---------------------------------------------------------------------- > >- > > >------- > > >Open Source Business Conference (OSBC), March 24-25, 2009, San > >Francisco, > > >CA -OSBC tackles the biggest issue in open source: Open Sourcing the > > >Enterprise -Strategies to boost innovation and cut costs with open > >source > > >participation -Receive a $600 discount off the registration fee with > >the > > >source code: SFAD http://p.sf.net/sfu/XcvMzF8H > > >_______________________________________________ > > >gstreamer-devel mailing list > > >[hidden email] > > >https://lists.sourceforge.net/lists/listinfo/gstreamer-devel > > > > > > >>---------------------------------------------------------------------- > >- > > >------- > > >Open Source Business Conference (OSBC), March 24-25, 2009, San > >Francisco, > > >CA > > >-OSBC tackles the biggest issue in open source: Open Sourcing the > >Enterprise > > >-Strategies to boost innovation and cut costs with open source > >participation > > >-Receive a $600 discount off the registration fee with the source code: > >SFAD > > >http://p.sf.net/sfu/XcvMzF8H > > >_______________________________________________ > > >Gstreamer-embedded mailing list > > >[hidden email] > > >https://lists.sourceforge.net/lists/listinfo/gstreamer-embedded > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Gstreamer-embedded mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-embedded ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by Liang Zhao
Liang Zhao schrieb:
> Can playbin2 support both decoder and decodesink? I mean if both of them > are available, can I decide the playbin2 behavior that whic element can > be used by some methods? I find some signals in decodebin2, such as > "autoplug-factories", "autoplug-select", can I use it? > For autoplugging, it is never good to have alternatives. Choose the best way to decode files for you platform and ship that set of needed plugins. If There are multiple decoders for the same format, autoplugging will pick whater has the highes rank and if even there are multiple, it takes what it find first. Stefan > Zhao Liang > > 2009/2/21 Michael Smith <[hidden email] <mailto:[hidden email]>> > > On Fri, Feb 20, 2009 at 5:35 PM, Liang Zhao <[hidden email] > <mailto:[hidden email]>> wrote: > > Hi Mike, > > > > Thanks. > > > > so playbin must add a audiobin after decoder? If that, that means our > > audiosink can not work with playbin? > > playbin always decodes the audio fully, to raw PCM. So you probably > can't use it in your case. > > > > > playbin2 is not stable in its description, and not used by many > players such > > as totem, so what can I do? > > It's not guaranteed to be entirely API-stable (properties, signals, > might change in future versions), but as far as code stability goes, > it's perfectly ok. > > Some players do use it (e.g. Songbird, the player I work on, uses it > on windows, linux, and macos). > > Mike > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > > > ------------------------------------------------------------------------ > > _______________________________________________ > Gstreamer-embedded mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-embedded ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Suppose decodesink has higher rank than decode, and playbin2 will choose decodesink, so how will playbin select ? select decodesink and fail?
Zhao Liang 2009/2/27 Stefan Kost <[hidden email]> Liang Zhao schrieb: ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
From code, I find decodebin will not put decodesink
into its element factory, decodebin only support elements with klass is
"Demuxer", "Parser", "Decoder", "Depayloader".
so playbin will select decoder, not
decodesink. From: Liang Zhao [mailto:[hidden email]] Sent: Friday, February 27, 2009 2:37 PM To: Stefan Kost Cc: [hidden email]; [hidden email] Subject: Re: [gst-embedded] can playbin handle the sink with decodingfunctions? Zhao Liang 2009/2/27 Stefan Kost <[hidden email]> Liang Zhao schrieb: ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |