Re: Dolby Vision now possible through MP4 Mux.
Posted: Mon Oct 25, 2021 2:29 pm
Make that 10 000.mattmarsden wrote: Mon Oct 25, 2021 2:14 pmSorry to keep going on about this but 0.0050 x 1000 = 5 - is 50 definitely correct for the value?
MakeMKV support forum
https://forum.makemkv.com/forum/
Make that 10 000.mattmarsden wrote: Mon Oct 25, 2021 2:14 pmSorry to keep going on about this but 0.0050 x 1000 = 5 - is 50 definitely correct for the value?
Great, thanks - just checking I got it right!quietvoid wrote: Mon Oct 25, 2021 2:29 pmMake that 10 000.mattmarsden wrote: Mon Oct 25, 2021 2:14 pmSorry to keep going on about this but 0.0050 x 1000 = 5 - is 50 definitely correct for the value?
I looked at the guide on avsforum but I am having a little trouble with the installing from the Dolby labs GitHub do you think you could explain the installation process or know of some clear documentation or video that can help? I got as far as devenv mp4muxer_2010.sln /Rebuild but I got 2 errors one of which is a fatal one and I am not even sure I am doing it right in the first place.staknhalo wrote: Sat Oct 23, 2021 6:24 pmI wrote up how this idiot does it here:mattmarsden wrote: Sat Oct 23, 2021 5:46 pmThanks for that. Is there an idiots guide on HDR10+ to DV conversion?quietvoid wrote: Fri Oct 22, 2021 4:16 pm
You need to demux the video first, and then run the script on the HEVC file.
example: python hdr10plus_remove.py -i video.hevc -o processed_file.hevc
https://www.avsforum.com/threads/author ... t-60952335
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Turn HDR10+ metadata into Dolby Vision metadata**
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Command 1: 'hdr10plus_tool extract Video.hevc -o Metadata.json' (Extracts HDR10+ metadata and saves to .json file)
>>Next commands go through Dovi_Tool and v0.5.0 minimum required<<<
Command 2: 'dovi_tool generate -j Extra.json --hdr10plus-json Metadata.json --rpu-out RPUPlus.bin' (combines metadata from edited 'Extra.json' - template is below and you need to do one for every title specifically - and metadata from extracted 'Metadata.json' and combines+converts them into p8 RPU metadata format)
Command 3: 'dovi_tool.exe inject-rpu --input Video.hevc --rpu-in RPUPlus.bin' (Injects HDR10+ generated RPU metadata into HEVC stream turning it into single layer Dolby Vision 8 stream)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Blank Template for 'Extra.json'
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
{
"length": (title specific framelength here without parenthesis),
"level2": [
{
"target_nits": 100
},
{
"target_nits": 600
},
{
"target_nits": 1000
},
{
"target_nits": 2000
}
],
"level6": {
"max_display_mastering_luminance": (title specific metadata info here without parenthesis),
"min_display_mastering_luminance": (title specific metadata info here without parenthesis),
"max_content_light_level": (title specific metadata info here without parenthesis),
"max_frame_average_light_level": (title specific metadata info here without parenthesis)
}
}
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Dolby provides binaries: https://github.com/DolbyLaboratories/dl ... master/binBetaExorcist wrote: Tue Oct 26, 2021 7:17 amI looked at the guide on avsforum but I am having a little trouble with the installing from the Dolby labs GitHub do you think you could explain the installation process or know of some clear documentation or video that can help? I got as far as devenv mp4muxer_2010.sln /Rebuild but I got 2 errors one of which is a fatal one and I am not even sure I am doing it right in the first place.
error 1: 1>..\..\..\src\mp4_muxer.c : error C4335: Mac file format detected: please convert the source file to either DOS or UNIX format
fatal error: 2>LINK : fatal error LNK1104: cannot open file '<path>\dlb_mp4base\make\mp4muxer\windows_amd64\debug\VS2010\libmp4base.lib'
Try running the muxed mkv through MakeMKVTormented12 wrote: Tue Oct 26, 2021 4:26 pm I have a question regarding encoding a file to 1920x1080p and add the Dolby Vision later. Somehow, I don't get the right file after RPU insertion.
I have encoded a Game of Thrones Episode (4K REMUX, which is Dolby Vision, Version 1.0, dvhe.07.06, BL+EL+RPU). I encoded it without cropping, (which I do for every encode, also movies, I just resize it from 3840x2160 to 1920x1080).
It got me an 1080p episode, which is HDR10. I used the following command to change the .mkv file to hevc:
ffmpeg -y -i GOT.S01E01.mkv -an -c:v copy -f hevc GOT.S01E01.hevc
After this, I use the command to extract the RPU from the HEVC with mode 2:
dovi_tool -m 2 extract-rpu GOT.S01E01.hevc, which gives me an RPU.bin, which, I think should be converted to profile 8.
After this, I use the ffmpeg command to change the re-encoded file from .mkv file to hevc.file. I then usethe following command to inject the RPU into the re-encoded HEVC.file:
dovi_tool inject-rpu -i GOT.S01E01.HDR.hevc --rpu-in RPU.bin -o injected_output.hevc
But somehow, I doesn't work for me. It keeps begin SMPTE 2086, HDR10. Dolby Vision won't be visible in the hevc output file. When I mux the hevc.file to .mkv, then it still is only HDR10, and not Dolby Vision.
What is the part where I screw up? I'm doing it somewhere, but I just can't put my finger on it. Or is it a cropping thing? Some help with this would be very appreciated!
Regards,
Tormented12
It worked. It now has the following in MediaInfo:
and when I try to use the Dovi tool I get this message:Exception in thread Thread-5:SIS: 0.0% BL_EL_RPU WRITING: 0.0% (BL AUs: 105 EL AUs: 52)
Traceback (most recent call last):
File "E:\Video\Dolby Vision\v0.0.4_BETA_TEST_FEL_TO_MEL_PLUS_UHDBD_TO_81__PLUS_SKIP_HDR10plus__PLUS_EXPERIM_MUXER_17102020\python-3.7.6.amd64\lib\threading.py", line 926, in _bootstrap_inner
self.run()
File "src\app.py", line 929, in run
self.write(access_unit)
File "src\app.py", line 912, in write
nalu.data.prepend("0x00000001")
AttributeError: 'int' object has no attribute 'prepend'
BL_ANALYSIS: 0.0% EL_ANALYSIS: 0.0% BL_EL_RPU WRITING: 0.0% (BL AUs: 124 EL AUs: 52)
BL_ANALYSIS: 0.0% EL_ANALYSIS: 0.0% BL_EL_RPU WRITING: 0.0% (BL AUs: 515 EL AUs: 502)
I was wondering if anyone knows how to fix this or if there is something else I can use?E:\Video\Dolby Vision\dovi_tool-1.1.3-x86_64-pc-windows-msvc\dist>dovi_tool -m 2 extract-rpu EL_RPU.hevc
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', C:\Users\runneradmin\.cargo\registry\src\github.com-1ecc6299db9ec823\hevc_parser-0.2.0\src\hevc\slice.rs:39:55
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
So I've tried using mp4muxer and I've converted this mkv file:
I don't know. You could try remuxing the file here: viewtopic.php?p=113537#p113537powdeau wrote: Wed Oct 27, 2021 9:22 pmThe mp4 file plays fine on my LG C7 and even the DV logo is displayed. Is it possible it could work or do I just get some sort of fake DV?
Yes! I can see the changes.quietvoid wrote: Wed Oct 27, 2021 10:12 pmI don't know. You could try remuxing the file here: viewtopic.php?p=113537#p113537powdeau wrote: Wed Oct 27, 2021 9:22 pmThe mp4 file plays fine on my LG C7 and even the DV logo is displayed. Is it possible it could work or do I just get some sort of fake DV?
In the same way, if you see changes then it should probably work.
1- I played a 1080p24 file and Plex matched it to 24Hz, confirmed with System X-Ray. HDMI set to 24Hz.RESET_9999 wrote: Wed Oct 27, 2021 10:46 pm What's up with the new Firetv stick? I don't know if it was the same with the older one but here's what I'm noticing:
1- no 24fps support on plex ... 23.976fps is fine
2- if display settings are set to '' AUTO 4k max '' then everything that is not 4k plays in 1080p on plex. (no upscale to 4k )
3- if display settings are set to 2160p 60hz, then 1080p videos are played in 4k but then the framerate match doesn't work anymore on plex
4- display settings ''AUTO 4K max'' , 4k movies on iTunes/appleTV plays in 1080p
5- display settings '' 2160p 60hz'' , DV movies play in HDR10 4K on itunes.
6- frame rate match doesn't work at all on iTunes.
in fact , it looks like only the amazon prime app works properly. I don't have a Netflix account.