Following up on this, I think this is correct but trying to figure out why this is the case? It's not the color space conversion, but for some reason the RPU can't be created? Why can't the RPU from a profile 8/7 be put on a profile 5 stream? Does it changed based on the color space or something? @yusescope said something about it here but I don't fully understand why - viewtopic.php?style=6&f=12&t=18602&start=2445#p90215
Dolby Vision now possible through MP4 Mux.
Re: Dolby Vision now possible through MP4 Mux.
Re: Dolby Vision now possible through MP4 Mux.
Therefore you are saying, that this has somehow tricked Media Info into reporting this as a DV profile 5 video, but not really. Infuse knows better? Is there anyway possible to get an MKV DV rip, to profile 5 to play on ATV4K via Infuse?
You're trying to trick Infuse to think the file is profile 5 when it's not.
The Apple TV only supports profile 5 and profile 8.4, which are not HDR10.
Re: Dolby Vision now possible through MP4 Mux.
When encoding profile 5, the video is encoded with a different colorspace, and is also reshaped from PQ to another custom transfer function.ad329 wrote: ↑Sat Dec 25, 2021 3:45 amFollowing up on this, I think this is correct but trying to figure out why this is the case? It's not the color space conversion, but for some reason the RPU can't be created? Why can't the RPU from a profile 8/7 be put on a profile 5 stream? Does it changed based on the color space or something? @yusescope said something about it here but I don't fully understand why - viewtopic.php?style=6&f=12&t=18602&start=2445#p90215
This reshaping step generates metadata that is specific to that scene/frame.
Without both the original IPT colorspace video AND proper reshaping metadata, there is no way to have a correct profile 5 file.
If you use a different RPU from the one made specifically for the profile 5 video, it would not look correct.
What you did is to remux the video into MP4, and the container tells Infuse "this here file should be profile 5".
However the actual video remains unchanged, and is still HDR10.
I don't know how Infuse sees it, but the actual device is the one ignoring the metadata.
There's no way as of today to convert it to profile 5.
Just play it as HDR10 or use another playback device which supports PQ based Dolby Vision such as profile 7 or 8.1.
Re: Dolby Vision now possible through MP4 Mux.
I'm was just trying to convert a HDR10 movie to DV P6 but got stuck with Step 2chros wrote: ↑Sat Oct 09, 2021 8:44 amprocess:Code: Select all
# run madvr madmeasure on the mkv file # generate RPU from madmeasure bin file dovi_tool.exe generate -j generator_madvr.json --madvr-file l_0201.bin -o RPU_from_madVR.bin # extract hevc video and audio with mkvextract # inject the generated RPU into stream dovi_tool.exe inject-rpu -i video.hevc --rpu-in RPU_from_madVR.bin -o injected_output.hevc # mux together with tsmuxer
Downloaded madVR, installed it & LAVfilters, copied madMeasureHDR to the madVR installation folder and got the .measurements file by running the mkv file through madMeasureHDR
Can you help me with the madmeasure bin file, how we can generate it?
Sorry, if i sound too noob
@@quietvoid
Re: Dolby Vision now possible through MP4 Mux.
That *. measure* file is the bin (binary) file, I just renamed it to *. binRide_UL wrote: ↑Sat Dec 25, 2021 3:59 pmI'm was just trying to convert a HDR10 movie to DV P6 but got stuck with Step 2chros wrote: ↑Sat Oct 09, 2021 8:44 amprocess:Code: Select all
# run madvr madmeasure on the mkv file # generate RPU from madmeasure bin file dovi_tool.exe generate -j generator_madvr.json --madvr-file l_0201.bin -o RPU_from_madVR.bin # extract hevc video and audio with mkvextract # inject the generated RPU into stream dovi_tool.exe inject-rpu -i video.hevc --rpu-in RPU_from_madVR.bin -o injected_output.hevc # mux together with tsmuxer
Downloaded madVR, installed it & LAVfilters, copied madMeasureHDR to the madVR installation folder and got the .measurements file by running the mkv file through madMeasureHDR
Can you help me with the madmeasure bin file, how we can generate it?
Sorry, if i sound too noob
@@quietvoid
Re: Dolby Vision now possible through MP4 Mux.
That's interesting, I didn't know about reshaping, thanks.quietvoid wrote: ↑Sat Dec 25, 2021 2:12 pmWhen encoding profile 5, the video is encoded with a different colorspace, and is also reshaped from PQ to another custom transfer function.ad329 wrote: ↑Sat Dec 25, 2021 3:45 amFollowing up on this, I think this is correct but trying to figure out why this is the case? It's not the color space conversion, but for some reason the RPU can't be created? Why can't the RPU from a profile 8/7 be put on a profile 5 stream? Does it changed based on the color space or something? @yusescope said something about it here but I don't fully understand why - viewtopic.php?style=6&f=12&t=18602&start=2445#p90215
This reshaping step generates metadata that is specific to that scene/frame.
Without both the original IPT colorspace video AND proper reshaping metadata, there is no way to have a correct profile 5 file.
If you use a different RPU from the one made specifically for the profile 5 video, it would not look correct.
So, does dovi_tool take care of reshaping when a P5 RPU is converted into P8?
-
- Posts: 1
- Joined: Sat Dec 25, 2021 6:13 pm
Re: Dolby Vision now possible through MP4 Mux.
DolbyVision's processing requires an upconversion to at least 14 bits in HDR space which is then mapped down to 12 then finally what the TV can actually manage, so any dv capable set can process it. Profile 8.1? I think it is (SDR BL, never actually seen one) is required to map the Rec. 709 BL up to 17 bits before performing a huge mess of color transformations. Most of the 17 bits is probably to avoid rounding errors propagating through the colorspace transforms, but still... I'd suspect the Rec.709 variant of HLG with profile 8.4 needs to do something similar, but I can't find any solid specs on that and it seems to mostly be a marketing ploy by Apple (editing in any of their software invalidates and removes the RPU), although it was technically allowed by spec for quite a while before they put it out there.ArArdin wrote: ↑Wed Dec 22, 2021 1:34 pmUgoos AM6+ has a 2nd decoder so is able to playback FEl (from dual track mp4) but it's a very buggy player.DolbyVisionFTW wrote: ↑Wed Dec 22, 2021 10:18 amOr is the conclusion that Chinoppo is still the only player that properly support FEL playback?
You may want to ask yourself how many tv's support full 12 bit processing. And then yet, those 12bit colors will be downscaled within max luminance capacity of the screen. TBH, I think that nowadays tv's will not hit enough nits to even support 10 bit to its full brightness.
Similarly most current panels can accept 12bpc 4:4:4 or 4:2:2 over HDMI but as of yet there aren't any hardware decoders that can handle any form of HEVC Main12 that I'm aware of so this mainly applies to generated graphics (games, although none I'm aware of yet) and probably some raw formats of video that can decode in software smoothly given fast enough storage (or player-output DV).
I have nothing to test that with so take it with a grain of salt.
Re: Dolby Vision now possible through MP4 Mux.
Thanks, it workedchros wrote: ↑Sat Dec 25, 2021 5:22 pmThat *. measure* file is the bin (binary) file, I just renamed it to *. binRide_UL wrote: ↑Sat Dec 25, 2021 3:59 pmI'm was just trying to convert a HDR10 movie to DV P6 but got stuck with Step 2chros wrote: ↑Sat Oct 09, 2021 8:44 amprocess:Code: Select all
# run madvr madmeasure on the mkv file # generate RPU from madmeasure bin file dovi_tool.exe generate -j generator_madvr.json --madvr-file l_0201.bin -o RPU_from_madVR.bin # extract hevc video and audio with mkvextract # inject the generated RPU into stream dovi_tool.exe inject-rpu -i video.hevc --rpu-in RPU_from_madVR.bin -o injected_output.hevc # mux together with tsmuxer
Downloaded madVR, installed it & LAVfilters, copied madMeasureHDR to the madVR installation folder and got the .measurements file by running the mkv file through madMeasureHDR
Can you help me with the madmeasure bin file, how we can generate it?
Sorry, if i sound too noob
@@quietvoid
-
- Posts: 4
- Joined: Sun Dec 26, 2021 9:45 pm
Re: Dolby Vision now possible through MP4 Mux.
I wonder if anyone can help,
I have an LG CX, I have tried following several of the steps on here to get a film with DV to play on my ttv but every single time I just get HDR 10 instead.
Tried (movies were gemini man and 1917)
1) Rip to MKV with MakeMKV
2) eac3to titlename.mkv 2: titlename.thd+ac3
Note: titlename should be replaced with the actual name of the MKV
3) Add the MKV and the thd+ac3 track to TSMuxer
4) Remux to TS
Media info shows dolby vision, only audio is ac3, yet only plays in HDR10.
Tried again using this guide.
"1. Make ISO of movie. I have only tested this with Black Panther since that's the only one I own. I will be buying Gladiator this weekend to test out though.
2. Use TS Muxer to open the ISO. Find the correct M2TS file and demux the following files:
A. HEVC1 in 4K (Base layer)
B. HEVC 2 in 1080p (this is the dolby vision enhancement layer)
C. Audio track which you will have to convert to AC3. This is a hard line limitation- you need to use AC3!!!"
Exactly the same, media info shows dolby vision is present in the file, but I only get HDR10 playing.
I have other movie files I downloaded that play dolby vision just fine in mp4, so it's obviously something i'm doing wrong.
I have an LG CX, I have tried following several of the steps on here to get a film with DV to play on my ttv but every single time I just get HDR 10 instead.
Tried (movies were gemini man and 1917)
1) Rip to MKV with MakeMKV
2) eac3to titlename.mkv 2: titlename.thd+ac3
Note: titlename should be replaced with the actual name of the MKV
3) Add the MKV and the thd+ac3 track to TSMuxer
4) Remux to TS
Media info shows dolby vision, only audio is ac3, yet only plays in HDR10.
Tried again using this guide.
"1. Make ISO of movie. I have only tested this with Black Panther since that's the only one I own. I will be buying Gladiator this weekend to test out though.
2. Use TS Muxer to open the ISO. Find the correct M2TS file and demux the following files:
A. HEVC1 in 4K (Base layer)
B. HEVC 2 in 1080p (this is the dolby vision enhancement layer)
C. Audio track which you will have to convert to AC3. This is a hard line limitation- you need to use AC3!!!"
Exactly the same, media info shows dolby vision is present in the file, but I only get HDR10 playing.
I have other movie files I downloaded that play dolby vision just fine in mp4, so it's obviously something i'm doing wrong.
Re: Dolby Vision now possible through MP4 Mux.
Where does decoding HEVC Main12 take place with Dolby Vision? I had the impression that the player decodes two 10 bit HEVC streams and its compiler would create 12 bit YCbCr from the results. Please correct me if I'm wrong.RonRicoSuave wrote: ↑Sat Dec 25, 2021 8:24 pmSimilarly most current panels can accept 12bpc 4:4:4 or 4:2:2 over HDMI but as of yet there aren't any hardware decoders that can handle any form of HEVC Main12 that I'm aware of...
Or I must be unaware of a DV format with a HEVC 12 bit baselayer.
Re: Dolby Vision now possible through MP4 Mux.
Ok Guys,
Please help me out here coz this is driving me nuts.
I am trying to add DV metadata from WEB-DL sources to UHD sources.
I keep getting warning about mismatch lengths.
I have a WEB-DL DV source and a UHD HDR source
What i did are the following steps:
For the WEB-DL file :
c:\Dolby-Vision-Tools\ffmpeg\bin\ffmpeg -y -i z:\temp\DV_WEB-DL.mp4 -an -c:v copy -vbsf hevc_mp4toannexb -f hevc c:\temp\DV_MP4.hevc
For the UHD file :
c:\Dolby-Vision-Tools\ffmpeg\bin\ffmpeg -i "path_to_UHD.mkv" -c:v copy c:\temp\hdr10.hevc
Next Step :
c:\Dolby-Vision-Tools\dovi_tool.exe -m 3 extract-rpu c:\temp\DV_MP4.hevc
After that command i opened up both HEVC files in StaXrip and found in the video comparison an identical frame.
The DV had the particular frame at 3865 and the UHD at 3889
Meaning the UHD frame is higher then the DV so i have to duplicate the frames
This is my json:
{
"duplicate": [
{
"source": 0,
"offset": 0,
"length": 23
}
]
}
After that i did the following command :
c:\Dolby-Vision-Tools\dovi_tool.exe editor -i c:\temp\RPU.bin -j c:\temp\edited.json --rpu-out c:\temp\RPU-edited.bin
Followed by :
c:\Dolby-Vision-Tools\dovi_tool.exe inject-rpu -i c:\temp\HDR10.hevc --rpu-in c:\temp\RPU-edited.bin
I keep getting the following :
Parsing RPU file...
Processing input video for frame order info...
Warning: mismatched lengths. video 201492, RPU 201451
Metadata will be duplicated at the end to match video length
Any ideas what i am doing wrong ?
Thanks in advance
Please help me out here coz this is driving me nuts.
I am trying to add DV metadata from WEB-DL sources to UHD sources.
I keep getting warning about mismatch lengths.
I have a WEB-DL DV source and a UHD HDR source
What i did are the following steps:
For the WEB-DL file :
c:\Dolby-Vision-Tools\ffmpeg\bin\ffmpeg -y -i z:\temp\DV_WEB-DL.mp4 -an -c:v copy -vbsf hevc_mp4toannexb -f hevc c:\temp\DV_MP4.hevc
For the UHD file :
c:\Dolby-Vision-Tools\ffmpeg\bin\ffmpeg -i "path_to_UHD.mkv" -c:v copy c:\temp\hdr10.hevc
Next Step :
c:\Dolby-Vision-Tools\dovi_tool.exe -m 3 extract-rpu c:\temp\DV_MP4.hevc
After that command i opened up both HEVC files in StaXrip and found in the video comparison an identical frame.
The DV had the particular frame at 3865 and the UHD at 3889
Meaning the UHD frame is higher then the DV so i have to duplicate the frames
This is my json:
{
"duplicate": [
{
"source": 0,
"offset": 0,
"length": 23
}
]
}
After that i did the following command :
c:\Dolby-Vision-Tools\dovi_tool.exe editor -i c:\temp\RPU.bin -j c:\temp\edited.json --rpu-out c:\temp\RPU-edited.bin
Followed by :
c:\Dolby-Vision-Tools\dovi_tool.exe inject-rpu -i c:\temp\HDR10.hevc --rpu-in c:\temp\RPU-edited.bin
I keep getting the following :
Parsing RPU file...
Processing input video for frame order info...
Warning: mismatched lengths. video 201492, RPU 201451
Metadata will be duplicated at the end to match video length
Any ideas what i am doing wrong ?
Thanks in advance
-
- Posts: 2086
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
Convert to profile 8 for playback on LG (CX +) oled TVs and then use TSmuxer or the MP4muxer. And If the first audio is TrueHD or DTSHD or DTS, DV won't work, so keep the first audio in AC3 or EC3 (or select it in plex before playback). PGS subtitles will fail to play DV TS as well but external SRT works (internal srt in mp4 works too).
viewtopic.php?f=12&t=18602&start=2970#p96282
As long as the video and the rpu start at the same frame, you can ignore the mismatch at the end(will be the case for almost all the movies).
Sorry for my English.
DoVi_Scripts / DoVi Playback Devices / Movies HDR-DV Plot / Screenshot Comparisons
DoVi_Scripts / DoVi Playback Devices / Movies HDR-DV Plot / Screenshot Comparisons
Re: Dolby Vision now possible through MP4 Mux.
Thanks....but the particular scene is not at the same frame:RESET_9999 wrote: ↑Wed Dec 29, 2021 3:22 pmAs long as the video and the rpu start at the same frame, you can ignore the mismatch at the end(will be the case for almost all the movies).
The DV had the particular frame at 3865 and the UHD at 3889
-
- Posts: 2086
- Joined: Mon Aug 05, 2019 7:12 pm
Re: Dolby Vision now possible through MP4 Mux.
yea, that's what your json fixed, so what remains is a mismatch at the end which you can ignore
Code: Select all
{
"duplicate": [
{
"source": 0,
"offset": 0,
"length": 24
}
]
}
Last edited by RESET_9999 on Wed Dec 29, 2021 10:20 pm, edited 1 time in total.
Sorry for my English.
DoVi_Scripts / DoVi Playback Devices / Movies HDR-DV Plot / Screenshot Comparisons
DoVi_Scripts / DoVi Playback Devices / Movies HDR-DV Plot / Screenshot Comparisons