Hi all,<br><br>Iam trying to play gif file using playbin. These is what i follow,<br><br>gst-launch-0.10 playbin uri=file:///home/akhil/Gifimage.gif<br><br>In response i get this<br><br><span style="background-color: rgb(255, 204, 102);">Setting pipeline to PAUSED ...</span><br style="background-color: rgb(255, 204, 102);">
<span style="background-color: rgb(255, 204, 102);">Pipeline is PREROLLING ...</span><br style="background-color: rgb(255, 204, 102);"><span style="background-color: rgb(255, 204, 102);">Pipeline is PREROLLED ...</span><br style="background-color: rgb(255, 204, 102);">
<span style="background-color: rgb(255, 204, 102);">Setting pipeline to PLAYING ...</span><br style="background-color: rgb(255, 204, 102);"><span style="background-color: rgb(255, 204, 102);">New clock: GstSystemClock</span><br style="background-color: rgb(255, 204, 102);">
<span style="background-color: rgb(255, 204, 102);">Got EOS from element "playbin0".</span><br style="background-color: rgb(255, 204, 102);"><span style="background-color: rgb(255, 204, 102);">Execution ended after 1965138 ns.</span><br style="background-color: rgb(255, 204, 102);">
<span style="background-color: rgb(255, 204, 102);">Setting pipeline to PAUSED ...</span><br style="background-color: rgb(255, 204, 102);"><span style="background-color: rgb(255, 204, 102);">Setting pipeline to READY ...</span><br style="background-color: rgb(255, 204, 102);">
<span style="background-color: rgb(255, 204, 102);">Setting pipeline to NULL ...</span><br style="background-color: rgb(255, 204, 102);"><span style="background-color: rgb(255, 204, 102);">FREEING pipeline ...</span><br><br>
it came up for fraction of second and went off completly<img goomoji="33A" style="margin: 0pt 0.2ex; vertical-align: middle;" src="cid:33A@goomoji.gmail">. When i play this gif in firefox browser it plays fine. The gif should play for full 20 secs, and has 5frames/sec, with resolution of 576x256.<br>
<br>Please bare with me for the next thing what iam writing, (i am complete noob for gstreamer i should be given some consideration !!)<br><br>I tried to make specific pipeline to play gif,<br><br>gst-launch-0.10 filesrc location=Gifimage.gif ! decoder-image/gif ! xvimagesink<br>
<br>For this i got this in response<br>WARNING: erroneous pipeline: could not link filesrc0 to ximagesink0<br><br><br>Regards<br>Akhil<br><br><br><div class="gmail_quote">On Fri, Jun 18, 2010 at 1:56 AM, <span dir="ltr"><<a href="mailto:gstreamer-devel-request@lists.sourceforge.net">gstreamer-devel-request@lists.sourceforge.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Send gstreamer-devel mailing list submissions to<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:gstreamer-devel-request@lists.sourceforge.net">gstreamer-devel-request@lists.sourceforge.net</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:gstreamer-devel-owner@lists.sourceforge.net">gstreamer-devel-owner@lists.sourceforge.net</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of gstreamer-devel digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Plugin to listen to GstBus (Greg Wunder)<br>
2. Re: Plugin to listen to GstBus (Michael Smith)<br>
3. Re: Plugin to listen to GstBus (Greg Wunder)<br>
4. Re: Plugin to listen to GstBus (Michael Smith)<br>
5. Anybody playing Blu-Rays well? (Grant)<br>
6. Re: Plugin to listen to GstBus (Greg Wunder)<br>
7. decodebin2 doesn't call my decoder (Yuancheng Zheng)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 17 Jun 2010 13:26:11 -0400<br>
From: "Greg Wunder" <<a href="mailto:gwunder@eoir.com">gwunder@eoir.com</a>><br>
Subject: [gst-devel] Plugin to listen to GstBus<br>
To: <<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>><br>
Message-ID: <<a href="mailto:451B4D021F581D4AB9B270C067B7062C0AD9EAF0@NEOEVS.eoir.com">451B4D021F581D4AB9B270C067B7062C0AD9EAF0@NEOEVS.eoir.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Is there an example of a plug-in to listen to messages on the GstBus?<br>
I'm having trouble finding an example & would like to receive messages from other plugins in a given pipeline.<br>
<br>
Greg<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 17 Jun 2010 10:44:54 -0700<br>
From: Michael Smith <<a href="mailto:msmith@xiph.org">msmith@xiph.org</a>><br>
Subject: Re: [gst-devel] Plugin to listen to GstBus<br>
To: Discussion of the development of GStreamer<br>
<<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>><br>
Message-ID:<br>
<<a href="mailto:AANLkTin0LDQ3xcwBEoMj4Cwd_c5hrCShoZaRGXlk2NNZ@mail.gmail.com">AANLkTin0LDQ3xcwBEoMj4Cwd_c5hrCShoZaRGXlk2NNZ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
On Thu, Jun 17, 2010 at 10:26 AM, Greg Wunder <<a href="mailto:gwunder@eoir.com">gwunder@eoir.com</a>> wrote:<br>
> Is there an example of a plug-in to listen to messages on the GstBus?<br>
> I'm having trouble finding an example & would like to receive messages from<br>
> other plugins in a given pipeline.<br>
<br>
There aren't any examples of that, since an element should not listen<br>
to bus messages from other elements.<br>
<br>
Generally events (including custom events) are the appropriate way for<br>
elements to communicate specific additional information amongst<br>
themselves.<br>
<br>
Mike<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 17 Jun 2010 14:04:40 -0400<br>
From: "Greg Wunder" <<a href="mailto:gwunder@eoir.com">gwunder@eoir.com</a>><br>
Subject: Re: [gst-devel] Plugin to listen to GstBus<br>
To: "Discussion of the development of GStreamer"<br>
<<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>><br>
Message-ID: <<a href="mailto:451B4D021F581D4AB9B270C067B7062C0AD9EAF1@NEOEVS.eoir.com">451B4D021F581D4AB9B270C067B7062C0AD9EAF1@NEOEVS.eoir.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Thanks for the insight.<br>
Does "should not" mean this is not possible with the current version of gstreamer?<br>
For video data fusion, I need to communicate forensic data acquired from one plug-in and pass it on to another.<br>
I was hoping to accomplish this through the GstBus.<br>
If this is not possible & I need to use a GstEvent, is there any functionality lost in using an event handler for this purpose?<br>
<br>
Greg<br>
<br>
-----Original Message-----<br>
From: Michael Smith [mailto:<a href="mailto:msmith@xiph.org">msmith@xiph.org</a>]<br>
Sent: Thu 6/17/2010 1:44 PM<br>
To: Discussion of the development of GStreamer<br>
Subject: Re: [gst-devel] Plugin to listen to GstBus<br>
<br>
On Thu, Jun 17, 2010 at 10:26 AM, Greg Wunder <<a href="mailto:gwunder@eoir.com">gwunder@eoir.com</a>> wrote:<br>
> Is there an example of a plug-in to listen to messages on the GstBus?<br>
> I'm having trouble finding an example & would like to receive messages from<br>
> other plugins in a given pipeline.<br>
<br>
There aren't any examples of that, since an element should not listen<br>
to bus messages from other elements.<br>
<br>
Generally events (including custom events) are the appropriate way for<br>
elements to communicate specific additional information amongst<br>
themselves.<br>
<br>
Mike<br>
<br>
------------------------------------------------------------------------------<br>
ThinkGeek and WIRED's GeekDad team up for the Ultimate<br>
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the<br>
lucky parental unit. See the prize list and enter to win:<br>
<a href="http://p.sf.net/sfu/thinkgeek-promo" target="_blank">http://p.sf.net/sfu/thinkgeek-promo</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Thu, 17 Jun 2010 11:09:17 -0700<br>
From: Michael Smith <<a href="mailto:msmith@xiph.org">msmith@xiph.org</a>><br>
Subject: Re: [gst-devel] Plugin to listen to GstBus<br>
To: Discussion of the development of GStreamer<br>
<<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>><br>
Message-ID:<br>
<<a href="mailto:AANLkTikypUJvRL-aZgJr3R-pJtovqW6il1qpTmSjCwTq@mail.gmail.com">AANLkTikypUJvRL-aZgJr3R-pJtovqW6il1qpTmSjCwTq@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
On Thu, Jun 17, 2010 at 11:04 AM, Greg Wunder <<a href="mailto:gwunder@eoir.com">gwunder@eoir.com</a>> wrote:<br>
> Thanks for the insight.<br>
> Does "should not" mean this is not possible with the current version of<br>
> gstreamer?<br>
<br>
It's not entirely clear what you want to do. Bus messages are<br>
inappropriate for communication between elements. It might be possible<br>
to force them into doing that, but it wouldn't be a good idea.<br>
<br>
> For video data fusion, I need to communicate forensic data acquired from one<br>
> plug-in and pass it on to another.<br>
> I was hoping to accomplish this through the GstBus.<br>
> If this is not possible & I need to use a GstEvent, is there any<br>
> functionality lost in using an event handler for this purpose?<br>
><br>
<br>
If you want to communicate data between elements, then that's what<br>
gstreamer's core dataflow is all about - why not just send GstBuffers<br>
containing the data?<br>
<br>
Events and messages are different, but without any details at all<br>
about what sort of data you're sending, and what exactly you're<br>
sending them between, I couldn't say whether the differences matter<br>
for your purposes.<br>
<br>
It does sound like you need a better understanding of the core<br>
gstreamer concepts though - once you understand how gstreamer is<br>
intended to work, it's likely that the right solution to your problem<br>
will be pretty obvious.<br>
<br>
Mike<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Thu, 17 Jun 2010 11:24:54 -0700<br>
From: Grant <<a href="mailto:emailgrant@gmail.com">emailgrant@gmail.com</a>><br>
Subject: [gst-devel] Anybody playing Blu-Rays well?<br>
To: Discussion of the development of GStreamer<br>
<<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>><br>
Message-ID:<br>
<<a href="mailto:AANLkTimA_pQOiUJTI7enrTVdry14Ev5D_tb8EIbI3-hJ@mail.gmail.com">AANLkTimA_pQOiUJTI7enrTVdry14Ev5D_tb8EIbI3-hJ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
I can play Blu-Ray rips no problem via VDPAU, but without VDPAU the<br>
a/v eventually gets out of sync. My CPU is a dual-core AMD 3.1Ghz.<br>
Has anyone been able to play Blu-Rays well without VDPAU/VAAPI? Since<br>
miro went gstreamer-only, it would be great to have software playback<br>
of Blu-Ray rips.<br>
<br>
- Grant<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Thu, 17 Jun 2010 14:38:41 -0400<br>
From: "Greg Wunder" <<a href="mailto:gwunder@eoir.com">gwunder@eoir.com</a>><br>
Subject: Re: [gst-devel] Plugin to listen to GstBus<br>
To: "Discussion of the development of GStreamer"<br>
<<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>><br>
Message-ID: <<a href="mailto:451B4D021F581D4AB9B270C067B7062C0AD9EAF2@NEOEVS.eoir.com">451B4D021F581D4AB9B270C067B7062C0AD9EAF2@NEOEVS.eoir.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
This is a new issue I haven't had to deal with yet, but you've put me on the right track.<br>
Thanks for your help!<br>
<br>
-----Original Message-----<br>
From: Michael Smith [mailto:<a href="mailto:msmith@xiph.org">msmith@xiph.org</a>]<br>
Sent: Thu 6/17/2010 2:09 PM<br>
To: Discussion of the development of GStreamer<br>
Subject: Re: [gst-devel] Plugin to listen to GstBus<br>
<br>
On Thu, Jun 17, 2010 at 11:04 AM, Greg Wunder <<a href="mailto:gwunder@eoir.com">gwunder@eoir.com</a>> wrote:<br>
> Thanks for the insight.<br>
> Does "should not" mean this is not possible with the current version of<br>
> gstreamer?<br>
<br>
It's not entirely clear what you want to do. Bus messages are<br>
inappropriate for communication between elements. It might be possible<br>
to force them into doing that, but it wouldn't be a good idea.<br>
<br>
> For video data fusion, I need to communicate forensic data acquired from one<br>
> plug-in and pass it on to another.<br>
> I was hoping to accomplish this through the GstBus.<br>
> If this is not possible & I need to use a GstEvent, is there any<br>
> functionality lost in using an event handler for this purpose?<br>
><br>
<br>
If you want to communicate data between elements, then that's what<br>
gstreamer's core dataflow is all about - why not just send GstBuffers<br>
containing the data?<br>
<br>
Events and messages are different, but without any details at all<br>
about what sort of data you're sending, and what exactly you're<br>
sending them between, I couldn't say whether the differences matter<br>
for your purposes.<br>
<br>
It does sound like you need a better understanding of the core<br>
gstreamer concepts though - once you understand how gstreamer is<br>
intended to work, it's likely that the right solution to your problem<br>
will be pretty obvious.<br>
<br>
Mike<br>
<br>
------------------------------------------------------------------------------<br>
ThinkGeek and WIRED's GeekDad team up for the Ultimate<br>
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the<br>
lucky parental unit. See the prize list and enter to win:<br>
<a href="http://p.sf.net/sfu/thinkgeek-promo" target="_blank">http://p.sf.net/sfu/thinkgeek-promo</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Thu, 17 Jun 2010 13:14:22 -0700<br>
From: Yuancheng Zheng <<a href="mailto:Yuancheng.Zheng@palm.com">Yuancheng.Zheng@palm.com</a>><br>
Subject: [gst-devel] decodebin2 doesn't call my decoder<br>
To: "<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>"<br>
<<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>><br>
Message-ID: <9C159646F76EA0498E7891D8121707A54D6D969693@ushqwmb02><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
<br>
Hi,<br>
<br>
I implemented an voice decoder plugin "audiodecoder" with data type, ie. ydt. I can succeed in playing back a file with gst-launch in this way:<br>
gst-launch filesrc location data.ydt ! audiodecoder ! filesink location=myout.pcm<br>
<br>
However, I failed in playing back the same file using decodebin2 in this way:<br>
gst-launch filesrc location data.ydt ! decodebin2 ! filesink location=myout.pcm<br>
<br>
I implemented a typefind function in my audiodecoder plugin:<br>
<br>
static gchar *ydt_exts[] = { "ydt", NULL };<br>
static void ydt_typefind_function (GstTypeFind *tf,<br>
gpointer data)<br>
{<br>
guint8 *typedata = gst_type_find_peek (tf, 8, 4);<br>
GstCaps* decoderCaps = NULL;<br>
<br>
if( typedata == NULL )<br>
return;<br>
<br>
<br>
/* verify YDT container */<br>
if (memcmp ((char *)typedata, "ydt ", 4) != 0)<br>
return;<br>
<br>
GST_DEBUG("YDT data type found\n");<br>
<br>
decoderCaps = gst_caps_new_simple("audio/ydt",<br>
"rate", G_TYPE_INT, 8000,<br>
"channels", G_TYPE_INT, 1,<br>
"width", G_TYPE_INT, 16,<br>
"depth", G_TYPE_INT, 16,<br>
"endianness", G_TYPE_INT, BYTE_ORDER,<br>
"signed", G_TYPE_BOOLEAN, TRUE, NULL);<br>
<br>
gst_type_find_suggest (tf, GST_TYPE_FIND_LIKELY, decoderCaps);<br>
gst_caps_unref (decoderCaps);<br>
<br>
}<br>
<br>
static gboolean plugin_init (GstPlugin * plugin)<br>
{<br>
......<br>
<br>
/* register typefind function */<br>
if(!gst_type_find_register (plugin, "audio/ydt", GST_RANK_MARGINAL,<br>
ydt_typefind_function,<br>
ydt_exts,<br>
GST_CAPS_ANY, NULL, NULL))<br>
<br>
......<br>
<br>
}<br>
<br>
By using gst-typefind I know that the data type YDT is verified and its caps are displayed correctly. The application decodbin2 display correct caps too.<br>
<br>
My problem starts from here: after typefind verifies YDT data type, decodebin2 repeats calling my typefind function and not move on. It seems that decodebin2 can't find appropriate element to connect to.<br>
<br>
The setting of pads of my audiodecoder plugin are as below:<br>
static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",<br>
GST_PAD_SINK,<br>
GST_PAD_ALWAYS,<br>
GST_STATIC_CAPS ( "audio/x-raw-int, endianness = (int) BYTE_ORDER, signed = (boolean) true, width = (int) 16, depth = (int) 16, channels = (int) 1, rate = (int) 8000")<br>
);<br>
<br>
<br>
static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",<br>
GST_PAD_SRC,<br>
GST_PAD_ALWAYS,<br>
GST_STATIC_CAPS (<br>
"audio/x-raw-int, "<br>
"width = (int) 16, "<br>
"depth = (int) 16, "<br>
"endianness = (int) BYTE_ORDER, "<br>
"channels = (int) 1, "<br>
"samplerate = (int) {8000}"<br>
)<br>
);<br>
<br>
Can somebody help me fix the issue the implementation of my audio decoder with using decodebin2?<br>
<br>
Thanks,<br>
<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
------------------------------------------------------------------------------<br>
ThinkGeek and WIRED's GeekDad team up for the Ultimate<br>
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the<br>
lucky parental unit. See the prize list and enter to win:<br>
<a href="http://p.sf.net/sfu/thinkgeek-promo" target="_blank">http://p.sf.net/sfu/thinkgeek-promo</a><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br>
<br>
End of gstreamer-devel Digest, Vol 49, Issue 50<br>
***********************************************<br>
</blockquote></div><br>