I want to use ffmpeg to accelerate video encode and decode with an NVIDIA GPU.

From [NVIDIA's website](https://developer.nvidia.com/nvidia-video-codec-sdk): 

> 
> NVIDIA GPUs contain one or more hardware-based decoder and encoder(s) (separate from the CUDA cores) which provides fully-accelerated hardware-based video decoding and encoding for several popular codecs. With decoding/encoding offloaded, the graphics engine and the CPU are free for other operations.
> 
> 
> 

My question is: can I use CUDA cores to encode and decode video, maybe faster?