[FFmpeg-devel] [PATCH] http Transfer-Encoding chunked

Peter Holik peter
Fri May 22 19:13:45 CEST 2009


Hi!

I made a patch for http.c to be able to fetch a png file from a cgi script with

ffmpeg -f image2 -vcodec png -i 'http://server/cgi-bin/graph.cgi'


That was not working because http.c sends a HTTP/1.1 request and in the response
i got a "Transfer-Encoding: chunked" Header - not known by http.c.

The only drawback of my patch is, that the filesize is limited (i've taken 512 kByte)

This is because img2.c reads the whole pic into a AVPacket.

cu Peter



More information about the ffmpeg-devel mailing list