Jellyfin Forum
Yet another Decoding issues with Nvidia - FFmpeg 218 - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Yet another Decoding issues with Nvidia - FFmpeg 218 (/t-yet-another-decoding-issues-with-nvidia-ffmpeg-218)



Yet another Decoding issues with Nvidia - FFmpeg 218 - ehellas - 2025-08-31

I am facing some issue with decoding issue with Hardware acceleration activated. I've read multiple guides but I can't really find what I have to disable at this point.


jellyfin | [21:13:48] [INF] [11] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -f matroska -init_hw_device cuda=cu:0 -filter_hw_device cu -i file:"/data/media/MY_MEDIA.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_nvenc -preset p1 -b:v 13709537 -maxrate 13709537 -bufsize 27419074 -profile:v:0 high -g:v:0 72 -keyint_min:v:0 72 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*a)\,min(1920\,1080*a))/2)*2:trunc(min(max(iw/a\,ih)\,min(1920/a\,1080))/2)*2,format=yuv420p" -codec:a:0 libfdk_aac -ac 2 -ab 256000 -ar 48000 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "d4e272ab99a67b1ab4abba30c9c0d6f5-1.mp4" -start_number 0 -hls_segment_filename "/config/cache/transcodes/d4e272ab99a67b1ab4abba30c9c0d6f5%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "/config/cache/transcodes/d4e272ab99a67b1ab4abba30c9c0d6f5.m3u8" jellyfin | [21:13:49] [ERR] [11] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: FFmpeg exited with code 218


I am using Jellyfin 10.10.7 in a container.
I am using a GTX 660 with Driver 470 (last supported for that gpu)
I've already checked and nvidia-smi works as intended inside of the container.
I have only H264, MPEG-2 and VC1 checked in transcoding, since those are the only available according to the GPU transcoding support matrix (https://en.wikipedia.org/wiki/NVDEC).
 

   


RE: Yet another Decoding issues with Nvidia - FFmpeg 218 - bitmap - 2025-08-31

What does the ffmpeg log say?


RE: Yet another Decoding issues with Nvidia - FFmpeg 218 - ehellas - 2025-09-02

Sorry, took didn't receive an e-mail with a comment. And took a while to find the ffmpeg log but I did, and that pretty much answers my question. I think I have to find an ffmpeg that accepts nvenc 11.1 maybe?

[h264_nvenc @ 0x5599780e4240] Driver does not support the required nvenc API version. Required: 12.0 Found: 11.1
[h264_nvenc @ 0x5599780e4240] The minimum required Nvidia driver for nvenc is 520.56.06 or newer
[vost#0:0/h264_nvenc @ 0x5599783fd840] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
[vf#0:0 @ 0x5599781dfc00] Error sending frames to consumers: Function not implemented
[vf#0:0 @ 0x5599781dfc00] Task finished with error code: -38 (Function not implemented)
[vf#0:0 @ 0x5599781dfc00] Terminating thread with return code -38 (Function not implemented)
[vost#0:0/h264_nvenc @ 0x5599783fd840] Could not open encoder before EOF
[vost#0:0/h264_nvenc @ 0x5599783fd840] Task finished with error code: -22 (Invalid argument)
[vost#0:0/h264_nvenc @ 0x5599783fd840] Terminating thread with return code -22 (Invalid argument)
[out#0/hls @ 0x5599783fd040] Nothing was written into output file, because at least one of its streams received no packets.
frame= 0 fps=0.0 q=0.0 Lsize= 0KiB time=N/A bitrate=N/A speed=N/A


RE: Yet another Decoding issues with Nvidia - FFmpeg 218 - bitmap - 2025-09-02

Sounds like drivers are out of date. Are there newer drivers supported by your card?

Code:
[h264_nvenc @ 0x5599780e4240] Driver does not support the required nvenc API version. Required: 12.0 Found: 11.1
[h264_nvenc @ 0x5599780e4240] The minimum required Nvidia driver for nvenc is 520.56.06 or newer



RE: Yet another Decoding issues with Nvidia - FFmpeg 218 - ehellas - 2025-09-02

Due to beeing an older card, it can't go above Nvidia 470.xx

I might need to compile a special container for my use case.


RE: Yet another Decoding issues with Nvidia - FFmpeg 218 - ehellas - 2025-09-03

Well, just did an OS upgrade from Ubuntu 22.04 to 24.04 and it works flawlessly now, even with hardware encoding.
Didn't touch anything regarding the containers, it just worked TM.

Weird. Well, can't complain though.