I've been trying to solve this problem for days, but I can't seem to. My Ubuntu server perfectly recognizes the two graphics cards it has using the nvidia-smi command, but when I try to encode the video, it fails. However, if I process it with the CPU, it works perfectly.
mar 20 20:36:53 peertube-djtv peertube[22986]: "stack": "Error: ffmpeg exited with code 251: Device creation failed: -5.\nFailed to set value '/dev/dri/renderD128' for option 'vaapi_device': Input/output error\nError parsing global options: Input/output error\n\n at ChildProcess. (/var/www/peertube/versions/peertube-v7.1.0/node_modules/fluent-ffmpeg/lib/processor.js:180:22)\n at ChildProcess.emit (node:events:507:28)\n at ChildProcess._handle.onexit (node:internal/child_process:294:12)",
mar 20 20:36:53 peertube-djtv peertube[22986]: "message": "ffmpeg exited with code 251: Device creation failed: -5.\nFailed to set value '/dev/dri/renderD128' for option 'vaapi_device': Input/output error\nError parsing global options: Input/output error\n"
I've been trying to solve this problem for days, but I can't seem to. My Ubuntu server perfectly recognizes the two graphics cards it has using the nvidia-smi command, but when I try to encode the video, it fails. However, if I process it with the CPU, it works perfectly.
mar 20 20:36:53 peertube-djtv peertube[22986]: "stack": "Error: ffmpeg exited with code 251: Device creation failed: -5.\nFailed to set value '/dev/dri/renderD128' for option 'vaapi_device': Input/output error\nError parsing global options: Input/output error\n\n at ChildProcess. (/var/www/peertube/versions/peertube-v7.1.0/node_modules/fluent-ffmpeg/lib/processor.js:180:22)\n at ChildProcess.emit (node:events:507:28)\n at ChildProcess._handle.onexit (node:internal/child_process:294:12)",
mar 20 20:36:53 peertube-djtv peertube[22986]: "message": "ffmpeg exited with code 251: Device creation failed: -5.\nFailed to set value '/dev/dri/renderD128' for option 'vaapi_device': Input/output error\nError parsing global options: Input/output error\n"