how to send signal to multiudpsink from application

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

how to send signal to multiudpsink from application

arnabsamanta
Hello All,

I have a scenario where I am going to add multiple client address
to multiudpsink dynamically, ie when the pipeline is playing .

I guess I need to send "add" signal with the cleint address
to multiudpsink from the application.
Is my understanding correct ?

If so, can somebody Please tell me how can I send signal
from application to plugins ?

I guess g_siganl_connect is used to do just the reverse -
from plugin to application.

Please suggest.

Thanks and regards,
Arnab





------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to send signal to multiudpsink from application

Wim Taymans
On Mon, 2010-03-08 at 14:40 +0530, arnabsamanta wrote:

> Hello All,
>
> I have a scenario where I am going to add multiple client address
> to multiudpsink dynamically, ie when the pipeline is playing .
>
> I guess I need to send "add" signal with the cleint address
> to multiudpsink from the application.
> Is my understanding correct ?
>
> If so, can somebody Please tell me how can I send signal
> from application to plugins ?
>
> I guess g_siganl_connect is used to do just the reverse -
> from plugin to application.
>
Like this:

gchar *dest;
gint port;

g_signal_emit_by_name (multiudpsink, "add", dest, port, NULL);


Wim

> Please suggest.
>
> Thanks and regards,
> Arnab
>
>
>
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to send signal to multiudpsink from application

Demon Deng
In reply to this post by arnabsamanta
g_signal_emit_by_name (udpsink, "add", address, port, NULL);

Please refer to function gst_rtsp_media_set_state in http://cgit.freedesktop.org/gstreamer/gst-rtsp-server/tree/gst/rtsp-server/rtsp-media.c

2010/3/8 arnabsamanta <[hidden email]>
Hello All,

I have a scenario where I am going to add multiple client address
to multiudpsink dynamically, ie when the pipeline is playing .

I guess I need to send "add" signal with the cleint address
to multiudpsink from the application.
Is my understanding correct ?

If so, can somebody Please tell me how can I send signal
from application to plugins ?

I guess g_siganl_connect is used to do just the reverse -
from plugin to application.

Please suggest.

Thanks and regards,
Arnab





------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to send signal to multiudpsink from application

djlorenzoc
Hi all,
I made a simple gstreamer #C program that uses udpsink to stream from v4l2src to some clients.
I want to change dinamically the clients that receive the stream, without destroying the pipe and restarting it. I searched and I found your plugin, multiudpsink, that it seem to do what I want using :
. I read the documentation, and I've got some doubts:
-1) Udpsink and multiudpsink work in the same way,it's possible to use them for the same purposes...But I can dinamically manage only multiudpsink's parameters. Is it right?  
-2) How can I change clients addresses? Could I do this change when the pipe is in PAUSE and PLAY state?
After the creation of the pipe, I added this commands, but they don't work properly:

sink=gst_element_factory_make("multiudpsink","output");
...
 g_signal_emit_by_name(sink, "add","192.168.1.8", 1234, NULL);

but it doesn't work. I don't receive anything to 192.168.1.8.
What is the error?

-3)Could I use g_signal_emit_by_name function when the pipe is in play or pause state?

Thank you
Lorenzo


Demon Deng wrote
g_signal_emit_by_name (udpsink, "add", address, port, NULL);

Please refer to function gst_rtsp_media_set_state in
http://cgit.freedesktop.org/gstreamer/gst-rtsp-server/tree/gst/rtsp-server/rtsp-media.c

2010/3/8 arnabsamanta <arnabsamanta@tataelxsi.co.in>

> Hello All,
>
> I have a scenario where I am going to add multiple client address
> to multiudpsink dynamically, ie when the pipeline is playing .
>
> I guess I need to send "add" signal with the cleint address
> to multiudpsink from the application.
> Is my understanding correct ?
>
> If so, can somebody Please tell me how can I send signal
> from application to plugins ?
>
> I guess g_siganl_connect is used to do just the reverse -
> from plugin to application.
>
> Please suggest.
>
> Thanks and regards,
> Arnab
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel