I fixed the failed to set value 'cuda=cu:0' error some how. I think it was reinstalling the drivers or it was restarting the nas, but i am encountering another problem. When transcoding the transcode just doesn't get processed it think. I see the process in nvidia-smi, but in nvidia-smi dmon no resources are being used. In the ffmpeg log i just see it getting stuck on a frame and no resources are being used.