Open paveltonev opened 4 months ago
I'm struggling to reproduce this, the command provided above does not work with ffmpeg 4.4, which is what ubuntu 22.04 uses by default.
I use ffmpeg 6.1.1 built from source with NVIDIA GPU. The workflow is following:
I did a test also with v2.4.0-stable from yesterday and same error appeared. Please find attached the log, where I started 5 channels with no fifo_size and buffer_size and 4 of them terminated with "Cannot allocate memory" error. nohup.out.zip
I just ran the same output with a random input video directly in ffmpeg and got the same issue.
From the final comment in the trac thread you posted
[comment:26](https://trac.ffmpeg.org/ticket/6463#comment:26) by Marton Balint, [5 years ago](https://trac.ffmpeg.org/timeline?from=2019-03-17T00%3A10%3A58%2B02%3A00&precision=second)
It is most probably not a memory issue, simply there is not enough space in the output fifo. Error message is a bit misleading. Try increasing the fifo size on the output.
Does not seem to be an issue with casparcg? Could you try the same test.
Observed Behavior
Use CasparCG server v2.4.0-rc1 with ffmpeg 6.1.1 and start ffmpeg consumer started via:
with CasparCG client v2.3.0-rc1 executing a 48 hours playlist. Everything started as expected and on the 12th minute the ffmpeg cosumer terminates with Cannot allocate memory issue described here. It appeared that this error has already been reported as issue on ffmpeg trac system here.
I increased 10 times the default fifo_size and buffer_size values, as a result the ffmpeg consumer failed in around 120 minutes.
I increased 20 times the default fifo_size and buffer_size values, as a result the ffmpeg consumer failed in around 240 minutes.
Expected behaviour
I expect ffmpeg consumer not to throw such an error.
Steps to reproduce
Environment