ffmpeg-python icon indicating copy to clipboard operation
ffmpeg-python copied to clipboard

Would this package support CUDA hardware acceleration SDK, like NVEnc and NVDec back-end?

Open oscarriddle opened this issue 7 years ago • 6 comments

Hi,

FFmpeg is supposed to support NVIDIA CUDA CODEC SDK, please refer to https://developer.nvidia.com/FFmpeg So I wonder whether this wrapper also support the GPU back-end encode and decode? I believe it'll be extremely useful.

Thanks,

oscarriddle avatar Oct 25 '18 05:10 oscarriddle

From the linked page:

… it’s simply a matter of compiling FFmpeg binary with the required support for NVIDIA libraries and using the resulting binaries to speed up video encoding/decoding.

So configuring ffmpeg with the nvidea libraries is the first requirement (the who to is also described on that page).

Then you need to choose the correct video codecs when actually encoding the video. The exact process it not yet perfectly clear to me. It seems you can use h264_cuvid to decode h264 streams into YUV and encode streams to h264 using h264_nvenc.

153957 avatar Oct 25 '18 06:10 153957

Check the official documentation on this provided by NVIDIA here. I would also love to have this feature especially since my Python application already uses CUDA.

aleksandaratanasov avatar Oct 01 '21 11:10 aleksandaratanasov

Is the problem is solved?

NeighborhoodCoding avatar Dec 20 '22 08:12 NeighborhoodCoding

any update on this? My ffmpeg installtion can use cuda, but this lib cannot. I wonder what is the reason.

Pedrexus avatar Dec 11 '23 09:12 Pedrexus