When running ffmpeg transcode stream with MPS server started I’m getting the following error:
[h264_cuvid @ 0x55baf17ea0c0] cuvidCreateDecoder(&cudec, &cuinfo) failed -> CUDA_ERROR_INVALID_DEVICE: invalid device ordinal
The ffmpeg command that I’m running is:
ffmpeg -hwaccel cuvid -c:v h264_cuvid -i -map 0:0 -r:v 1 -c:v h264_nvenc -threads 1 -y
I;m running this on an NVIDIA GeForce 1070 GPU on Ubuntu 16.04. The CUDA version is 8.0.
If there is no MPS server running the same command executes with no errors. Is this a limitation in MPS server or in ffmpeg? Has anyone successfully tried running ffmpeg with MPS server before?
Thanks in advance.