2016-01-08 12:42 GMT+03:00 Carl Eugen Hoyos <ceho...@ag.or.at>:
> > I may have misunderstood myself but I believe the > issue actually only happens on Windows XP;-) > > I've encountered this issue a while back when trying to do about 20 simultaneous transcodings with some video filters. It was on a high-end CPU with a lot of cores so every codec and MT-enabled video filter would spawn a lot of threads - can't remember exact number but hundreds of them. The threads' stacks would eat up all of the process' address space causing OOM. It was on Windows 7, and it's something you probably can call real-world example. I ended up disabling MT everywhere I can to fix that (which was a right thing to do anyway since my program was already multithreaded and it could use all the cores anyway). This thread-pool idea sounds reasonable to me; more reasonable than 8-16 threads per codec anyway. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel