[FFmpeg-devel] rtmp support and librtmp

Michael Niedermayer michaelni
Mon Sep 27 01:59:23 CEST 2010


On Mon, Sep 27, 2010 at 12:16:52AM +0200, aviad rozenhek wrote:
> 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:
> udp://localhost?pkt_size=1316&localport=1234
> [where ?pkt_size=1316&localport=1234 are actually parameters to udp
> protocol] use
> udp?pkt_size=1316&localport=1234://localhost
> 
> 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
> rtmp?live=1&buffer=100://localhost/live/mystream
> 
> 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
> anything

i like the idea

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Old school: Use the lowest level language in which you can solve the problem
            conveniently.
New school: Use the highest level language in which the latest supercomputer
            can solve the problem without the user falling asleep waiting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100927/511d6ff1/attachment.pgp>



More information about the ffmpeg-devel mailing list