[FFmpeg-devel] rtmp buffering

Tom Janiszewski Tom.Janiszewski
Mon May 24 19:45:11 CEST 2010

I've been working with the built-in support in ffmpeg for rtmp (not 
librtmp, but the avformat rtmpproto/pkt implementation), and had a 
question about buffering:  Currently the rtmp stream reading uses the 
default IO buffer size of 32768.  Is it possible to reduce this to 
provide lower-latency on the rtmp read? 

Depending on the rtmp codec settings, anywhere from 5-20 packets will 
buffer up before being processed by ffmpeg, which usually translates to 
latency of 500-1000ms.  Is this something that should be changed in 
rtmpproto.c (i.e. max_packet_size) or is there a way to set the max 
buffer size at the application level?


More information about the ffmpeg-devel mailing list