Jellyfin Forum
Converting Dolby Vision to HDR10 - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Guides, Walkthroughs & Tutorials (https://forum.jellyfin.org/f-guides-walkthroughs-tutorials)
+--- Thread: Converting Dolby Vision to HDR10 (/t-converting-dolby-vision-to-hdr10)

Pages: 1 2 3 4 5 6 7 8 9 10 11


RE: Converting Dolby Vision to HDR10 - Shawn Farley - 2025-02-17

What new File? I copied the original file to a test folder and ran the program. It doesn't created a new file though and doesn't look like it modified the original file either.


RE: Converting Dolby Vision to HDR10 - theguymadmax - 2025-02-17

(2025-02-17, 03:19 PM)Shawn Farley Wrote: What new File? I copied the original file to a test folder and ran the program. It doesn't created a new file though and doesn't look like it modified the original file either.

when you run this command:
Code:
/usr/lib/jellyfin-ffmpeg/ffmpeg -y -hide_banner -stats -fflags +genpts+igndts -loglevel error -i "/data/temp/Test/Alien.1979.Directors.Cut.HYBRID.2160p.BluRay.REMUX.HEVC.DV.DTS-HD.MA.5.1-Flights.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

The original file remains unmodified. The command generates a new file, which in this case you've named "hdr10_video.mkv."


RE: Converting Dolby Vision to HDR10 - Shawn Farley - 2025-02-17

I don't see a new file is it suppose to save in the same folder.

The only thing I see happen is the disk utilization goes up to 95% for a few hours and that's it.


RE: Converting Dolby Vision to HDR10 - theguymadmax - 2025-02-17

You can search your filesystem for the file. Or specify the file path you want to save the file /path/to/file/hdr10_video.mkv in your command.


RE: Converting Dolby Vision to HDR10 - Shawn Farley - 2025-02-17

ohh I see a file now.


RE: Converting Dolby Vision to HDR10 - Shawn Farley - 2025-02-17

Looks like it worked thnx so much for the help guys.


RE: Converting Dolby Vision to HDR10 - SquishySquash - 2025-02-18

Hello, I tried using the one-liner from updated guide on my file that contains Dolby Vision metadata Dolby Vision, Version 1.0, Profile 5, dvhe.05.06, BL+RPU, no metadata compression. I wanted to do it because this file does not play correctly on my devices that do not have Dolby Vision capable screen. On these devices when playing this file it displays wrong colors, everything is purple-greenish, like on my PC using VLC media player. Of course file plays correctly on my TV which is DV capable.

So first I downloaded Jellyfin FFMPEG from here https://github.com/jellyfin/jellyfin-ffmpeg/releases/tag/v7.0.2-9 The Windows version. Then I used your command pointing it to my MKV file:

Code:
ffmpeg -y -hide_banner -stats -fflags +genpts+igndts -loglevel error -i "D:\StarWars.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

but it kept erroring out despite path to file being correct

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

Now I figured it may be because of DV profile 5. You mentioned that the guide is focusing on Dolby Vision profile 7 and 8 files so using dovi tools I converted the file to 8.1 profile first extracting HEVC file from MKV then executing dovi tools with

Code:
D:\>dovi_tool -m 3 convert starwars.hevc

command 3 " Converts profile 5 to 8.1. " and then remuxing new HEVC file back into MKV. This produced a new entry in MediaInfo: Dolby Vision, Version 1.0, Profile 8.2, dvhe.08.06, BL+RPU, no metadata compression, SDR compatible

The converted file still produced wrong colors when played it so I ran ffmpeg with same command as above and now it ran. The problem is that once its done MediaInfo on the HDR10 file reports that there is no HDR data at all in the file. Jellyfin also recognizes the file as SDR. But now it plays in wrong color everywhere, even on my TV where it worked all right before all the conversions.

What did go wrong? I'm attaching mediainfo on original, after dovitool and after ffmpeg.

(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.

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



RE: Converting Dolby Vision to HDR10 - TheDreadPirate - 2025-02-18

This process is explicitly for DV 7 and 8. I don't have any DV5 content to test with nor have I tried to figure out that process.


RE: Converting Dolby Vision to HDR10 - SquishySquash - 2025-02-18

Yes thats why my second attempt was with DV8 file (HDR format: Dolby Vision, Version 1.0, Profile 8.2, dvhe.08.06, BL+RPU, no metadata compression, SDR compatible) and it produced wrong results.

(2025-02-18, 10:58 PM)TheDreadPirate Wrote: This process is explicitly for DV 7 and 8.  I don't have any DV5 content to test with nor have I tried to figure out that process.



RE: Converting Dolby Vision to HDR10 - TheDreadPirate - 2025-02-18

But the 8.2 was converted from the DV5 source, correct? I'll eventually get around to getting a DV5 test file and experiment with using dovi_tool to convert it to HDR10. Mostly for the lulz.

Personally, I wouldn't bother converting DV5 videos to HDR10. Some Android TV devices use mediatek SoCs, and some of those models have driver bugs that break Dolby Vision 7 and 8. And one of my devices also has a mediatek chipset.

That is in addition to my re-encoding all my media to AV1, which doesn't support DV 7 or 8.