Udp streaming

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

Udp streaming

enricom
Hello, I'm trying to use udpsink to send a buffer to another user. So far I've created the buffer, set the size and injected it through appsrc that is linked to an identity element. By checking the handoff signal I found that the buffer is pushed correctly, but then the udpsink element (linked to the identity one) doesn't send anything. Unfortunately I've not been able to find whether I have to set some properties on udpsink in order to make it stream a non-traditional buffer (it doesn't contain any video or audio, but only a value)..

Thank you very much.

Enrico
Reply | Threaded
Open this post in threaded view
|

Re: Udp streaming

Tim-Philipp Müller-2
On Thu, 2012-05-17 at 02:14 -0700, enricom wrote:

> Hello, I'm trying to use udpsink to send a buffer to another user. So far
> I've created the buffer, set the size and injected it through appsrc that is
> linked to an identity element. By checking the handoff signal I found that
> the buffer is pushed correctly, but then the udpsink element (linked to the
> identity one) doesn't send anything. Unfortunately I've not been able to
> find whether I have to set some properties on udpsink in order to make it
> stream a non-traditional buffer (it doesn't contain any video or audio, but
> only a value)..

Check the GST_DEBUG=*sink:5 log, perhaps udpsink is dropping the buffer.

You could also try setting the "sync" property on udpsink to FALSE.

Cheers
 -Tim

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Udp streaming

enricom
Yes, thank you, I had made a mistake in declaring the correct size...but how can I insert custom data in the data field of this buffer? Because I need to send the receiver a time value and a string, but I can't understand how to map them into my buffer...





Tim-Philipp Müller-2 wrote
On Thu, 2012-05-17 at 02:14 -0700, enricom wrote:

> Hello, I'm trying to use udpsink to send a buffer to another user. So far
> I've created the buffer, set the size and injected it through appsrc that is
> linked to an identity element. By checking the handoff signal I found that
> the buffer is pushed correctly, but then the udpsink element (linked to the
> identity one) doesn't send anything. Unfortunately I've not been able to
> find whether I have to set some properties on udpsink in order to make it
> stream a non-traditional buffer (it doesn't contain any video or audio, but
> only a value)..

Check the GST_DEBUG=*sink:5 log, perhaps udpsink is dropping the buffer.

You could also try setting the "sync" property on udpsink to FALSE.

Cheers
 -Tim

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Udp streaming

enricom
Ok, found, memcpy fits my needs...

Bye!


enricom wrote
Yes, thank you, I had made a mistake in declaring the correct size...but how can I insert custom data in the data field of this buffer? Because I need to send the receiver a time value and a string, but I can't understand how to map them into my buffer...





Tim-Philipp Müller-2 wrote
On Thu, 2012-05-17 at 02:14 -0700, enricom wrote:

> Hello, I'm trying to use udpsink to send a buffer to another user. So far
> I've created the buffer, set the size and injected it through appsrc that is
> linked to an identity element. By checking the handoff signal I found that
> the buffer is pushed correctly, but then the udpsink element (linked to the
> identity one) doesn't send anything. Unfortunately I've not been able to
> find whether I have to set some properties on udpsink in order to make it
> stream a non-traditional buffer (it doesn't contain any video or audio, but
> only a value)..

Check the GST_DEBUG=*sink:5 log, perhaps udpsink is dropping the buffer.

You could also try setting the "sync" property on udpsink to FALSE.

Cheers
 -Tim

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel