• 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 Dolby Vision incorrectly sized enhancement layer

     
    • 0 Vote(s) - 0 Average

    Dolby Vision incorrectly sized enhancement layer

    Dolby Vision profile 7 and 8 have incorrectly sized enhancement layer
    chrisrosser
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2023 Nov
    Reputation: 0
    #1
    2024-07-21, 05:49 PM (This post was last modified: 2024-07-21, 05:50 PM by chrisrosser. Edited 2 times in total.)
    When playing Dolby Vision + HDR (profile 7 or 8 ) content on my LG G3 using Jellyfin with WebOS app I sometimes get an incorrectly sized enhacement layer. Has anyone else hit this issue and found a solution? Many thanks for your help!


    Attached Files Thumbnail(s)
       
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-07-21, 06:49 PM
    There are various bugs with our WebOS app when "prefer fMP4" is enabled. You will need to disable that setting, but you will lose HDR (due to transcoding) until we update the 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]
    chrisrosser
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2023 Nov
    Reputation: 0
    #3
    2024-07-21, 09:44 PM (This post was last modified: 2024-07-21, 09:51 PM by chrisrosser. Edited 1 time in total.)
    I can confirm the issue is present with prefer fMP4 enabled and disabled. This setting doesn't appear to make any difference to this particular problem. The key issue appears to be aspect ratio.

    File that works perfectly:
    Codec: HEVC
    AVC: No
    Profile: Main 10
    Level: 150
    Resolution: 3840x2160
    Aspect ratio: 16:9
    Anamorphic: No
    Interlaced: No
    Framerate: 24
    Bitrate: 18942 kbps
    Bit depth: 10 bit
    Video range: HDR
    Video range type: DOVIWithHDR10
    DV title: DV Profile 8.1 (HDR10)
    DV version major: 1
    DV version minor: 0
    DV profile: 8
    DV level: 6
    DV rpu preset flag: 1
    DV el preset flag: 0
    DV bl preset flag: 1
    DV bl signal compatibility id: 1
    Colour space: bt2020nc
    Colour transfer: smpte2084
    Colour primaries: bt2020
    Pixel format: yuv420p10le
    Ref frames: 1

    Problem file:
    Codec: HEVC
    AVC: No
    Profile: Main 10
    Level: 153
    Resolution: 3840x1608
    Aspect ratio: 2.40:1 <<<<<< This is the only real difference between these two files.
    Anamorphic: No
    Interlaced: No
    Framerate: 23.976025
    Bitrate: 25653 kbps
    Bit depth: 10 bit
    Video range: HDR
    Video range type: DOVIWithHDR10
    DV title: DV Profile 8.1 (HDR10)
    DV version major: 1
    DV version minor: 0
    DV profile: 8
    DV level: 6
    DV rpu preset flag: 1
    DV el preset flag: 0
    DV bl preset flag: 1
    DV bl signal compatibility id: 1
    Colour space: bt2020nc
    Colour transfer: smpte2084
    Colour primaries: bt2020
    Pixel format: yuv420p10le
    Ref frames: 1
    theguymadmax
    Offline

    Community Moderator

    Posts: 1,047
    Threads: 0
    Joined: 2024 Jun
    Reputation: 58
    #4
    2024-07-22, 01:49 AM (This post was last modified: 2024-07-22, 01:59 AM by theguymadmax. Edited 2 times in total.)
    There is a fix for Dolby Vision on webOS in 10.9.8. While I don't think your issue falls within the scope of this PR, I still recommend upgrading if you haven't already done so.
    chrisrosser
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2023 Nov
    Reputation: 0
    #5
    2024-07-22, 06:47 AM (This post was last modified: 2024-07-22, 07:43 AM by chrisrosser. Edited 2 times in total.)
    10.9.8 does not fix this issue unfortunately. Slightly-frowning-face

    More research has found something interesting. Dolby Vision content can have a different Canvas Size vs Active Image Size.

    It appears that jellyfin -ffmpeg may be using the Active Image Size rather than the canvas size to scale the DV metadata.

    More info here: https://partnerhelp.netflixstudios.com/h...a-Overview


    Attached Files Thumbnail(s)
       
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2024-07-22, 02:45 PM
    (2024-07-22, 06:47 AM)chrisrosser Wrote: More research has found something interesting. Dolby Vision content can have a different Canvas Size vs Active Image Size.

    It appears that jellyfin -ffmpeg may be using the Active Image Size rather than the canvas size to scale the DV metadata.

    More info here: https://partnerhelp.netflixstudios.com/h...a-Overview

    In my work flow my re-compression script automatically removes black bars.  But I noticed that with HDR content the bars are never removed and I figured it had something to do with the DV metadata including the black bars.  This confirms that.

    This was before I started converting DV to HDR10, though.
    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]
    chrisrosser
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2023 Nov
    Reputation: 0
    #7
    2024-07-22, 03:21 PM
    (2024-07-22, 02:45 PM)TheDreadPirate Wrote:
    (2024-07-22, 06:47 AM)chrisrosser Wrote: More research has found something interesting. Dolby Vision content can have a different Canvas Size vs Active Image Size.

    It appears that jellyfin -ffmpeg may be using the Active Image Size rather than the canvas size to scale the DV metadata.

    More info here: https://partnerhelp.netflixstudios.com/h...a-Overview

    In my work flow my re-compression script automatically removes black bars.  But I noticed that with HDR content the bars are never removed and I figured it had something to do with the DV metadata including the black bars.  This confirms that.

    This was before I started converting DV to HDR10, though.

    Yes it seems like the DV Canvas is always 16:9 regardless of the active area of the image. Who would be the best group to chase this bug down? I've posted in the Jellyfin-web and Jellyfin-webos repo. Should I also post a bug in the main Jellyfin repo?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #8
    2024-07-22, 03:55 PM (This post was last modified: 2024-07-22, 03:55 PM by TheDreadPirate.)
    My understanding is that Jellyfin in WebOS, in a direct play scenario, passes the video to LG's internal player unmodified. Including the enhancement layer. So its not really a Jellyfin problem, per se. So you'd have to report it to LG directly (good luck with that).

    Even then, I'm honestly not sure if this is a problem vs working as intended with a "bad" source file. You could try adding back black bars with ffmpeg, but that requires re-encoding.

    https://stackoverflow.com/questions/4667...s-to-video

    Or get a different source file without the black bars removed.
    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]
    chrisrosser
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2023 Nov
    Reputation: 0
    #9
    2024-07-22, 04:03 PM
    (2024-07-22, 03:55 PM)TheDreadPirate Wrote: My understanding is that Jellyfin in WebOS, in a direct play scenario, passes the video to LG's internal player unmodified.  Including the enhancement layer.  So its not really a Jellyfin problem, per se.  So you'd have to report it to LG directly (good luck with that).

    Even then, I'm honestly not sure if this is a problem vs working as intended with a "bad" source file.  You could try adding back black bars with ffmpeg, but that requires re-encoding.

    https://stackoverflow.com/questions/4667...s-to-video

    Or get a different source file without the black bars removed.

    There is a remux to .ts to play on LG with HDR. I don't think the source file is bad. It plays fine on other hardware. Perhaps the issue is in the remuxing?
    « 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