Cannot allocate memory on Casparq version 2.3.2,

Hi

I get this problem from time to time in log file.

[2023-04-12 10:43:59.043] [error]   Exception: /opt/server/src/modules/ffmpeg/consumer/ffmpeg_consumer.cpp(615): Throw in function caspar::ffmpeg::ffmpeg_consumer::initialize(const caspar::core::video_form
at_desc&, int)::<lambda()>::<lambda()>::<lambda()>
[2023-04-12 10:43:59.043] [error]   Dynamic exception type: boost::exception_detail::clone_impl<caspar::ffmpeg::ffmpeg_error_t>
[2023-04-12 10:43:59.043] [error]   [caspar::tag_stacktrace_info*] =  0# caspar::stacktrace_info() in bin/casparcg
[2023-04-12 10:43:59.043] [error]    1# caspar::ffmpeg::ffmpeg_consumer::initialize(caspar::core::video_format_desc const&, int)::{lambda()#1}::operator()() const::{lambda()#7}::operator()() const in bin/c
asparcg
[2023-04-12 10:43:59.043] [error]    2# 0x00007F9958F1FDE4 in /lib/x86_64-linux-gnu/libstdc++.so.6
[2023-04-12 10:43:59.043] [error]    3# 0x00007F99619DB609 in /lib/x86_64-linux-gnu/libpthread.so.0
[2023-04-12 10:43:59.043] [error]    4# clone in /lib/x86_64-linux-gnu/libc.so.6
[2023-04-12 10:43:59.043] [error]
[2023-04-12 10:43:59.043] [error]   [caspar::ffmpeg::tag_ffmpeg_errn_info*] = -12
[2023-04-12 10:43:59.043] [error]   [boost::errinfo_errno_*] = 12, "Cannot allocate memory"
[2023-04-12 10:43:59.043] [error]   [boost::errinfo_api_function_*] = av_interleaved_write_frame(oc, pkt.get())
[2023-04-12 10:43:59.043] [error]
[2023-04-12 10:43:59.043] [error]    0# caspar::log::get_stack_trace[abi:cxx11]() in bin/casparcg
[2023-04-12 10:43:59.043] [error]    1# caspar::ffmpeg::ffmpeg_consumer::initialize(caspar::core::video_format_desc const&, int)::{lambda()#1}::operator()() const::{lambda()#7}::operator()() const in bin/c
asparcg
[2023-04-12 10:43:59.043] [error]    2# 0x00007F9958F1FDE4 in /lib/x86_64-linux-gnu/libstdc++.so.6
[2023-04-12 10:43:59.043] [error]    3# 0x00007F99619DB609 in /lib/x86_64-linux-gnu/libpthread.so.0
[2023-04-12 10:43:59.043] [error]    4# clone in /lib/x86_64-linux-gnu/libc.so.6

After which my stream crashes until I restart the Caspar process

At the same time, the resources of the CPU GPU | RAM - not occupied, there are enough of them

Hi,

I have same issue in 2.4.0-rc1 version. I have started 8 channels and 7 of them stopped, (ffmpeg consumers terminated), i.e. no streaming is available, because of this error in 30 minutes after channels start. Please advice how to fix this issue.

Thanks!