nvenc: support CUDA frames as input