This is the first version of Video AI that I’ve had a problem with.
I’m trying to upscale 6 videos to HD. All are similar. Last one is only 50 minutes.
Details of each:
Length: 53 minutes
Frame width: 960
Frame height: 540
Data rate: 1460kbps
Total bitrate: 1652kbps
Frame rate: 25.00
Audio: 191kbps
Channels: 2
Sample rate: 48kHz
Double-check the directories for your Temp folder and that it is on a drive that has enough room for writing the files for export, and the same for the export file location.
Also, open your Preferences panel.
File>Preferences>Processing
ensure that your GPU is selected for the AI Processor
set the max memory to 75%
set max processes to 1
save the settings and close the panel.
Re-run your clip through the process that you were trying.
I have 350GB available in the temp drive.
Over 1TB free in the output drive.
I made the recommended changes. Here’s the error line from the logs. If I’m reading it right, it’s complaining about not being able to allocate 10MB.
2024-02-07 13:35:28 20892 CRITICAL: Caught exception in tile processing thread and stopped it msg: Unknown exception1
2024-02-07 13-35-28.408 Thread: 1148 Info OUT: 2 OpenCV: terminate handler is called! The last OpenCV error is:
OpenCV(4.5.6) Error: Insufficient memory (Failed to allocate 10616832 bytes) in cv::OutOfMemoryError, file C:\Users\Gregory.conan2\p\b\opencb7b82bbe96ee7\b\src\modules\core\src\alloc.cpp, line 73
The screen says “Resolution error” but only the Insufficient memory error shows in the log.
I’ve dropped the output resolution to 1280x720 and the memory allocation to 50%.
In the log, I see this:
2024-02-07 13-41-40.129 Thread: 11224 Warning qrc:/filters/views/enhancement/EnhancementFilterViewModel.qml:1041: Error: Cannot assign std::nullptr_t to int
2024-02-07 13-42-08.164 Thread: 11224 Info OUT: 2 e[48;5;0me[38;5;0m[h264_nvenc @ 0000016555DC5F00] e[0me[48;5;0me[38;5;0mdl_fn->cuda_dl->cuCtxCreate(&ctx->cu_context_internal, 0, cu_device) failede[0me[48;5;0me[38;5;0m → CUDA_ERROR_OUT_OF_MEMORY: out of memorye[0me[48;5;0me[38;5;0m
e[0me[48;5;0me[38;5;0m[h264_nvenc @ 0000016555DC5F00] e[0me[48;5;0me[38;5;0mNo capable devices found
e[0m
2024-02-07 13-42-08.164 Thread: 11224 Info OUT: 2 e[48;5;0me[38;5;0m[vost#0:0/h264_nvenc @ 0000016553200600] e[0me[48;5;0me[38;5;0mError while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
e[0me[48;5;0me[38;5;0m[fc#0 @ 0000016553208C40] e[0me[48;5;0me[38;5;0mError sending frames to consumers: Generic error in an external library
e[0mOpenCV: terminate handler is called! The last OpenCV error is:
2024-02-07 13-42-08.164 Thread: 11224 Info OUT: 2 OpenCV(4.5.6) Error: Insufficient memory (Failed to allocate 10616832 bytes) in cv::OutOfMemoryError, file C:\Users\Gregory.conan2\p\b\opencb7b82bbe96ee7\b\src\modules\core\src\alloc.cpp, line 73
I have downloaded some older versions of Video AI and tried several using a single video file and a smaller output resolution. A couple have the same error in the logs, another couple of versions would have the same, but different, error in the log files.
After getting Video AI back up to 4.1.1, I installed the nVidia Game Version of the latest video driver and tried my test video again.
This appears to have resolved my issue. Even after changing the memory percentage back to 100%, my test video rendered.
Next, I will reinstall the Studio version of the nVidia driver and try my test file again.