• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Yet another Decoding issues with Nvidia - FFmpeg 218

     
    • 0 Vote(s) - 0 Average

    Yet another Decoding issues with Nvidia - FFmpeg 218

    ehellas
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2025 Aug
    Reputation: 0
    Country:Brazil
    #1
    2025-08-31, 09:24 PM
    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).
     

       
    bitmap
    Offline

    Community Moderator

    Posts: 1,062
    Threads: 9
    Joined: 2023 Jul
    Reputation: 30
    #2
    2025-08-31, 10:08 PM
    What does the ffmpeg log say?
    Jellyfin 10.10.7 LSIO Docker | Ubuntu 24.04 LTS | i7-13700K | Arc A380 6 GB | 64 GB RAM | 79 TB Storage

    [Image: AIL4fc84QG6uSnTDEZiCCtosg7uAA8x9j1myFaFs...qL0Q=w2400]
    ehellas
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2025 Aug
    Reputation: 0
    Country:Brazil
    #3
    2025-09-02, 09:52 PM
    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
    bitmap
    Offline

    Community Moderator

    Posts: 1,062
    Threads: 9
    Joined: 2023 Jul
    Reputation: 30
    #4
    2025-09-02, 10:09 PM
    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
    Jellyfin 10.10.7 LSIO Docker | Ubuntu 24.04 LTS | i7-13700K | Arc A380 6 GB | 64 GB RAM | 79 TB Storage

    [Image: AIL4fc84QG6uSnTDEZiCCtosg7uAA8x9j1myFaFs...qL0Q=w2400]
    ehellas
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2025 Aug
    Reputation: 0
    Country:Brazil
    #5
    2025-09-02, 10:31 PM
    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.
    ehellas
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2025 Aug
    Reputation: 0
    Country:Brazil
    #6
    Yesterday, 01:04 AM
    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.
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode