Does video_processor.py support CUDA acceleration for 4K videos ?
mirov opened this issue · 1 comments
I've been using a fork of the video_processor.py code to overlay telemetry info on my 4K in-flight captured video (from a Hawkeye 4K Thumb). It is great, the images and overlay results are stunning compared to analog 5.8G recordings on the ground.
However, it is really slow for 4K. Once the overlay of the telemetry starts it is about 2 frames/second. When doing NTSC video it is much faster, basically real-time. I've been working trying to get CUDA into the mix, and although my GPU is now talking to opencv and seems to be doing the right thing, I'm not seeing any usage of it in video_processor.py. Strace -o while it is running shows no text with "nvidia" as a crude indicator.
Are there different calls that are needed to invoke the GPU ? When you use the program, are you rendering entirely with your CPU ? Have you explored using a GPU?
Thanks, -Russ
Currently it doesn't support. As a workaround you could convert video to 1080p first and then apply overlay.
I will think about improving performance on 4k videos too.