[libav-tools] Play an rtmp stream in with given location and resource

Luca Barbato lu_zero at gentoo.org
Tue May 6 03:39:43 CEST 2014

On 04/05/14 19:47, Uwe L. Korn wrote:
> On 04/05/14 11:42, Luca Barbato wrote:
>> On 03/05/14 21:48, Uwe L. Korn wrote:
>>> Hello,
>>> I'm trying to play an rtmp stream using avplay. For the stream I have given
>>> The resource:
>>> rtmp://edgecast-fmstream.mndigital.com/
>>> The location:
>>> mp3:/mp3/mn_mp3_09_07/downloads/a075/011/384/11384801_2_015?<authtoken>
>>> In Flash one would pass them separately to the player, for
>>> librtmp/rtmpdump I have found out that I can get this stream to work by
>>> concatenating resource and location with `?slist=`, e.g
>>> rtmp://edgecast-fmstream.mndigital.com/?slist=mp3:/mp3/mn_mp3_09_07/downloads/a075/011/384/11384801_2_015?<authtoken>
>>> . For avplay/libav, I have not found such a hack. The important point
>>> here is, that this URL has no app part which most other rtmp URLs do.
>>> Can someone tell me what I need to pass to libav so that it plays my
>>> given URL?
>> Asked martin
>> -rtmp_playpath
>> mp3:/mp3/mn_mp3_09_07/downloads/a075/011/384/11384801_2_015?<authtoken>
>> Should work, if doesn't if you can get us the wireshark dump of librtmp
>> would be great.
> Thanks, this makes playback work. Sadly, as I would like to be able to
> stream this via libVLC and phonon on different platforms, my only option
> is to pass a single URL. If there are no objections straight ahead, I
> would work on a patch that integrates the parsing of the slist parameter
> into rtmp_open(). I could not find any clear documentation on its usage
> but all the examples I found online suggest that the syntax is commonly
> rtmp://server[:port]/[app]?slist=[playpath]

I had been away for a little, it will work probably fine but I'm a bit
afraid of not escaping the playpath (and I'm not sure what librtmp
expects in this regard).

Might be useful providing a generic url-serialization with proper
escaping in libav 11 ?


More information about the libav-tools mailing list