Thursday 31 December 2020

Fixing ffmpeg and failing hardware NVenc/dec following software upgrade

If you find that ffmpeg is no longer able to use your NVidia's card for hardware decode/encode after an OS or software upgrade, ensure your running X11/NV driver and the CUDA libraries are compatible otherwise you will get cryptic error messages:
$ ffmpeg -y -hwaccel cuda -hwaccel_output_format cuda \ -c:v h264_cuvid -i 201231-163836.mkv \ -c:a copy \ -vf scale_npp=-1:720 \ -rc vbr_hq -c:v h264_nvenc \ -b:v 3M -minrate 500k -maxrate 12M \ output.mp4 ... failed call to cuInit: CUDA_ERROR_UNKNOWN: unknown error Unable to create device No device available for decoder: device type cuda needed for codec h264

Game Emulation Options on Linux

Emulation for old games, particularly on Linux, can be a bit of a difficult area to navigate. Whilst there are nice standalone setups like retropie, it does need a Raspberry Pi and a display. For those looking to run emulation on their normal OS will have the option of programs like Retroarch, mame and FB Neo. But where to start?