• 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 SOLVED: High cpu usage with hw accelaration qsv

    Pages (2): 1 2 Next »

     
    • 0 Vote(s) - 0 Average

    SOLVED: High cpu usage with hw accelaration qsv

    Almost 100% cpu usage when transcoding a single 4k hdr file to 1080p sdr with qsv enabled.
    Gtu785696
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2024 Aug
    Reputation: 0
    Country:India
    #1
    2024-08-31, 05:36 AM (This post was last modified: 2024-08-31, 05:48 AM by Gtu785696. Edited 2 times in total.)
    Hey there im getting almost 100% CPU usage with hardware transcoding a single 4k hdr file to sdr 1080p.

    I have enabled QSV & and its working verified with intel_gpu_top & as well as logs, cleaned up the file to remove the subtitles, changed hdr tonemapping algorithm to mobius but nothing seems to be working.

    I have hp prodesk 600 g4 with i3 8100t. Should be transcoding multiple files at the same time as per my research.

    Have attached logs & screenshots. Any help would be much appreciated

    Also why is it even transcoding hevc to h264 when my client (Galaxy s23) can handle it well ?


    Attached Files Thumbnail(s)
       

    .txt   ffmpeglog.txt (Size: 27.5 KB / Downloads: 95)
    .txt   jellfinlog.txt (Size: 28.2 KB / Downloads: 75)
    Go to solution
    nyanmisaka
    Offline

    Team Member

    Posts: 232
    Threads: 0
    Joined: 2023 Jun
    Reputation: 8
    #2
    2024-08-31, 07:37 AM
    The QSV hardware decoder is not enabled.
    Gtu785696
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2024 Aug
    Reputation: 0
    Country:India
    #3
    2024-08-31, 07:39 AM
    (2024-08-31, 07:37 AM)nyanmisaka Wrote: The QSV hardware decoder is not enabled.

    Quote:Stream mapping:
      Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_qsv))
      Stream #0:1 -> #0:1 (copy)

    This from ffmpeg log means its transcoding right ?
    Fate
    Offline

    Member

    Posts: 213
    Threads: 3
    Joined: 2023 Jun
    Reputation: 15
    #4
    2024-08-31, 10:42 AM
    (2024-08-31, 07:39 AM)Gtu785696 Wrote:
    (2024-08-31, 07:37 AM)nyanmisaka Wrote: The QSV hardware decoder is not enabled.

    Quote:Stream mapping:
      Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_qsv))
      Stream #0:1 -> #0:1 (copy)

    This from ffmpeg log means its transcoding right ?
    Well, yes it means the encoding to h264 is using the iGPU

    But that is not the only CPU intensive task. To be able to encode it needs to decode the existing file.
    By the log you posted it is  HEVC 10bit HDR content. 
    So do you have hardware decoding enabled for HEVC 10bit in jellyfin?

    Even if you have it enable the file is HDR so it needs to have the Tonemapping done via software since hardware tonemapping is not supporting in Coffeelake CPU.
    nyanmisaka
    Offline

    Team Member

    Posts: 232
    Threads: 0
    Joined: 2023 Jun
    Reputation: 8
    #5
    2024-08-31, 10:55 AM
    (2024-08-31, 10:42 AM)Fate Wrote:
    (2024-08-31, 07:39 AM)Gtu785696 Wrote:
    (2024-08-31, 07:37 AM)nyanmisaka Wrote: The QSV hardware decoder is not enabled.

    Quote:Stream mapping:
      Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_qsv))
      Stream #0:1 -> #0:1 (copy)

    This from ffmpeg log means its transcoding right ?
    Well, yes it means the encoding to h264 is using the iGPU

    But that is not the only CPU intensive task. To be able to encode it needs to decode the existing file.
    By the log you posted it is  HEVC 10bit HDR content. 
    So do you have hardware decoding enabled for HEVC 10bit in jellyfin?

    Even if you have it enable the file is HDR so it needs to have the Tonemapping done via software since hardware tonemapping is not supporting in Coffeelake CPU.

    We support OpenCL-based tone mapping for KabyLake and newer iGPUs. Coffeelake is no exception.
    Fate
    Offline

    Member

    Posts: 213
    Threads: 3
    Joined: 2023 Jun
    Reputation: 15
    #6
    2024-08-31, 11:02 AM
    (2024-08-31, 10:55 AM)nyanmisaka Wrote: We support OpenCL-based tone mapping for KabyLake and newer iGPUs. Coffeelake is no exception.

    Totally forgot about the OpenCL fallback ^^
    nyanmisaka
    Offline

    Team Member

    Posts: 232
    Threads: 0
    Joined: 2023 Jun
    Reputation: 8
    #7
    2024-08-31, 12:21 PM
    (2024-08-31, 11:02 AM)Fate Wrote:
    (2024-08-31, 10:55 AM)nyanmisaka Wrote: We support OpenCL-based tone mapping for KabyLake and newer iGPUs. Coffeelake is no exception.

    Totally forgot about the OpenCL fallback ^^

    VPP tonemap is also supported on KabyLake+. The only exceptions are Jasper Lake and some Gemini Lake processors.
    Gtu785696
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2024 Aug
    Reputation: 0
    Country:India
    #8
    2024-08-31, 02:47 PM
    Hey guys

    When i enabled decoding for hevc it seems to be working (hevc 10bit was already enabled). Now the cpu usage sits around 30%.

    But why is it encoding to h264 when my client can handle h265 is it the issue with the android app ? Tried exoplayer also.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #9
    2024-08-31, 03:12 PM
    Did you enable HEVC encoding?

    "Allow encoding in HEVC format".

       
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Gtu785696
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2024 Aug
    Reputation: 0
    Country:India
    #10
    2024-08-31, 03:38 PM
    (2024-08-31, 03:12 PM)TheDreadPirate Wrote: Did you enable HEVC encoding?

    "Allow encoding in HEVC format".

    Yes its enabled.
    Pages (2): 1 2 Next »

    « 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