• 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

     
    • 2 Vote(s) - 5 Average

    Converting Dolby Vision to HDR10

    Specifically profiles 7.6 and 8.1
    Majesticaveman
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2025 Mar
    Reputation: 0
    #103
    2025-03-31, 01:55 PM
    (2024-08-06, 09:25 PM)TheDreadPirate Wrote: ****This guide has been updated****

    Jellyfin-ffmpeg 7.0.2-4 added a feature to remove Dolby Vision directly.  The process of removing Dolby Vision can now be accomplished with a single ffmpeg command, greatly simplifying the process.  I am leaving the original walkthrough for those on non-Jellyfin builds of ffmpeg or jellyfin-ffmpeg6.

    Code:
    /usr/lib/jellyfin-ffmpeg/ffmpeg -y -hide_banner -stats -fflags +genpts+igndts -loglevel error -i "/path/to/dv_video.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

    And that is it.  Still no re-encoding required.

    A bonus feature: If you do re-encode, to AV1 specifically, you can skip using the bitstream filter entirely.  Re-encoding to AV1 will automatically strip the Dolby Vision EL and RPU while maintaining the BT2020 HDR10 color space.

    =========================================================================

    ****Original Walkthrough****

    If you've watched HDR content on Jellyfin you've likely struggled with the mish-mash of client/server compatibility that comes with HDR content.  Especially with Dolby Vision.

    In my quest to encode my entire library with AV1, that required I tackle the issue of Dolby Vision.  Both because HDR10 is vastly more compatible (yay open standards) and because AV1 does not officially support these Dolby Vision profiles anyway (AV1 Dolby Vision via Profile 10).  To be clear, you can still use HEVC if you haven't gotten on the AV1 bandwagon yet.  We're going to focus on simply removing Dolby Vision, which does not require any re-encoding.

    For this guide we are focusing on the two more common Dolby Vision profiles: 7.6 and 8.1.  Profile 7.6 is used exclusively by 4K HDR Blurays and can only be decoded by Bluray players.  To my knowledge, there are no mobile phones or streaming devices that support profile 7.6.  Then there's the related profile 8.1.

    Both Dolby Vision profiles use HDR10 as their base and add dynamic metadata, a.k.a. enhancement layers, on top of it.  A single layer, called the RPU (Reference Picture Unit), for profile 8.1.  And two enhancement layers for profile 7.6, RPU and MEL/FEL (minimum or full enhancement layer).  Converting Dolby Vision 7.6 and 8.1 to HDR10 simply requires discarding these extra layers.

    FFMPEG cannot, by itself, discard Dolby Vision metadata.  We will need the aid of an open source app called dovi_tool.  I've tested this process in Linux, but both dovi_tool and jellyfin-ffmpeg6 are available on Windows and Mac.  You may need to make minor syntax adjustments for Windows and Mac.  Vanilla FFMPEG should also work fine.

    First we need extract the video and run it through dovi_tool to remove the Dolby Vision layers.

    Code:
    /usr/lib/jellyfin-ffmpeg/ffmpeg -y -hide_banner -loglevel error -stats -i "/path/to/your/DV_video.mkv" -dn -c:v copy -bsf:v hevc_mp4toannexb -f hevc - | dovi_tool remove - -o "hdr10_video.hevc"

    Now we have a naked HDR10 HEVC file with no structure.  I tried directly remuxing the video back into the source MKV file, but muxing it into a MP4 container first seemed to work better.

    Code:
    /usr/lib/jellyfin-ffmpeg/ffmpeg -hide_banner -loglevel error -stats -y -fflags +genpts -i "hdr10_video.hevc" -c:v copy "hdr10_video.mp4"

    NOW we can remux the new HDR10 video with the original audio and subtitles.

    Code:
    /usr/lib/jellyfin-ffmpeg/ffmpeg -hide_banner -loglevel error -stats -y -fflags +genpts+igndts -i "hdr10_video.mp4" -i "/path/to/your/DV_video.mkv" -map_chapters 1 -map 0:v -map 1:a -map 1:s -c:v copy -c:a copy -c:s copy -max_muxing_queue_size 2048 -avoid_negative_ts disabled -max_interleave_delta 0 "new_hdr10_video.mkv"

    Now we've muxed the HDR10 video with the original audio, subtitles, and chapter markers.  Zero re-encoding required.

    I followed this guide using the new command and it seems like I'm getting an Out of memory issue. I thought it worked at first, however the file is 25GB smaller and the end of the video (which isn't the end of the movie) seems to be corrupted. Is there something wrong with what I'm doing?
    I've attached a .txt with the logs and command.

    Information about my system.

    OS: Windows 10
    CPU: 9700k
    Memory: 32GB
    Graphics: Integrated
    Hard Drive: 1 x 8tb WD blue.


    Attached Files
    .txt   Dolby-vision-conversion-logs.txt (Size: 10.04 KB / Downloads: 22)
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Converting Dolby Vision to HDR10 - by TheDreadPirate - 2024-08-06, 09:25 PM
    RE: Converting Dolby Vision to HDR10 - by NavicNick - 2024-08-23, 07:17 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2024-08-23, 07:27 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2024-08-23, 10:48 PM
    RE: Converting Dolby Vision to HDR10 - by NavicNick - 2024-08-23, 10:04 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2024-08-23, 10:23 PM
    RE: Converting Dolby Vision to HDR10 - by NavicNick - 2024-08-23, 10:26 PM
    RE: Converting Dolby Vision to HDR10 - by NavicNick - 2024-08-24, 05:04 AM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2024-08-24, 04:30 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2024-08-24, 08:39 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2024-08-24, 09:17 PM
    RE: Converting Dolby Vision to HDR10 - by NavicNick - 2024-08-25, 08:34 PM
    RE: Converting Dolby Vision to HDR10 - by NavicNick - 2024-08-25, 09:07 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2024-09-28, 04:03 AM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2024-11-07, 10:06 PM
    RE: Converting Dolby Vision to HDR10 - by NavicNick - 2024-11-30, 10:37 PM
    RE: Converting Dolby Vision to HDR10 - by Host-in-the-Shell - 2024-11-09, 05:37 PM
    RE: Converting Dolby Vision to HDR10 - by Dunning Kruger - 2024-11-10, 09:05 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2024-11-10, 10:00 PM
    RE: Converting Dolby Vision to HDR10 - by Host-in-the-Shell - 2024-11-29, 07:10 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2024-11-29, 08:03 PM
    RE: Converting Dolby Vision to HDR10 - by Host-in-the-Shell - 2024-11-29, 08:27 PM
    RE: Converting Dolby Vision to HDR10 - by teddy101 - 2024-12-16, 06:26 PM
    RE: Converting Dolby Vision to HDR10 - by teddy101 - 2024-12-16, 08:14 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2024-12-16, 10:48 PM
    RE: Converting Dolby Vision to HDR10 - by teddy101 - 2024-12-17, 01:22 PM
    RE: Converting Dolby Vision to HDR10 - by lakinreid - 2024-12-17, 02:17 AM
    RE: Converting Dolby Vision to HDR10 - by theguymadmax - 2024-12-17, 02:42 AM
    RE: Converting Dolby Vision to HDR10 - by lakinreid - 2024-12-18, 02:05 AM
    RE: Converting Dolby Vision to HDR10 - by theguymadmax - 2024-12-18, 02:21 AM
    RE: Converting Dolby Vision to HDR10 - by lakinreid - 2024-12-18, 05:20 AM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2024-12-17, 12:33 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2024-12-17, 03:04 PM
    RE: Converting Dolby Vision to HDR10 - by teddy101 - 2024-12-17, 03:55 PM
    RE: Converting Dolby Vision to HDR10 - by gnattu - 2024-12-17, 05:30 PM
    RE: Converting Dolby Vision to HDR10 - by gnattu - 2024-12-17, 05:46 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2024-12-18, 01:46 PM
    RE: Converting Dolby Vision to HDR10 - by fcs001fcs - 2024-12-18, 10:00 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2024-12-18, 11:24 PM
    RE: Converting Dolby Vision to HDR10 - by fcs001fcs - 2024-12-19, 11:54 AM
    RE: Converting Dolby Vision to HDR10 - by lakinreid - 2024-12-19, 04:31 AM
    RE: Converting Dolby Vision to HDR10 - by theguymadmax - 2024-12-19, 06:03 AM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2024-12-19, 02:03 PM
    RE: Converting Dolby Vision to HDR10 - by error101 - 2024-12-23, 08:29 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2024-12-23, 09:28 PM
    RE: Converting Dolby Vision to HDR10 - by error101 - 2024-12-23, 10:56 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2024-12-24, 08:49 AM
    RE: Converting Dolby Vision to HDR10 - by gnattu - 2024-12-24, 09:14 AM
    RE: Converting Dolby Vision to HDR10 - by Host-in-the-Shell - 2025-01-01, 09:13 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2025-01-01, 11:15 PM
    RE: Converting Dolby Vision to HDR10 - by Host-in-the-Shell - 2025-01-01, 11:58 PM
    RE: Converting Dolby Vision to HDR10 - by lakinreid - 2025-01-03, 11:51 PM
    RE: Converting Dolby Vision to HDR10 - by bitmap - 2025-01-04, 01:19 AM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2025-01-04, 06:22 PM
    RE: Converting Dolby Vision to HDR10 - by error101 - 2025-01-14, 08:57 PM
    RE: Converting Dolby Vision to HDR10 - by gnattu - 2025-01-14, 10:18 PM
    RE: Converting Dolby Vision to HDR10 - by BotchedMiracle - 2025-01-20, 01:06 AM
    RE: Converting Dolby Vision to HDR10 - by BotchedMiracle - 2025-01-20, 05:55 AM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2025-01-20, 05:07 PM
    RE: Converting Dolby Vision to HDR10 - by BotchedMiracle - 2025-01-24, 09:55 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2025-01-24, 10:50 PM
    RE: Converting Dolby Vision to HDR10 - by StaticUnit97 - 2025-02-04, 07:57 PM
    RE: Converting Dolby Vision to HDR10 - by gnattu - 2025-02-04, 09:41 PM
    RE: Converting Dolby Vision to HDR10 - by StaticUnit97 - 2025-02-04, 11:04 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2025-02-05, 02:05 PM
    RE: Converting Dolby Vision to HDR10 - by StaticUnit97 - 2025-02-05, 04:05 PM
    RE: Converting Dolby Vision to HDR10 - by gnattu - 2025-02-05, 05:56 PM
    RE: Converting Dolby Vision to HDR10 - by Neuron5 - 2025-02-14, 12:59 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2025-02-14, 01:12 PM
    RE: Converting Dolby Vision to HDR10 - by Neuron5 - 2025-02-15, 02:46 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2025-02-15, 06:26 PM
    RE: Converting Dolby Vision to HDR10 - by Neuron5 - 2025-02-15, 07:02 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2025-02-16, 12:52 AM
    RE: Converting Dolby Vision to HDR10 - by Neuron5 - 2025-02-16, 01:05 AM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2025-02-16, 01:27 AM
    RE: Converting Dolby Vision to HDR10 - by Neuron5 - 2025-02-16, 01:30 AM
    RE: Converting Dolby Vision to HDR10 - by gnattu - 2025-02-16, 01:52 AM
    RE: Converting Dolby Vision to HDR10 - by Neuron5 - 2025-02-16, 03:18 AM
    RE: Converting Dolby Vision to HDR10 - by Shawn Farley - 2025-02-16, 07:32 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2025-02-16, 07:38 PM
    RE: Converting Dolby Vision to HDR10 - by Shawn Farley - 2025-02-16, 08:33 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2025-02-16, 10:14 PM
    RE: Converting Dolby Vision to HDR10 - by Shawn Farley - 2025-02-16, 10:25 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2025-02-16, 10:30 PM
    RE: Converting Dolby Vision to HDR10 - by Shawn Farley - 2025-02-16, 10:55 PM
    RE: Converting Dolby Vision to HDR10 - by Shawn Farley - 2025-02-17, 12:10 AM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2025-02-17, 01:19 AM
    RE: Converting Dolby Vision to HDR10 - by Shawn Farley - 2025-02-17, 01:38 AM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2025-02-17, 03:05 PM
    RE: Converting Dolby Vision to HDR10 - by Shawn Farley - 2025-02-17, 03:19 PM
    RE: Converting Dolby Vision to HDR10 - by theguymadmax - 2025-02-17, 03:31 PM
    RE: Converting Dolby Vision to HDR10 - by Shawn Farley - 2025-02-17, 03:39 PM
    RE: Converting Dolby Vision to HDR10 - by theguymadmax - 2025-02-17, 04:20 PM
    RE: Converting Dolby Vision to HDR10 - by Shawn Farley - 2025-02-17, 04:31 PM
    RE: Converting Dolby Vision to HDR10 - by Shawn Farley - 2025-02-17, 04:44 PM
    RE: Converting Dolby Vision to HDR10 - by SquishySquash - 2025-02-18, 10:50 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2025-02-18, 10:58 PM
    RE: Converting Dolby Vision to HDR10 - by SquishySquash - 2025-02-18, 11:05 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2025-02-18, 11:16 PM
    RE: Converting Dolby Vision to HDR10 - by SquishySquash - 2025-02-19, 08:04 PM
    RE: Converting Dolby Vision to HDR10 - by gnattu - 2025-02-19, 04:50 AM
    RE: Converting Dolby Vision to HDR10 - by Majesticaveman - 2025-03-31, 01:55 PM
    RE: Converting Dolby Vision to HDR10 - by TheDreadPirate - 2025-03-31, 02:04 PM
    RE: installation Jellyfin on Synology - by fcs001fcs - 2024-12-18, 06:03 PM

    • 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