Hw acceleration / video conversion

Hi,

I noticed while playing some movies it starts a ffmpeg process on nvidia-smi but still the cpu is being used 100% so I think gpu is not being used for that movie. Im trying to convert the movie so it uses a gpu for playback with ffmpeg but I have no clue what is wrong with the current file anyway (it plays but just not with GPU, the annoying part in this is that jellyfin disables GPU encoding if it cant encode the movie so I have to manually keep turning it back on).

Most of the movies are working fine and are using the gpu, can I somehow copy or make a conversion profile using a working movie as baseline for the settings to use with ffmpeg ?

I tried to convert using a ffmpeg command I found on the nvidia website:

ffmpeg -vsync 0 -hwaccel cuvid -c:v h264_cuvid -i -c:a copy -c:v h264_nvenc -b:v 15M

Not sure what this does, it didnt work in my case

Thanks

Here’s a handy guide you can review: https://jellyfin.org/docs/general/administration/hardware-acceleration.html

Let me know if it helps.