I am trying to use named pipe as the input of ffmpeg. I understand that the
default size of named pipe in linux is 65536 bytes. I am wondering how
often ffmpeg reads data from named pipe (is it as frequent as possible?),
and how large data buffer can be held by ffmpeg process once data are read
from named pipe, but not yet encoded (any RAM constraint?). Please could
anyone give me some advice. Thanks in advance!
Since no one answered as of yet... I'll try.
Since you know that the default size is 65536, you probably read the man pages on mkfifo and pipes. I would study the blocking. For the shell:man 7 pipe
I can say that ffmpeg has no trouble getting real time data from an uncompressed(SD) live video source. Do some testing, and maybe you can run a stress utility in another process to see where your breaking point is. Your data rates may depend more on your machine capability.
ffmpeg-user mailing list
[hidden email] http://ffmpeg.org/mailman/listinfo/ffmpeg-user
On Fri, Aug 3, 2018 at 1:46 AM, Zixia Huang <[hidden email]> wrote:
> Thanks Bob and Andrew.
> We are running ffmpeg in sandbox which blocks network connection. Also this
> is a docker machine in the commercial cloud, so stdin may not be accessible
> (I am not sure though, never tried).
> So looks like there is a rtbufsize flag in ffmpeg that buffers ingress
> video. So I assume that will hold large volumes of data?
I don't think rtbufsize works that way. I just tried...