[FFmpeg-devel] [PATCH] avformat/options_table: Set the default maximum number of streams to 100

Ronald S. Bultje rsbultje at gmail.com
Sat Dec 10 15:07:15 EET 2016


On Sat, Dec 10, 2016 at 7:11 AM, Carl Eugen Hoyos <ceffmpeg at gmail.com>

> 2016-12-09 12:56 GMT+01:00 Ronald S. Bultje <rsbultje at gmail.com>:
> > On IRC, we discussed at what values OOM start occurring, which seems to
> be
> > around 30k-60k
> This is not true, why do you think so?

[21:01:43 CET] <BBB> michaelni: can you provide a graph with memory usage
depending on the number of streams?
[21:01:52 CET] <BBB> michaelni: I think based on that we can define a
sensible default
[21:02:25 CET] <BBB> if we use 100GB with 10 streams, we should probably
limit it to <10, but if memory usage doesn t change much between 10k and
100k streams, maybe a limit of 1M streams is acceptable
[21:02:35 CET] <BBB> michaelni: assuming the goal is to prevent OOM
[21:11:41 CET] <michaelni> i think one actual OOM case was with around
30k-60k streams, the exact usage likely depends on the demuxer


More information about the ffmpeg-devel mailing list