Run RMP on Android

Sebastian Dröge sebastian at centricular.com
Thu Mar 6 07:50:28 PST 2014


On Do, 2014-03-06 at 00:44 -0800, Dmitry Kazakov wrote:
> Hi all,
> 
> I'm trying to play rtmp steam an Android device. I use application from
> tutorial 4, where I changed url on rtmp://itv08.digiquite.dk/tv2b. As I
> understand "playbin" should support it out of the box.
> 
> Instead application failed with errors:
> 
> E/GStreamer+rtmpsrc(22897): 0:00:10.237437999 0x21430a0
> gstrtmpsrc.c:234:gst_rtmp_src_uri_set_uri:<source> Failed to parse URI
> rtmp://itv08.digiquite.dk/tv2b
> W/GStreamer+GST_URI(22897): 0:00:10.237600999 0x21430a0
> gsturi.c:611:gst_element_make_from_uri source didn't accept URI 'rtmp://
> itv08.digiquite.dk/tv2b': Could not parse RTMP URI
> W/GStreamer+uridecodebin(22897): 0:00:10.237925999 0x21430a0
> gsturidecodebin.c:1404:gen_source_element:<uridecodebin1> error: Could not
> parse RTMP URI
> W/GStreamer+uridecodebin(22897): 0:00:10.238139999 0x21430a0
> gsturidecodebin.c:1404:gen_source_element:<uridecodebin1> error: No element
> accepted URI 'rtmp://itv08.digiquite.dk/tv2b'
> D/GStreamer+tutorial-4(22897): 0:00:10.238458999 0x21a6ea0
> jni/tutorial-4.c:104:set_ui_message Setting message to: Error received from
> element uridecodebin1: Could not parse RTMP URI
> 
> Sources contains this piece of code:
> 
>  if (!RTMP_ParseURL (uri, &protocol, &host, &port, &playpath, &app) ||
> 
>         !host.av_len || !playpath.av_len) {
>       GST_ERROR_OBJECT (src, "Failed to parse URI %s", uri);
>       g_set_error (error, GST_URI_ERROR, GST_URI_ERROR_BAD_URI,
>           "Could not parse RTMP URI");
>       return FALSE;
>     }
> 
> Unlikely, I can't find the definition of RTMP_ParseURL- all files are
> included to this class don't have this method. Librtmp has one but it
> either doesn't give an idea what is going wrong
> http://subversion.assembla.com/svn/sget/tools/rtmpdump/librtmp/parseurl.c,
> My url doesn't have a port - can this be an issue?

That's the function from librtmp that is called there, and that fails on
your URI. You probably want to report a bug to them about this.

The port is optional, but I can't see right now what is missing from
your URI either.

-- 
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140306/dddddac3/attachment.pgp>


More information about the gstreamer-devel mailing list