Dolby Vision Profile 7 & 8 support (.ts/.mkv files)

I have tested the new beta version with many test files I have created.

The test files are in:

  • SD
  • HD
  • UHD HDR10
  • UHD HDR10+
  • UHD DoVi P7
  • UHD DoVi P8.1

I have tested both uncompressed and compressed, have removed DoVi metadata, removed HDR10+ metadata, injected HDR10+ metadata, injected DoVi metadata etc.

The good
The DoVi videos I have that gets colored green in the public version, are shown in correct colors in the beta version.

Every video plays correctly, regardless of whether it is HDR10, HDR10+, DoVi P7 or DoVi P8.1 or any other, or whether they are uncompressed or compressed

Infuse shows correct info for every video, whether it is HDR10, HDR10+, DoVi P7 or Do.Vi P8.1 or any other.

Dolby Vision “forced” mode works as expected. DoVi P8.1 videos shows up av DoVi on my TV, DoVi P7 shows up as HDR, HDR+ shows up as HDR (I have a LG OLED with no support for HDR10+), HDR shows up as HDR, and all others correctly as non-HDR.

No issues with subtitles either, whether they are PGS’ muxed into the MKV container or SRTs fetched from OpenSubtitles. I haven’t tested with external SRTs yet.

The bad
Dolby Vision “auto” mode does not seem to work. None of my videos with DoVi P8.1 were displayed as DoVi on the TV.

At the same time, “forced” works as you would expect “auto” to work. With “forced” activated, all videos shows up correctly on my TV. If you want to avoid DoVi, you can just choose “auto” or “HDR”.

I don’t quite understand what the difference between “auto” and “forced” is supposed to be, but surely James can say something about that.

From beta thread

I don’t understand this.

  1. What is the difference between DoVi P8 files that can and cannot be played in DoVi? I thought all P8.1 files (which is what I have) could be played?

  2. What is the purpose of enabling DoVi for P8 files if they are playing in HDR anyway? Just to see the DoVi symbol (incorrectly) on the TV?

  3. Does this then mean that what I see is only HDR10 anyway?

  4. If “yes” on number 3, what can I do to get actual DoVi?

If the output is not switching to DoVi when the setting is on Auto, then it means that particular video is playing in HDR.

Enabling the Forced option would allow you to get DoVi output on the Apple TV while the video is playing in HDR (some people prefer this - for reasons).

There are still some cases we are working to add, so it’s possible these changes may help with some of your videos.

We can review any video samples you have to see if support can be added (the Apple TV isn’t going to support everything) and these can be uploaded here.

https://upload.firecore.com/

This was a bit confusing, because I have followed the methods described in this thread and on the MakeMKV forum etc. I have used DoVi Tools to convert RPU files from P7 to P8.

The result typically looks like this in media info:
HDR format : Dolby Vision, Version 1.0, dvhe.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2094 App 4, Version 1, HDR10+ Profile B compatible

If this method doesn’t work, what is all the fuzz about? And how can you then get DoVi on Apple TV from ripped UHD discs?

It may look like I’ve learned a lot of new things for nothing :slight_smile:

I can submit a couple of examples.

Edit: Have submitted two files now.

  1. ATV4k officially supports profile 5 and profile 8 with the base layer cross-compatibility ID set to 4 (p8.4). Infuse is modifying the header so the ATV thinks it’s playing profile 5 with an HDR10 base layer (BL cross-compat ID 1; invalid according to Dolby spec) which is what the official ATV DV aerial screensavers use.

  2. Nobody said p8.1 is playing in HDR10. What it means is you can force-enable DV even though you’re playing a non-DV file. So no for 3)

Sounds weird. How can you suddenly get DoVi from nothing? Don’t think that was what James meant.

As it seems right now I manage to create compatible DoVi P8 files without compression (using “DoVi_Scripts”), but but not with compression (using DoVi tools). Too bad, as the last one got me files about 25-30 % the size. Think I’ll stick with HDR10, then.

He means you can force your tv into Dolby picture mode despite it being hdr 10.

And to carry on from what @Tygeezy said.
This is exactly what Plex does with everything except profile 5

Are you injecting HDR10+ as well as DV after you go through all of your processing steps?

I would avoid adding HDR10+ metadata while you’re trying to get DV working, just to avoid an additional variable.

With Apple recently adding HDR10+ support to the ATV 4K’22 (Gen 3), who knows if they’ve got all the tvOS bugs worked out for all ATV 4K models to make sure it doesn’t mess with the display pipeline for DV when HDR10+ is present.

And who knows if it’s a factor at this point, but first step is to subtract unnecessary factors and isolate your test case to get it as pure as possible.

Infuse 7.5 is still in beta, let alone released and iterated upon, so it’s quite early to be making decisions about how to handle your library.

There are plenty of things to try to figure out the problem and get it working.

You indicated that you have a DV8.1 header but you don’t mention converting your DV7 RPU to DV8.

If you’re ripping to MKV using MakeMKV, then you have a single-track dual-layer (STDL) video stream that has the BL+EL+RPU in a single video track.

So you want to use dovi_tool to extract the RPU (not convert it to a BL+RPU stream or demux it to an EL+RPU stream) and convert it to DV8.1.

ffmpeg -i input.mkv -c:v copy -vbsf hevc_mp4toannexb -f hevc - | dovi_tool -m 2 extract-rpu - -o RPU.bin

You also want to make sure you’re using the latest version of dovi_tool (v1.6.0 or later) when you use mode 2 to convert to DV8.1 and your source is FEL DV7, because that version now removes some tone mapping that will be applied twice if you use an earlier version of dovi_tool. That alone would account for your colors being off, as I believe that’s how it manifests.

With those earlier versions of dovi_tool, you would’ve had to run convert with an --edit-config param to pass it a JSON file with { "mode": 2, "remove_mapping": true }.

That mapping is now removed automatically with mode 2, and the old mode 2 behavior is now mode 5.

Snippet:

OK. But why would I want to force the TV into a mode that shows anything other than reality?

Watching blu-rays in HDR10 on the ATV is further from reality than DV because of the broken HDR10 metadata and because colorists manually trim the dynamic tonemapping for different displays. If you don’t have a problem with broken downgrade HDR, forcing DV mode for non-DV content is the same thing. Possibly even better if the ATV sends correct metadata in DV mode.

That’s what I do, sir.

Hmm. Is there something I have misunderstood? I use the Dolby tools downloaded here. It is this tool that I cannot get to work with DoVi output in Infuse.

I have also used Dolby Scripts that’s downloaded from here (version 1.7.1). I make DoVi work in Infuse when I convert the RPU file from P7 to P8 with this script and otherwise keep the video uncompressed.

Do you know a way to use the same script to inject the RPU in a HandBrake compressed file?

Maybe I can try to convert the RPU with Dolby Scripts and then inject it to the HandBrake compressed file with DoVi tools? The HandBrake compressed file will, by the way, put HDR10+ out of the question, as HandBrake does not support that.

I’ve tried both yes and no, and lots of other things :slight_smile:

You mean the HDR10 metadata is broken when ripping the UHD blu-ray with MakeMKV?

The ATV sends out incorrect metadata values for most movies.

Can that be helped with the “forced” option?

@Videoman
There is the following ongoing thread about this ( and possibly others):

I think I may have found the right workflow to get HandBrake compressed files to show as Dolby Vision (in auto mode) in Infuse now. I’ll report back a little later.

Hi nekno, just to be clear, you’re saying any FEL profile 7 → profile 8.1 conversions done with older versions of Dovi_Tool could have incorrect colours? So they should be redone with the latest version?

Did this also affect conversions made from MEL profile 7 or profile 5 sources?

Just to be clear, the new behaviour is not in version 1.6.0.
It is still unreleased.