• 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 h264 instead of HEVC

     
    • 0 Vote(s) - 0 Average

    h264 instead of HEVC

    End up with h264 on all transcodes
    Stephan
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Feb
    Reputation: 0
    #1
    2024-02-03, 09:19 PM
    Hello Everyone.

    I spent some time searching here for this. Saw people talking about it but havent found a solution for my situation.
    All clients i tested transcoding with result in h264 insteaf of hevc or AV1. I configured the Server as described in the wiki.
    Setup feels correct as i can use ffmpeg from shell to transcode HEVC and AV1 using A380(vaapi) with great performance btw
    intel_gpu_top works and shows that transcode is done by the a380

    My idea was to have better quality with HEVC or AV1 at lower bitrates. (On reddit people were stating HEVC is better choice with ARC)
    Especially when i am on Travel there is often only 4-6Mbit available.

    The Server:
    AMD System with a Intel Arc A380 i bougt to play with.
    OS is Archlinux and JF is latest AUR
    I trief the JF-ffmpeg(6.0.1-Jellyfin) and the one thats latest aur(n6.1.1)


    The Clients i had tested:
    Win10 Laptop with Chrome and Edge 
    LG Webos with JF client from the Appstore
    Iphone 14

    Thanks to this forum here i learned that the client decides the target codec. I was not able to find the reason why clients request that codec.
    Anyone has a idea how to make it work with HEVC or AV1?

    Thanks!
    Stephan
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-02-03, 09:39 PM
    Most clients will request transcodes in H264. TV boxes (Roku, Android TV) may request HEVC. AV1 does work on most modern mobile devices. Except if you throw in ASS or PGS subtitles. Can often lead to transcoding since they need to be burned in.

    Which iPhone client are you using? JF Mobile or Swiftfin?

    Chrome and Edge supposedly support HEVC, but I haven't had any luck actually making that happen. Pretty sure the same is true for WebOS.
    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]
    punksinatra
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Jan
    Reputation: 0
    Country:Philippines
    #3
    2024-02-03, 10:06 PM
    The only client that plays native HVEC files for me is Microsoft Edge and it direct plays HVEC/265 encoded videos no transcoding. If you tried edge then it shouldn't be transcoding not unless audio and subs are not supported
    tmsrxzar
    Offline

    Senior Member

    Posts: 755
    Threads: 6
    Joined: 2023 Nov
    Reputation: 20
    #4
    2024-02-03, 10:10 PM (This post was last modified: 2024-02-03, 10:10 PM by tmsrxzar. Edited 1 time in total.)
    the why transcode to h264 instead of hevc is simply because that's how it's coded
    and because the client configurations don't offer a setting to override it

    you need to change the profile in the source code for whichever client you want to use hevc
    or beg on github for the developer to give you an override setting

    (the clients for kodi are the only ones im sure have this setting)
    Stephan
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Feb
    Reputation: 0
    #5
    2024-02-04, 09:21 AM (This post was last modified: 2024-02-04, 09:27 AM by Stephan. Edited 1 time in total.)
    (2024-02-03, 09:39 PM)TheDreadPirate Wrote: Most clients will request transcodes in H264.  TV boxes (Roku, Android TV) may request HEVC.  AV1 does work on most modern mobile devices.  Except if you throw in ASS or PGS subtitles.  Can often lead to transcoding since they need to be burned in.

    Which iPhone client are you using?  JF Mobile or Swiftfin?

    Chrome and Edge supposedly support HEVC, but I haven't had any luck actually making that happen.  Pretty sure the same is true for WebOS.

    Thanks for the fast reply.

    I used iphone app Jellyfin from the appstore. Cant tell which version. Just the thing that came in that week. havent tried Swiftfin.
    Its surprising to me that we arent using modern codecs by default. As there is allready a fallback system somewhere in the code. 
    At least thats my assumption because i saw other users logfiles here in troubleshooting where h264 was a fallback due to playback failure of HEVC(client side)
    Stephan
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Feb
    Reputation: 0
    #6
    2024-02-04, 09:26 AM (This post was last modified: 2024-02-04, 09:29 AM by Stephan. Edited 2 times in total.)
    tmsrxzar Wrote: the why transcode to h264 instead of hevc is simply because that's how it's coded
    and because the client configurations don't offer a setting to override it

    you need to change the profile in the source code for whichever client you want to use hevc
    or beg on github for the developer to give you an override setting

    (the clients for kodi are the only ones im sure have this setting)

    I am 100% unfamilar with Jelllyfin codebase but i am not scared to try it. Changing that few lines wouldn´t be that hard but finding it will be Smiling-face
    Its a large project. So if anyone cant hint me to the position where webclient has the hardcoded codec i would appreciate that.
    Stephan
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Feb
    Reputation: 0
    #7
    2024-02-04, 09:32 AM (This post was last modified: 2024-02-04, 09:33 AM by Stephan. Edited 1 time in total.)
    (2024-02-03, 10:06 PM)punksinatra Wrote: The only client that plays native HVEC files for me is Microsoft Edge and it direct plays HVEC/265 encoded videos no transcoding. If you tried edge then it shouldn't be transcoding not unless audio and subs are not supported

    If i look here:
    codec-support
    I can see supported codecs on some clients. For the ones i tested with direct play i can comfirm they are working in Edge and Crome.
    Had some testfiles HEVC direct play, so transcode should™ work also.
    nyanmisaka
    Offline

    Team Member

    Posts: 246
    Threads: 0
    Joined: 2023 Jun
    Reputation: 9
    #8
    2024-02-04, 11:47 AM
    JF 10.8 only supports HEVC in a few clients.
    JF 10.9 supports HEVC and AV1 on most browsers.

    It is recommended to upgrade to JF 10.9 and check apply this option.
       
    Stephan
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Feb
    Reputation: 0
    #9
    2024-02-04, 01:51 PM
    (2024-02-04, 11:47 AM)nyanmisaka Wrote: JF 10.8 only supports HEVC in a few clients.
    JF 10.9 supports HEVC and AV1 on most browsers.

    It is recommended to upgrade to JF 10.9 and check apply this option.

    Yes Sir, that did it. AV1 and hevc works now on my a380 using Win10 and chrome Browser.
    Thanks  Upside-down-face

    [Image: Unbenannt.jpg]  [Image: Unbenannt1.jpg]
    [Image: Unbenannt2.jpg] [Image: Unbenannt3.jpg]
    Stephan
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Feb
    Reputation: 0
    #10
    2024-02-04, 03:20 PM
    Edit: I see some source files stutter a bit. Don’t think that this is related to the initial issue.
    « 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