• 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 2 3 4 5 … 11 Next »
     

     
    • 2 Vote(s) - 5 Average

    Converting Dolby Vision to HDR10

    Specifically profiles 7.6 and 8.1
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #11
    2024-08-24, 09:17 PM (This post was last modified: 2024-08-24, 09:18 PM by TheDreadPirate. Edited 1 time in total.)
    This is going to sound stupid.  The solution is to remux the remux.

    Code:
    /usr/lib/jellyfin-ffmpeg/ffmpeg -hide_banner -loglevel error -stats -y -fflags +genpts+igndts -i "new_hdr10_video.mkv" -map 0 -c:v copy -c:a copy -c:s copy -max_muxing_queue_size 2048 -avoid_negative_ts make_zero -max_interleave_delta 0 "new_new_hdr10_video.mkv"

    I will investigate if there is something I've missed, but this works for now.
    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]
    NavicNick
    Offline

    Junior Member

    Posts: 10
    Threads: 1
    Joined: 2024 Aug
    Reputation: 0
    Country:United States
    #12
    2024-08-25, 08:34 PM (This post was last modified: 2024-08-25, 08:34 PM by NavicNick. Edited 1 time in total.)
    Unfortunately that didn't work for me.

    I did come across a program called MKVToolNix, and by using it's Multiplexer mode, I was able to select the video stream from the final file (before the second remux, so "new_HDR10_video.mkv") and the audio and subtitle files from the original MKV and remux them into a new file, and this file plays perfectly smooth everywhere with no transcoding needed.

    Not sure why Jellyfin doesn't seem to like the files coming from FFMPEG, or why the second remux worked for you but not for me.
    NavicNick
    Offline

    Junior Member

    Posts: 10
    Threads: 1
    Joined: 2024 Aug
    Reputation: 0
    Country:United States
    #13
    2024-08-25, 09:07 PM
    Just adding some more info on this program, because I found a way to fix my problem while also removing some steps from your process, but it does require another program.

    Basically, I use your first command to make the .HEVC file for the video.
    Then, I use MKVToolNix and the Multiplexer mode to add both the new .HEVC file and the Original MKV file as an input. From there, I deselect the video from the Original MKV, and select the video from the .HEVC, while leaving everything else in the original MKV selected (Subtitles, Audio, Chapters).
    Finally, I click the "start multiplexing button" and once that is done I have a new MKV file with the HDR10 video from the HEVC file, and the audio, subtitles, and chapters from the Original MKV file.
    This is what everything looks like in the MKVToolNix GUI. I left everything else default, didn't touch anything in the Output tab as it didn't seem to do anything for what I needed.

    This gets rid of the Dolby Vision layers and solves my stuttering video problem, while removing a step from your guide (moving the .HEVC file into the MP4 container) and replacing the final remuxing step (ignoring the remux the remux step) with the Multiplexer in MKVToolNix.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #14
    2024-09-28, 04:03 AM
    @NavicNick - Can you try the slightly tweaked commands in the opening post? I changed avoid_negative_ts to disabled and that appears to have resolved the issues with needing to mux twice originally.
    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]
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #15
    2024-11-07, 10:06 PM
    This guide has been updated. Jellyfin-ffmpeg 7.0.2-4 added a bitstream filter to remove Dolby Vision directly in ffmpeg. dovi_tool is no longer needed at all. And this still does not require any re-encoding AND can be done with a single ffmpeg command.

    A bonus feature: If you do re-encode, you can skip using the bitstream filter entirely. Re-encoding to, for example, AV1 will automatically strip the Dolby Vision EL and RPU while maintaining the BT2020 HDR10 color space.
    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
    Host-in-the-Shell
    Offline

    Member

    Posts: 166
    Threads: 10
    Joined: 2023 Jun
    Reputation: 14
    #16
    2024-11-09, 05:37 PM
    Just wanted to add my thanks for this command, as I had problems streaming on my LG TV some 4K HDR films and had no idea why; turns out they had DV 8.1 profile and as soon as I converted them over, all problems were gone. This really had me banging my head for a while so much appreciated.
    Server specs => OS: Debian 12 | GPU: Arc A380 | CPU: Ryzen 5 5600X | 64GB RAM | 56TB
    Dunning Kruger
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2023 Jun
    Reputation: 0
    #17
    2024-11-10, 09:05 PM
    I'm trying to convert a few files using the newest command and it keeps running out of memory. Is there anything I can add to the command to let this run in under 8 Gigs of ram?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #18
    2024-11-10, 10:00 PM (This post was last modified: 2024-11-10, 10:01 PM by TheDreadPirate. Edited 1 time in total.)
    (2024-11-10, 09:05 PM)Dunning Kruger Wrote: I'm trying to convert a few files using the newest command and it keeps running out of memory. Is there anything I can add to the command to let this run in under 8 Gigs of ram?

    Remove -max_interleave_delta 0.  That should reduce the memory usage a lot.  That option can help deal with some edge cases where video's are encoded weirdly.  But it is optional and shouldn't be a problem to leave out in 99% of cases. I've encountered one set of discs from the same box set that having this option enabled was needed.
    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]
    Host-in-the-Shell
    Offline

    Member

    Posts: 166
    Threads: 10
    Joined: 2023 Jun
    Reputation: 14
    #19
    2024-11-29, 07:10 PM
    Sometimes using the command I get the following error (or similar):

    Code:
    [hevc_metadata @ 0x557dad555c00] Codec 'mjpeg' (7) is not supported by the bitstream filter 'hevc_metadata'. Supported codecs are: hevc (173)
    [vost#0:8/copy @ 0x557dacf56280] Error initializing bitstream filter: hevc_metadata
    Error opening output file hdr10_video.mkv.

    If I change -bsf:v to -bsf:0 it works, but playback gets kind funky, for instance videos will fail to start unless I skip ahead and then start from zero. Any ideas on this?
    Server specs => OS: Debian 12 | GPU: Arc A380 | CPU: Ryzen 5 5600X | 64GB RAM | 56TB
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #20
    2024-11-29, 08:03 PM
    Sometimes I've seen embedded images be labeled as video streams. I'll look through my library for something similar and get back to you.
    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]
    Pages (11): « Previous 1 2 3 4 5 … 11 Next »
     

    « Next Oldest | Next Newest »

    Users browsing this thread: 2 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