[FFmpeg-devel] rtmp support and librtmp

aviad rozenhek aviadr1
Mon Sep 27 00:16:52 CEST 2010

On Sun, Jun 6, 2010 at 10:36, Howard Chu <hyc at highlandsun.com> wrote:

> aviad rozenhek wrote:
>> On Thu, Jun 3, 2010 at 15:06, trueice<trueice at gmail.com>  wrote:
>>  On Wed, Jun 2, 2010 at 9:42 PM, aviad rozenhek<aviadr1 at gmail.com>
>>>  wrote:
>>>>> it says the stream is not found
>>>>  try:
>>> ./ffplay "rtmp://myserver/live/mystream live=1"
>>>  it works!
>> however embedded spaces are indeed annoying.
> Feel free to write a better solution. Take as much time as you like.
How about this general purpose method of passing parameters to protocols?

instead of:
[where ?pkt_size=1316&localport=1234 are actually parameters to udp
protocol] use

and in the same manner, instead of
"rtmp://localhost/live/mystream live=1 buffer=100"
[where live=1 buffer=100 are actually parameters to rtmp protocol instead of
part of url] use

this achieves a couple of things
1) it is clear which parameters are part of the real url, and which are
ffmpeg-specific flags
2) it reuses familiar syntax with the ? & notation
3) since & and ? are not legal in protocol names, this shouldnt break

More information about the ffmpeg-devel mailing list