Yesterday, 01:17 AM
I'm in the process of adding nvidia support to my jellyfin docker container and looking for some confirmation.
Believe I have everything setup, however when I run nvidia-smi, I'm not seeing the ...jellyfin-ffmpeg/ffmpeg process. And this is making me unsure it's working.
I also see the gpu and memory being used (screenshot)
From what I understand, I should see this in the ffmpeg transcode logs (which I do):
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_nvenc))
Stream #0:1 -> #0:1 (aac (native) -> ac3 (native))
Also see this in the log, which also indicates hwaccel:
/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -f mov,mp4,m4a,3gp,3g2,mj2 -init_hw_device cuda=cu:0 -filter_hw_device cu -hwaccel cuda -hwaccel_output_format cuda -noautorotate -hwaccel_flags +unsafe_output -threads 1 -i file:"/tv/Band of Brothers/S01/Band of Brothers S01E02.mp4" -noautoscale -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_nvenc -force_key_frames "expr:gte(t,n_forced*5)" -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_cuda=format=yuv420p" -preset p1 -b:v 8326013 -maxrate 8326013 -bufsize 16652026 -map_metadata -1 -map_chapters -1 -threads 0 -codec:a:0 ac3 -ac 6 -ab 224004 -y "/cache/transcodes/e5c677daec8c3d6759d5a8e613c8f59f.ts"
https://pastebin.com/whyQGcqC
Believe I have everything setup, however when I run nvidia-smi, I'm not seeing the ...jellyfin-ffmpeg/ffmpeg process. And this is making me unsure it's working.
I also see the gpu and memory being used (screenshot)
From what I understand, I should see this in the ffmpeg transcode logs (which I do):
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_nvenc))
Stream #0:1 -> #0:1 (aac (native) -> ac3 (native))
Also see this in the log, which also indicates hwaccel:
/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -f mov,mp4,m4a,3gp,3g2,mj2 -init_hw_device cuda=cu:0 -filter_hw_device cu -hwaccel cuda -hwaccel_output_format cuda -noautorotate -hwaccel_flags +unsafe_output -threads 1 -i file:"/tv/Band of Brothers/S01/Band of Brothers S01E02.mp4" -noautoscale -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_nvenc -force_key_frames "expr:gte(t,n_forced*5)" -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_cuda=format=yuv420p" -preset p1 -b:v 8326013 -maxrate 8326013 -bufsize 16652026 -map_metadata -1 -map_chapters -1 -threads 0 -codec:a:0 ac3 -ac 6 -ab 224004 -y "/cache/transcodes/e5c677daec8c3d6759d5a8e613c8f59f.ts"
https://pastebin.com/whyQGcqC
ds1821+ (AMD Ryzen v1500B / 36GB ram / nvidia t400 4gb)
Jellyfin on mirrored Samsung Pro m2 SSD, docker, latest image (10.10.7), dlna 8.0.0
Jellyfin on mirrored Samsung Pro m2 SSD, docker, latest image (10.10.7), dlna 8.0.0