title: Reduce CPU when utilizing GPU to decode RTMP streams to still frames
body: <p>I'm trying to connect to a RTMP stream (streaming at 30 FPS) and filter the input to 1 FPS and output it as rawvideo. I'm running the current </p>
  
  <pre><code>ffmpeg -surfaces 8 -vcodec h264_cuvid -vsync 0 -i rtmp://serveraddress -filter_complex [0]fps=fps=1[s0] -map [s0] -f rawvideo -pix_fmt rgb24
  </code></pre>
  
  <p>The system is running on a T4 Tesla. The application requires ~20 ffmpeg processes to start up, but I have noticed that the CPU usage is pretty high. Is there anyway to optimize this? </p>
  
  <p>Thanks</p>