source port of udp sink

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

source port of udp sink

giorgino
Hi all,
         I have a question for you. There is a way in order to know or to set the source port of an udpsink or a rtpbin (that i think works over udpsink)?

Thanks in advance
Reply | Threaded
Open this post in threaded view
|

Re: source port of udp sink

Wim Taymans
Did you try the 'port' property? Use gst-inspect udpsrc and
gst-inspect udpsink to find the
properties or read the element documentation on the website.

Wim

On Mon, Jan 24, 2011 at 12:08 PM, giorgino <[hidden email]> wrote:

>
> Hi all,
>         I have a question for you. There is a way in order to know or to
> set the source port of an udpsink or a rtpbin (that i think works over
> udpsink)?
>
> Thanks in advance
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/source-port-of-udp-sink-tp3233756p3233756.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: source port of udp sink

giorgino
Hi and thanks for the answer. I tried but there isn't anything. I don't need anything on udpsrc infact my problem is to know and then to set, the source port of the udpsink before the pipe starts. I think that usually gstreamer assigns the source port in a random way, but for my purposes I need to have the management of this thing in order to set manually the source port.

G.
Reply | Threaded
Open this post in threaded view
|

Re: source port of udp sink

Michael Trimarchi
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/24/2011 12:40 PM, giorgino wrote:
>
> Hi and thanks for the answer. I tried but there isn't anything. I don't need
> anything on udpsrc infact my problem is to know and then to set, the source
> port of the udpsink before the pipe starts. I think that usually gstreamer
> assigns the source port in a random way, but for my purposes I need to have
> the management of this thing in order to set manually the source port.
>
> G.

g_object_set(G_OBJECT(udpsrc),
                 "sockfd", fd_sock,
                 "port", port,
                 NULL);

Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNPWf6AAoJEJJLw+x5tkpwv84H/1sKXMiJOl6e7rol4GsYu9OF
z2SccHxqHkWDfqyYMuN85PIWsBZsf6PFU4OgRl9Cw7rUH8h0gg9XKHvn8+6LGs9k
t4uVp8NckwonPYaHqgmsU0vsSsd28BJOUKT4vkXBX8t6VZK2KYU9VoooKLds+B3m
5rmrrdtjfODMtaPA/mN83vvFuYBe1w23sgI2qoA4DqfAbc7znUg3PigORW9eOhRd
4J/6yf6Hx2sAUipzUEsg4Aj9ZbqU/COyRkPATmDtQYVeCy4L6FJ+7ux8aAN8STCw
wQUNDMzdlYFvHs8RvnI6TzoJ8/6fJHUJvZ0Nb9kjAIuSFK2yVbgBBa85kSFRHns=
=NgqR
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: source port of udp sink

giorgino
Hi Micheal I have not yet tried your solution but I guess it works, so many thanks.

G.