Bug 55756 - gstreamer sdk 2012.9 udpsink fails on windows 7
Summary: gstreamer sdk 2012.9 udpsink fails on windows 7
Status: REOPENED
Alias: None
Product: GStreamer SDK
Classification: Unclassified
Component: Windows SDK Distribution (show other bugs)
Version: unspecified
Hardware: Other Windows (All)
: medium major
Assignee: bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-08 10:34 UTC by uovobw
Modified: 2013-03-12 05:37 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
libgstudp.dll (x86_86) (396.78 KB, text/plain)
2012-10-11 15:55 UTC, Andoni Morales Alastruey
Details
libgstudp.dll (x86) (339.38 KB, text/plain)
2012-10-11 16:00 UTC, Andoni Morales Alastruey
Details
libgstudp.dll (x86) (338.82 KB, application/x-msdos-program)
2012-10-13 10:18 UTC, Andoni Morales Alastruey
Details

Description uovobw 2012-10-08 10:34:09 UTC
I am writing a pipeline that reads from a dshowvideosrc and streams it over the
network via udp. Using the gstreamer-sdk version 2012.7 the udpsink plugin was
working correctly, with the latest version (2012.9) it errors as follows:

C:...> gst-launch-0.10 mpegtsmux name="muxer" ! udpsink host=<ADDR> port=<PORT>
dshowvideosrc ! tee name="t" ! queue !
video/x-raw-yuv,width=320,height=240,framerate=30/1 ! ffmpegcolorspace !
videoscale ! videorate ! ffenc_mpeg4 ! muxer. dshowaudiosrc! audioconvert !
audioresample ! ffenc_aac bitrate=192 ! queue ! muxer. t. ! queue !
autovideosink
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstUDPSink:udpsink0: Could not
get/set settings from/on resource.
Additional debug info:
gstmultiudpsink.c(908): gst_multiudpsink_configure_client ():
/GstPipeline:pipeline0/GstUDPSink:udpsink0:
Could not set TTL socket option (10022): A
Setting pipeline to NULL ...
Freeing pipeline ...

while the debug log launched as follows:

http://www.uovobw.net/~uovobw/gst_udp_window_debug.log

For further informations contact me on the email provided as username
Comment 1 Sebastian Dröge (slomo) 2012-10-08 10:45:02 UTC
There were no changes to the UDP plugin since the first SDK release it seems, so the problem is most likely related to compiler options.
Comment 2 Andoni Morales Alastruey 2012-10-08 10:46:42 UTC
(In reply to comment #1)
> There were no changes to the UDP plugin since the first SDK release it
> seems, so the problem is most likely related to compiler options.

Maybe glib's GSocket? I'll check
Comment 3 uovobw 2012-10-09 12:02:48 UTC
any news on this? i tested some more and found it's happening on 2012.7 as well, i was just never triggering it  before. I have the windows 7 machine in hand now and i am trying to restart it with ipv6 disabled, to see if it makes any difference, as i read online that there was a bunch of ipv6 patches added lately that COULD be the cause
Comment 4 Andoni Morales Alastruey 2012-10-09 12:09:05 UTC
So it's not a regression, it's just that it never worked. There was an upstrem bug that was closed recently because someone confirmed that the bug was fixed, but I think he was not testing it properly.
Comment 5 uovobw 2012-10-09 12:15:33 UTC
i agree he was not, i am testing this on windows 7 and, with the ipv6 stack disabled, i get the _same_ error i posted in the first mail.
there also seems to be no tcp plugin on the 2012.9 sdk, so there is basically no way of sending/receiving tcp/udp with windows atm...
Comment 6 Andoni Morales Alastruey 2012-10-11 13:19:45 UTC
I will provide a new DLL with that fixed ASAP so that you don't have to wait until the next bugfix release.
Comment 7 uovobw 2012-10-11 14:27:25 UTC
thank you very much!
if any testing/help is needed please contact me on the user mail!
Comment 8 Andoni Morales Alastruey 2012-10-11 15:55:31 UTC
Created attachment 68445 [details]
libgstudp.dll (x86_86)
Comment 9 Andoni Morales Alastruey 2012-10-11 16:00:51 UTC
Created attachment 68446 [details]
libgstudp.dll (x86)
Comment 10 Andoni Morales Alastruey 2012-10-11 16:03:19 UTC
Issue fixed at least in my side test with:

gst-launch-0.10 videotestsrc ! ffenc_mpeg2video ! mpegtsmux ! udpsink

gst-launch-0.10 udpsrc uri=udp://localhost:4951 ! decodebin2 ! d3dvideosink sync=false
Comment 11 Jordan S 2012-10-11 18:03:37 UTC
Andoni,
I have been trying to get this to work with your attached fix. I think the file named libgstudp.dll (x86_86) is actually the 64-bit version.

I tried executing the simple example that you posted in your comment but I couldn't get it to work because I don't have ffenc_mpeg2video as part of my installation. I also wonder why you specified udpsrc port 4951 in your test? Doesn't udpsink default to using port 5004? 

I then tried executing the example on the udpsrc manual page which looks like this:
gst-launch-1.0 -v udpsrc ! fakesink dump=1   (In first terminal)
gst-launch-1.0 -v audiotestsrc ! udpsink     (In second terminal)

and I just get a blank screen. No Data dump. It doesn't produce an error now so that is progress!
Comment 12 uovobw 2012-10-12 09:11:16 UTC
I am very sorry to report this, but the bug is still not fixed in my system. I checked the path and i downloaded the libgstudp.dll file for my arch (x86) and deployed it in the GSTREAMER_SDK_ROOT_X86/lib/gstreamer-0.10/ directory after renaming the old file to libgstudp.dll_ORIG. The error persists with the same messages of the original bug. If needed i can provide the full GST_DEBUG=*:10 output

thanks all for your time,
let me know how i can help
Comment 13 LRN 2012-10-12 09:29:37 UTC
Just a thought: you said that you've been using gst-launch-1.0 to test it, not gst-launch-0.10. Why? AFAIU, the patched file is for 0.10. Was that just a typo?
Comment 14 uovobw 2012-10-12 10:49:27 UTC
if referring to Jordan S (comment 11) i have no idea, i used gst-launch-0.10 from the sdk
Comment 15 Jordan S 2012-10-12 18:08:15 UTC
I finally got it working. This patch appears to be good. I can stream the audiotestsrc over udp. It doesn't work for streaming the videotestsrc but I think that's a buffer size problem and not an issue with udpsink.
Comment 16 Andoni Morales Alastruey 2012-10-13 10:15:06 UTC
 Check the example(In reply to comment #11)
> Andoni,
> I have been trying to get this to work with your attached fix. I think the
> file named libgstudp.dll (x86_86) is actually the 64-bit version.

x86 is the architecture name for 32bits and x86_64 for 64bits

> 
> I then tried executing the example on the udpsrc manual page which looks
> like this:
> gst-launch-1.0 -v udpsrc ! fakesink dump=1   (In first terminal)
> gst-launch-1.0 -v audiotestsrc ! udpsink     (In second terminal)

This won't work as the defaul url for udpsrc is udp://0.0.0.0:4951, so you should use udp://localhost:4951 as in the example.

(In reply to comment #15)
> I finally got it working. This patch appears to be good. I can stream the
> audiotestsrc over udp. It doesn't work for streaming the videotestsrc but I
> think that's a buffer size problem and not an issue with udpsink.

Streaming raw video with udpsink will never work with udpsink unless you manage to split the big incomming buffers into smaller ones, that's why on my example  in Comment10 I encoded and muxed the output of videotestsrc before streaming it.
Comment 17 Andoni Morales Alastruey 2012-10-13 10:16:07 UTC
(In reply to comment #12)
> I am very sorry to report this, but the bug is still not fixed in my system.
> I checked the path and i downloaded the libgstudp.dll file for my arch (x86)
> and deployed it in the GSTREAMER_SDK_ROOT_X86/lib/gstreamer-0.10/ directory
> after renaming the old file to libgstudp.dll_ORIG. The error persists with
> the same messages of the original bug. If needed i can provide the full
> GST_DEBUG=*:10 output
> 
> thanks all for your time,
> let me know how i can help

I think I forgot to run make install and I attached the old file :)
Comment 18 Andoni Morales Alastruey 2012-10-13 10:18:51 UTC
Created attachment 68514 [details]
libgstudp.dll (x86)
Comment 19 uovobw 2012-10-15 10:17:56 UTC
awesome!
i can confirm this udp lib is working (at least on windows 7 32bit and latest sdk with the dll dropped in) as expected! i have some pipelines problem atm but they seem to be failing due to rtp-related problems, so i'd say this patch is a keeper
thanks a lot everyone for your work!
Comment 20 uovobw 2012-10-16 14:24:04 UTC
Me again,
it seems there still are some problems with udpsink on windows 7, i am trying to exclude the source of the problem (as i mentioned i had pipelines issues) and i just found that, with the 2012.9 sdk with the libgstudp.dll file dropped in ROOT/lib/gstreamer-0.10/ there are _no_ packets being sent.
I tested with:

gst-launch-0.10 fakesrc is-live=TRUE num-buffers=150 ! queue ! udpsink host=MYHOST port=1234

on MYHOST (a linux machine connected with a direct cable to the windows one) i am running tcpdump but i see NO packets coming in (and for what it's worth there are no packets being sent on the windows side as well, as i see no traffic in the system monitor, but i guess that is not a good measurement)

There are no errors displayed with GST_DEBUG=*:8 and the pipeline works (until, of course, it gets a EOS from the fakesrc)

where/how can i look more into this?

thanks
Comment 21 uovobw 2012-10-16 15:36:11 UTC
i have created two debug files:

https://www.tapiri.homelinux.org/~uovobw/gst_debug.local.log
https://www.tapiri.homelinux.org/~uovobw/gst_debug.remote.log

the first for sending to 127.0.0.1 and the other one that would send to 192.168.17.77
The streamer pipeline used is:

gst-launch-0.10 fakesrc is-live=TRUE num-buffers=150 ! queue ! udpsink host=MYHOST port=1234
Comment 22 uovobw 2012-10-22 08:01:17 UTC
any news  on this?
Comment 23 Andoni Morales Alastruey 2012-10-22 09:00:01 UTC
could you  just try with locahost and not 127.0.0.1 like I requested on IRC? I think we have triggered a completely different bug
Comment 24 uovobw 2012-10-22 11:17:13 UTC
tested with localhost as metnioned in irc (see comment #10), log here:

https://www.tapiri.homelinux.org/~uovobw/gst_debug.localhost.log
Comment 25 uovobw 2012-10-24 22:32:05 UTC
any news on this? more debug i can provide? this udp/localhost resolution bug is a pretty big showstopper to me, any way i can help please let me know!
thanks
Comment 26 Andoni Morales Alastruey 2012-10-25 09:02:38 UTC
I haven't found time to look at it yet, but I will before the end of the week
Comment 27 uovobw 2012-11-05 08:51:43 UTC
any news on this?
Comment 28 Heiher 2013-03-12 05:37:07 UTC
Hello,

There is GstUdp backport from gst-1.0 to SDK (0.10) => https://github.com/heiher/gst-udp


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.