[FFmpeg-user] Cannot allocate memory for complex filtering with latest git

Christian Johannesen chrisjohannesen at gmail.com
Thu Nov 16 03:54:11 EET 2017


On Wed, Nov 15, 2017 at 8:47 PM, Christian Johannesen <
chrisjohannesen at gmail.com> wrote:
>
>
> On Wed, Nov 15, 2017 at 5:42 PM, Carl Eugen Hoyos <ceffmpeg at gmail.com>
> wrote:
>>
>> Please also test "-filter_threads 1" and / or "-threads 1" with
>> higher filter_threads value.
>>
>> Carl Eugen
>
>
> I've tested different values and found that "-threads 12" is where the
> memory allocation fails, setting -threads 11" works fine. Using "ffmpeg.exe
> -filter_threads 1" also results in the same "Error while filtering: Cannot
> allocate memory" error. The machine I am testing on has 20 physical cpu
> cores with hyper threading enabled.
>
> I misread your question and re-tested again. There seems to be no limit of
the threads I can have for filters. I can have a setting of "-threads 8
-filter_threads 128" and it works. I think the issue is related to how many
threads FFmpeg tries to allocate on my system. I can adapt our command line
use to limit our threads to 8 or 10.

Thanks,
Chris


More information about the ffmpeg-user mailing list