Hi all,
I’m just starting a project that requires to decode video and audio, do some analysis and frame cropping based on it, and finally re encode it. The key here is, I need to keep the audio of the original source.
I started the project with Norfair’s MOT engine video decoding, but unfortunately, discovered it didn’t support the audio part. Now I’m using PyAV, but there is a significant performance hit compared to my previous alternative. It seems PyAV doesn’t support hardware acceleration for decoding part in any way (they claim it makes no sense) and making it in the encoding part seems a bit complicated for me (custom compiling).
I’m wondering if using VPF would allow me to extract the video and audio content and at the end of the process, re encode them back, using GPU / NVEC all along.
Thank you for your help
BTW, I hope to use CV-CUDA for the cropping and resizing part too, so at the end, hopefully, all the image processing pipeline runs fully in the GPU, leaving the CPU only to process the object detection results, and make the decision on where to crop based on that information.