title: GPU-accelerated video processing with ffmpeg
body: <p>I want to use ffmpeg to accelerate video encode and decode with an NVIDIA GPU.</p>
  
  <p>From <a href="https://developer.nvidia.com/nvidia-video-codec-sdk" rel="noreferrer">NVIDIA's website</a>: </p>
  
  <blockquote>
    <p>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.</p>
  </blockquote>
  
  <p>My question is: can I use CUDA cores to encode and decode video, maybe faster?</p>