[FFmpeg-user] Buffer Size for Stream Copy

Wu-bin Zhen vvubin at gmail.com
Fri Aug 16 21:31:06 CEST 2013

Hello ffmpeg,

I am using ffmpeg to grab h264 video stream and aac audio stream from an
internet based hardware encoder with the codec copy option, and it works
pretty well. Now, I start to wonder if I can use the '-bufsize' option for
the stream copy, just in case when the network is temporally slow down, or
the encoder is suddenly chocking for some reason. I googled a little bit
about the 'bufsize' option, and found that most people use the option for

So my question is: Do you think using 'bufsize' option will be helpful for
the stream copy? If so, what would be the recommended buffer size? My
internet encoder produces video stream with 4000kbits/sec, and audio stream
with 128kbits/sec.

Thanks, and have a great weekend.

More information about the ffmpeg-user mailing list