@Mr_Tajniak, all I wanted to say you would need to deal with the variables that consume GPU memory smart.
I haven’t tested project 1 you mentioned, but I just saw you created the issue 2.
You may expect the feedback in there. Check if OOM is there if you use a smaller video format. Check what are the GPU memory requirements based on the video format you use (size of the frame).