<div dir="ltr">An RTMP uri should be<div><br></div><div> rtmp://host[:port]/app/media</div><div><br></div><div>so, 2 slashes at least after the hostname.</div><div><br></div><div>Wim</div></div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On 6 March 2014 16:50, Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Do, 2014-03-06 at 00:44 -0800, Dmitry Kazakov wrote:<br>
> Hi all,<br>
><br>
> I'm trying to play rtmp steam an Android device. I use application from<br>
> tutorial 4, where I changed url on rtmp://<a href="http://itv08.digiquite.dk/tv2b" target="_blank">itv08.digiquite.dk/tv2b</a>. As I<br>
> understand "playbin" should support it out of the box.<br>
><br>
> Instead application failed with errors:<br>
><br>
> E/GStreamer+rtmpsrc(22897): 0:00:10.237437999 0x21430a0<br>
> gstrtmpsrc.c:234:gst_rtmp_src_uri_set_uri:<source> Failed to parse URI<br>
> rtmp://<a href="http://itv08.digiquite.dk/tv2b" target="_blank">itv08.digiquite.dk/tv2b</a><br>
> W/GStreamer+GST_URI(22897): 0:00:10.237600999 0x21430a0<br>
> gsturi.c:611:gst_element_make_from_uri source didn't accept URI 'rtmp://<br>
> <a href="http://itv08.digiquite.dk/tv2b" target="_blank">itv08.digiquite.dk/tv2b</a>': Could not parse RTMP URI<br>
> W/GStreamer+uridecodebin(22897): 0:00:10.237925999 0x21430a0<br>
> gsturidecodebin.c:1404:gen_source_element:<uridecodebin1> error: Could not<br>
> parse RTMP URI<br>
> W/GStreamer+uridecodebin(22897): 0:00:10.238139999 0x21430a0<br>
> gsturidecodebin.c:1404:gen_source_element:<uridecodebin1> error: No element<br>
> accepted URI 'rtmp://<a href="http://itv08.digiquite.dk/tv2b" target="_blank">itv08.digiquite.dk/tv2b</a>'<br>
> D/GStreamer+tutorial-4(22897): 0:00:10.238458999 0x21a6ea0<br>
> jni/tutorial-4.c:104:set_ui_message Setting message to: Error received from<br>
> element uridecodebin1: Could not parse RTMP URI<br>
><br>
> Sources contains this piece of code:<br>
><br>
> if (!RTMP_ParseURL (uri, &protocol, &host, &port, &playpath, &app) ||<br>
><br>
> !host.av_len || !playpath.av_len) {<br>
> GST_ERROR_OBJECT (src, "Failed to parse URI %s", uri);<br>
> g_set_error (error, GST_URI_ERROR, GST_URI_ERROR_BAD_URI,<br>
> "Could not parse RTMP URI");<br>
> return FALSE;<br>
> }<br>
><br>
> Unlikely, I can't find the definition of RTMP_ParseURL- all files are<br>
> included to this class don't have this method. Librtmp has one but it<br>
> either doesn't give an idea what is going wrong<br>
> <a href="http://subversion.assembla.com/svn/sget/tools/rtmpdump/librtmp/parseurl.c" target="_blank">http://subversion.assembla.com/svn/sget/tools/rtmpdump/librtmp/parseurl.c</a>,<br>
> My url doesn't have a port - can this be an issue?<br>
<br>
</div></div>That's the function from librtmp that is called there, and that fails on<br>
your URI. You probably want to report a bug to them about this.<br>
<br>
The port is optional, but I can't see right now what is missing from<br>
your URI either.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Sebastian Dröge, Centricular Ltd - <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br>
Expertise, Straight from the Source<br>
</font></span><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>
<br></blockquote></div><br></div>