<div dir="ltr">To make sure we understood.<div><br></div><div>giostreamsrc -> filesink [Works]</div><div>audiotestsrc -> udpsink [Works]</div><div>giostreamsrc -> udpsink [FAIL]<br></div><div>audiotestsrc -> filesink [FAIL]<br>
</div><div><br></div><div>Is this correct?</div><div><br></div><div>Luis</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 30 April 2014 07:34, Matthias Dübon <span dir="ltr"><<a href="mailto:mail@ing-duebon.de" target="_blank">mail@ing-duebon.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello everyone,<br>
<br>
I am trying to use the giostreamsrc plugin and I got some problems.<br>
When I use giostreamsrc as source (define GIOSTREAMSRC and filesink as<br>
sink (define FILESINK) then everything is fine. But when I use udpsink<br>
as sink (undefine FILESINK) my client doesn't receive data. But when I<br>
use audiotestsr as source (undefine GIOSTREAMSRC) everything works<br>
fine, e.g. my client receives udp data.<br>
That means udpsink and giostreamsrc are working separately but not<br>
combined. Does that make any sense to you?<br>
BTW I am using gstreamer version 0.10<br>
<br>
<br>
mystream = G_MEMORY_INPUT_STREAM(g_memory_input_stream_new_from_data(wave,<br>
LEN,<br>
(GDestroyNotify) g_free));<br>
#ifdef GIOSTREAMSRC<br>
source = gst_element_factory_make ("giostreamsrc", "source");<br>
#else<br>
source = gst_element_factory_make ("audiotestsrc", "source");<br>
#endif<br>
<br>
g_object_set (G_OBJECT (source), "stream", G_INPUT_STREAM (mystream), NULL);<br>
sourcepad = gst_element_get_static_pad(source, "src");<br>
gst_pad_set_caps (sourcepad,<br>
gst_caps_new_simple ("audio/x-raw-int",<br>
"rate", G_TYPE_INT, 22000,<br>
"channels", G_TYPE_INT, 1,<br>
"width", G_TYPE_INT, 16,<br>
"depth", G_TYPE_INT, 16,<br>
"signed", G_TYPE_BOOLEAN, TRUE,<br>
NULL));<br>
gst_object_unref (sourcepad);<br>
<br>
#if FILESINK<br>
sink = gst_element_factory_make ("filesink", "sink");<br>
g_object_set (G_OBJECT (sink), "location", "test.pcm", NULL);<br>
#else<br>
sink = gst_element_factory_make ("udpsink", "sink");<br>
g_object_set (G_OBJECT (sink), "host", "127.0.0.1", NULL);<br>
g_object_set (G_OBJECT (sink), "port", 2222, NULL);<br>
#endif<br>
<br>
g_object_set (G_OBJECT (sink), "host", "127.0.0.1", NULL);<br>
g_object_set (G_OBJECT (sink), "port", 2222, NULL);<br>
pipeline = gst_pipeline_new ("my-pipeline");<br>
gst_bin_add_many (GST_BIN (pipeline),<br>
source, sink, NULL);<br>
gst_element_link_many (source, sink, NULL);<br>
gst_element_set_state (pipeline, GST_STATE_PLAYING);<br>
<br>
best wishes<br>
Matthias<br>
ᐧ<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div></div>