1. Check the hardware acceleration methods currently supported by ffmpeg;
ffmpeg -hwaccels
2. Check the hardware decoders currently supported by ffmpeg
ffmpeg -decoders | grep Nvidia
3. Check the hardware encoders currently supported by ffmpeg
ffmpeg -encoders | grep Nvidia
4. Hard decoding using commands