ragico wrote: ↑Sat Jul 24, 2021 11:45 am
Hope that @quietvoid will make an easy tool to be used by ignorant people like me as @Yusesope did for his tools.
Thank you.
Perhaps this real content example will help you understand how to do it:
E.G. Disney+ movie Mulan DV web-dl metadata injected into bluray remux
1- extract HDR10 and DV hevc stream (tsmuxer, ffmpeg, mkvextract etc..)
2- extract and convert profile 5 RPU to 8 with this command:
Code: Select all
dovi_tool.exe -m 3 extract-rpu DV.hevc
3- Sync/edit the rpu to match the HDR10 stream.
For this movie, you have to remove 24 frames before the RPU
and add 70 frames at the end
EDIT: tool updated, no more needed to match the framecount. RPU still has to start at the same frame as the bluray remux.
so the JSON file to remove 24 frames will look like this
*** how to find the frame difference
here
if you had to add 23 frames:
Code: Select all
{
"duplicate": [
{
"source": 0,
"offset": 0,
"length": 23
}
]
}
4- once the JSON is done, you edit the RPU with this cmd:
Code: Select all
dovi_tool.exe editor -i RPU.bin -j edited.json --rpu-out RPU-edited.bin
5- inject the edited RPU into the HDR10 hevc stream with this cmd:
Code: Select all
dovi_tool.exe inject-rpu -i HDR10.hevc --rpu-in RPU-edited.bin
6- that's it, the injected_output.hevc contains Profile 8 DV metadata
Code: Select all
Format : MPEG-TS
File size : 50.9 GiB
Duration : 1 h 55 min
Overall bit rate mode : Variable
Overall bit rate : 63.3 Mb/s
Maximum Overall bit rate : 35.5 Mb/s
Video
ID : 4117 (0x1015)
Menu ID : 1 (0x1)
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : Dolby Vision, Version 1.0, dvhe.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2086, HDR10 compatible
Codec ID : 36
Duration : 1 h 55 min
Bit rate : 58.9 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.296
Stream size : 47.4 GiB (93%)
Writing library : ATEME Titan File 3.9.6 (4.9.6.2)
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : Display P3
Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2
Audio #1
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : MLP FBA AC-3 16-ch
Format/Info : Meridian Lossless Packing FBA with 16-channel presentation
Commercial name : Dolby TrueHD with Dolby Atmos
Muxing mode : Stream extension
Codec ID : 131
Duration : 1 h 55 min
Bit rate mode : Variable
Bit rate : 640 kb/s
Maximum bit rate : 8 742 kb/s
Channel(s) : 8 channels
Channel layout : L R C LFE Ls Rs Lb Rb
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossless
Stream size : 527 MiB (1%)
Service kind : Complete Main
Number of dynamic objects : 13
Bed channel count : 1 channel
Bed channel configuration : LFE