g_object_notify in filesrc

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

g_object_notify in filesrc

Greg Wunder
g_object_notify in filesrc

When the filesrc plugin emits the g_object_notify location parameter, how can another plug-in in the chain pick this up?





------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: g_object_notify in filesrc

michael smith-6-3
On Tue, Dec 21, 2010 at 10:38 AM, Greg Wunder <[hidden email]> wrote:
> When the filesrc plugin emits the g_object_notify location parameter, how
> can another plug-in in the chain pick this up?

Your application can connect to this notify signal to find out about
this (though it seems to me that this would be a strange thing to want
to do), but other plugins in the pipeline shouldn't ever do that -
that's not how gstreamer works.

If you describe what you're trying to accomplish we might be able to
help point you in the right direction.

Mike

------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: g_object_notify in filesrc

Greg Wunder
RE: [gst-devel] g_object_notify in filesrc

I have a pipeline I run as such:

gst-launch filesrc location=C:/Test0001.jpg ! decodebin ! freeze ! ffmpegcolorspace ! ppdet ! glimagesink

I want ppdet to access the filesrc location parameter, but it doesn't appear that this is sent to the GstBus or as a GstEvent.

How can I accomplish this?


-----Original Message-----
From: Michael Smith [[hidden email]]
Sent: Tue 12/21/2010 1:48 PM
To: Discussion of the development of GStreamer
Subject: Re: [gst-devel] g_object_notify in filesrc

On Tue, Dec 21, 2010 at 10:38 AM, Greg Wunder <[hidden email]> wrote:
> When the filesrc plugin emits the g_object_notify location parameter, how
> can another plug-in in the chain pick this up?

Your application can connect to this notify signal to find out about
this (though it seems to me that this would be a strange thing to want
to do), but other plugins in the pipeline shouldn't ever do that -
that's not how gstreamer works.

If you describe what you're trying to accomplish we might be able to
help point you in the right direction.

Mike

------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: g_object_notify in filesrc

michael smith-6-3
On Tue, Dec 21, 2010 at 10:53 AM, Greg Wunder <[hidden email]> wrote:
> I have a pipeline I run as such:
>
> gst-launch filesrc location=C:/Test0001.jpg ! decodebin ! freeze !
> ffmpegcolorspace ! ppdet ! glimagesink
>
> I want ppdet to access the filesrc location parameter, but it doesn't appear
> that this is sent to the GstBus or as a GstEvent.
>
> How can I accomplish this?

That's correct - the filename in use isn't sent. The way GStreamer
works, elements downstream aren't supposed to know about _what_ is
providing the data - they just receive the data and process it.

You might equally be using a source that _doesn't_ read a file at all,
so there's no filename to use - so your element would be buggy if it
relied on this information, and that's why GStreamer doesn't provide
it.

I don't know what your 'ppdet' element does - why do you want the
filename in use? You probably need to figure out a different way to
implement whatever you're doing.

Mike

------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: g_object_notify in filesrc

Stefan Sauer
In reply to this post by Greg Wunder
On 21.12.2010 20:53, Greg Wunder wrote:

>
> I have a pipeline I run as such:
>
> gst-launch filesrc location=C:/Test0001.jpg ! decodebin ! freeze !
> ffmpegcolorspace ! ppdet ! glimagesink
>
> I want ppdet to access the filesrc location parameter, but it doesn't
> appear that this is sent to the GstBus or as a GstEvent.
>
> How can I accomplish this?
>

You can use a uri query:
gst_query_new_uri().

Stefan

>
>
> -----Original Message-----
> From: Michael Smith [mailto:[hidden email]]
> Sent: Tue 12/21/2010 1:48 PM
> To: Discussion of the development of GStreamer
> Subject: Re: [gst-devel] g_object_notify in filesrc
>
> On Tue, Dec 21, 2010 at 10:38 AM, Greg Wunder <[hidden email]> wrote:
> > When the filesrc plugin emits the g_object_notify location
> parameter, how
> > can another plug-in in the chain pick this up?
>
> Your application can connect to this notify signal to find out about
> this (though it seems to me that this would be a strange thing to want
> to do), but other plugins in the pipeline shouldn't ever do that -
> that's not how gstreamer works.
>
> If you describe what you're trying to accomplish we might be able to
> help point you in the right direction.
>
> Mike
>
> ------------------------------------------------------------------------------
> Forrester recently released a report on the Return on Investment (ROI) of
> Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
> within 7 months.  Over 3 million businesses have gone Google with
> Google Apps:
> an online email calendar, and document program that's accessible from your
> browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
> ------------------------------------------------------------------------------
> Forrester recently released a report on the Return on Investment (ROI) of
> Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
> within 7 months.  Over 3 million businesses have gone Google with Google Apps:
> an online email calendar, and document program that's accessible from your
> browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel