[FFmpeg-devel] [PATCH] RTMP client support for lavf
Diego Biurrun
diego
Thu Jul 30 10:20:46 CEST 2009
On Thu, Jul 30, 2009 at 09:16:22AM +0300, Kostya wrote:
>
> --- libavformat/rtmpproto.c (revision 0)
> +++ libavformat/rtmpproto.c (revision 0)
> @@ -0,0 +1,677 @@
> +/**
> + * Puts HMAC-SHA2 digest of packet (except the place for digest itself) into that packet.
Hmmm
> +/**
> + * Verifies that received server response has expected digest value.
that the, has the
> +/**
> + * Parses received packet and may perform some action depending on packet contents.
long line
> + //extract a number from result
the result
> +/**
> + * Opens RTMP connection and verifies that the stream can be played.
> + *
> + * URL syntax: rtmp://server[:port][/app][/playpath]
> + * where 'app' is first one or two directories in the path
> + * (e.g. /ondemand/, /flash/live/, etc.)
> + * and 'playpath' is a file name (the rest of the path,
> + * may be prefixed with "mp4:")
rtmp://streaming.somesite.com:4444/flash/live/mp4:/var/www/media/streamXXX.flv
?
> + s->max_packet_size = url_get_max_packet_size(rt->stream);
> + s->is_streamed = 1;
align
> --- libavformat/rtmppkt.c (revision 0)
> +++ libavformat/rtmppkt.c (revision 0)
> @@ -0,0 +1,266 @@
> +
> + if (url_read(h, &hdr, 1) != 1) {
> + return AVERROR(EIO);
> + }
pointless {}
Diego
More information about the ffmpeg-devel
mailing list