Run RMP on Android
Wim Taymans
wim.taymans at gmail.com
Thu Mar 6 07:53:08 PST 2014
An RTMP uri should be
rtmp://host[:port]/app/media
so, 2 slashes at least after the hostname.
Wim
On 6 March 2014 16:50, Sebastian Dröge <sebastian at centricular.com> wrote:
> 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
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140306/c667b3e2/attachment.html>
More information about the gstreamer-devel
mailing list