• 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 Guides, Walkthroughs & Tutorials Converting Dolby Vision to HDR10

    Pages (11): « Previous 1 … 5 6 7 8 9 … 11 Next »
     

     
    • 2 Vote(s) - 5 Average

    Converting Dolby Vision to HDR10

    Specifically profiles 7.6 and 8.1
    BotchedMiracle
    Offline

    Junior Member

    Posts: 9
    Threads: 2
    Joined: 2024 Dec
    Reputation: 0
    Country:United States
    #61
    2025-01-24, 09:55 PM
    (2025-01-20, 05:07 PM)TheDreadPirate Wrote: Remove "-max_interleave_delta 0" from the command.  That is an optional parameter, not necessary for the DV removal process.

    What is it does is ensure that the various video/audio/subtitle tracks are evenly distributed in the output file.  If the source file is poorly muxed and the various tracks are spread out across the file, ffmpeg will keep loading the file into memory until it encounters each track.

    https://ffmpeg.org/ffmpeg-formats.html#:...20(output)

    Worked like a charm! Thank you! Nearly had a heart attack and thought I fried my Unraid system during that parity rebuild. Learn from me folks, when working with large files, don't assume a tool is friendly with RAM management.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #62
    2025-01-24, 10:50 PM
    FWIW, on MOST files using that parameter isn't a problem.
    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]
    StaticUnit97
    Offline

    Junior Member

    Posts: 14
    Threads: 2
    Joined: 2024 Nov
    Reputation: 0
    Country:United States
    #63
    2025-02-04, 07:57 PM
    Does jellyfin-ffmpeg have the capability to convert from DV profile 7.6 to 8.1?

    Some of my movies that are natively DV 7.6 have some scenes with much higher brightness than others. When playing back the title after the conversion to just HDR10 (using jellyfin-ffmpeg), my TV only goes into HDR mode and most scenes, except the ones with the very high brightness, look overly dim. I believe this is because the min and max luminance value are relative to the entire movie, rather than per-scene like DV has.

    I recently stumbled upon this repo with a script that combines dovi_tool with the mkvtoolnix tools to strip out only the extra layer that profile 7.6 has on top of 8.1. The resulting mkv is picked up as a DV title by Jellyfin, and importantly, my TV will swap into DV mode.

    Does jellyfin-ffmpeg have the ability to just strip out the layer that's special to profile 7.6?
    gnattu
    Offline

    Team Member

    Posts: 339
    Threads: 0
    Joined: 2024 Feb
    Reputation: 17
    #64
    2025-02-04, 09:41 PM
    > Does jellyfin-ffmpeg have the capability to convert from DV profile 7.6 to 8.1?

    No currently. The base upstream version (7.0.2) is lacking some critical part to alter dovi metadata (even the checksum algorithm implementation is missing), and they made refactor the dovi handling code in 7.1 that made us to implement such thing easier. I planned to have this feature but I cannot do that with current ffmpeg base version. If we are moving to 7.1 in the future I will start to look at this. To do such conversion it does more to just remove the EL, you need to chagne the RPU to make the tone mapping parameters in the RPU profile 8 compatible, and such metadata is checksummed which means you have to update the checksum after modification, and current ffmpeg source we are using does not support the checksum flavor Dolby Vision is using and its dovi parser does not check this checksum at all.
    StaticUnit97
    Offline

    Junior Member

    Posts: 14
    Threads: 2
    Joined: 2024 Nov
    Reputation: 0
    Country:United States
    #65
    2025-02-04, 11:04 PM
    Thanks for the reply, good to know it's being tracked for the future!
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #66
    2025-02-05, 02:05 PM
    I've never tried, but I think dovi_tool can convert 7.6 to 8.1 by discarding the enhancement layer.

    https://github.com/quietvoid/dovi_tool?t...file#demux
    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]
    StaticUnit97
    Offline

    Junior Member

    Posts: 14
    Threads: 2
    Joined: 2024 Nov
    Reputation: 0
    Country:United States
    #67
    2025-02-05, 04:05 PM (This post was last modified: 2025-02-05, 04:06 PM by StaticUnit97. Edited 1 time in total.)
    Yeah, the link I included above is to a script wraps that plus other dovi_tool commands together to strip out the EL.

    Is the jellyfin-ffmpeg command that remove the dovi and hdr10plus meta data just calling out to dovi_tool, or is it modifying the metadata directly itself?
    gnattu
    Offline

    Team Member

    Posts: 339
    Threads: 0
    Joined: 2024 Feb
    Reputation: 17
    #68
    2025-02-05, 05:56 PM
    > Is the jellyfin-ffmpeg command that remove the dovi and hdr10plus meta data just calling out to dovi_tool, or is it modifying the metadata directly itself?

    It is doing it itself.
    Neuron5
    Offline

    Junior Member

    Posts: 6
    Threads: 0
    Joined: 2025 Feb
    Reputation: 0
    #69
    2025-02-14, 12:59 PM
    Based on the earlier comments DV profile 5 will not work with this right?

    Code:
    Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(pc), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default) (dub)
          Metadata:
            BPS            : 3927721
            DURATION        : 00:39:17.898000000
            NUMBER_OF_FRAMES: 56533
            NUMBER_OF_BYTES : 1157645948
            _STATISTICS_WRITING_APP: mkvmerge v89.0 ('And the Melody Still Lingers On (Night in Tunisia)') 64-bit
            _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
          Side data:
            DOVI configuration record: version: 1.0, profile: 5, level: 3, rpu flag: 1, el flag: 0, bl flag: 1, compatibility id: 0
      S




    When I try to convert this file I get the following error.

    Code:
    /usr/lib/jellyfin-ffmpeg/ffmpeg -y -hide_banner -stats -fflags +genpts+igndts -loglevel error -i "input.mkv" -map 0 -bsf:v hevc_metadata=remove_dovi=1 -codec copy -max_muxing_queue_size 2048 -max_interleave_delta 0 -avoid_negative_ts disabled hdr10_video.mkv


    [out#0/matroska @ 0x5559db5212c0] Could not write header (incorrect codec parameters ?): Invalid data found when processing input

    My TV does not support DV and I am to understand because this video does not have HDR my TV does not fall back to it?
    When I play this file I get sound but no video.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #70
    2025-02-14, 01:12 PM
    Correct. This is only meant for profiles 7.6 and 8.1.

    For profile 5 there is no "fallback". Profiles 7 and 8 are built on top of HDR10. If a TV does not support those Dolby Vision profiles it will "fallback" to HDR10.

    Profile 5 is not built on top of another HDR standard. It is its own proprietary color space.

    If you have a capable Jellyfin server that supports HEVC 10 bit, Jellyfin will tone map your profile 5 video to SDR on-the-fly.
    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]
    1
    Pages (11): « Previous 1 … 5 6 7 8 9 … 11 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