Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#81 | Link |
|
Registered User
Join Date: Aug 2008
Location: Italy
Posts: 51
|
I think there is a bug in the injector, if you open a simple hdr10 file in mkv (and maybe mp4 as well) and then first inject hdr10+ metadata, enabling mux stream in mkv, and then reopen the created file in the injector, injecting dolby vision 8 (8.1) metadata, and enabling mux stream in mkv again, it fails.
And vice versa, injecting dolby vision metadata first and then hdr10+, with mux stream in mkv enabled it fails. It works instead without enabling mux stream in mkv. My mkv test file was 10 seconds long and had a hevc track, an ac3 audio track and a jpg attachment. I think the error occurs because the injector treats the ac3 audio track as if it were the video track. Attached log Code:
powered by quietvoids tools Copyright (c) 2021 DonaldFaQ
====================================
Dolby Vision Tool INJECTOR
- HDR10+ INJECTOR -
====================================
== SETTINGS ============================================================================================================
Mux Stream in MKV : [YES]
== INJECTING ===========================================================================================================
ATTENTION! You need many HDD Space for this operation.
Please wait. Extracting the Video Layer ...
Extracting track 0 with the CodecID 'A_AC3' to the file 'E:\Dolby Vision Test\dolby_[TEMP].hevc'. Container format: Dolby Digital (AC-3)
Progress: 100%
Done.
Please wait. Injecting the HDR10+ Metadata into stream...
Processing input video for frame order info...
Warning: mismatched lengths. video 0, metadata 229
Metadata will be skipped at the end to match video length
Computing frame indices..
Rewriting file with interleaved HDR10+ NALUs..
Done.
Deleting Temp File - Done.
Please wait. Injecting Videostream into MKV...
Warning: 'E:\Dolby Vision Test\dolby_[HDR10+ INJECTED].hevc' track 0: This audio track contains 859 bytes of invalid data which were skipped before timestamp 00:00:00.000000000. The audio/video synchronization may have been lost.
Warning: 'E:\Dolby Vision Test\dolby_[HDR10+ INJECTED].hevc' track 0: This audio track contains 1 byte of invalid data which was skipped before timestamp 00:00:03.456007968. The audio/video synchronization may have been lost.
Done.
Please wait. Cleaning and Moving files ...
Deleting Temp File - Done.
All Operations successful.
== EXIT ================================================================================================================
Press [ENTER] to Exit.
Code:
General
Unique ID : 263580156875075198637991821584341121842 (0xC64BB112698BD4E74B26AD2DB5CBBB32)
Complete name : E:\Downloads\Dolby Vision Test\dolby_[HDR10+ INJECTED].mkv
Format : Matroska
Format version : Version 4
File size : 1.33 MiB
Duration : 9 s 632 ms
Overall bit rate mode : Constant
Overall bit rate : 1 159 kb/s
Encoded date : UTC 2022-02-10 15:58:37
Writing application : mkvmerge v65.0.0 ('Too Much') 64-bit
Writing library : libebml v1.4.2 + libmatroska v1.6.4
Cover : Yes
Attachments : cover.jpg
Audio #1
ID : 1
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 9 s 632 ms
Bit rate mode : Constant
Bit rate : 640 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 752 KiB (55%)
Language : Italian
Service kind : Complete Main
Default : Yes
Forced : No
Audio #2
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 7 s 328 ms
Bit rate mode : Constant
Bit rate : 640 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 572 KiB (42%)
Service kind : Complete Main
Default : Yes
Forced : No
Last edited by cool advertise; 10th February 2022 at 17:47. Reason: log attached |
|
|
|
|
|
#82 | Link | |
|
QfG Group Germany
Join Date: Oct 2018
Location: Germany
Posts: 278
|
Quote:
Please Remux the container first and check if the first Track [0] is an Video Track. Is that file the result of my tool?
__________________
|
|
|
|
|
|
|
#83 | Link |
|
Registered User
Join Date: Aug 2008
Location: Italy
Posts: 51
|
Yes the final file is obtained using your tool, the original file was an mkv and had a hevc video track, an ac3 audio track, and a jpg attachment.
After injecting the dolby vision metadata, I get an mkv with a video track, an audio track and a jpg attachment. mediainfo log Code:
General
Unique ID : 142179199423562187515235590156012874399 (0x6AF6B7BF5FB93FE33E32113790C5EA9F)
Complete name : E:\Downloads\Dolby Vision Test\dolby_[DV INJECTED].mkv
Format : Matroska
Format version : Version 4
File size : 12.3 MiB
Duration : 9 s 632 ms
Overall bit rate : 10.7 Mb/s
Encoded date : UTC 2022-02-09 21:21:03
Writing application : mkvmerge v65.0.0 ('Too Much') 64-bit
Writing library : libebml v1.4.2 + libmatroska v1.6.4
Cover : Yes
Attachments : cover.jpg
Video
ID : 2
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@Main
HDR format : Dolby Vision, Version 1.0, dvhe.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2086, HDR10 compatible
Codec ID : V_MPEGH/ISO/HEVC
Duration : 9 s 551 ms
Bit rate : 10.1 Mb/s
Width : 3 840 pixels
Height : 2 076 pixels
Display aspect ratio : 1.85:1
Frame rate mode : Constant
Frame rate : 23.976 (23976/1000) FPS
Original 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.053
Stream size : 11.5 MiB (94%)
Writing library : x265 3.5+1-ce882936d:[Windows][MSVC 1928][64 bit] 10bit
Encoding settings : hidden
Default : Yes
Forced : No
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.0050 cd/m2, max: 4000 cd/m2
Maximum Content Light Level : 1000 cd/m2
Maximum Frame-Average Light Level : 755 cd/m2
Audio
ID : 1
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 9 s 632 ms
Bit rate mode : Constant
Bit rate : 640 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 752 KiB (6%)
Language : Italian
Service kind : Complete Main
Default : Yes
Forced : No
And vice versa, injecting first hdr10+ and then dolby vision i get the same result. After the first injection the file I get is correct, but as you can see from the mediainfo log, the video track has id 2, the audio track has id 1. So I think your tool at this point makes the error and the bug occurs at the second injection. Last edited by cool advertise; 11th February 2022 at 22:44. |
|
|
|
|
|
#85 | Link | |
|
Registered User
Join Date: Aug 2008
Location: Italy
Posts: 51
|
Quote:
And again, if I first inject hdr10+ metadata by enabling mux stream in mkv, the final file you get from your tool is still an mkv with video track ID 2 and audio track ID 1. |
|
|
|
|
|
|
#86 | Link |
|
QfG Group Germany
Join Date: Oct 2018
Location: Germany
Posts: 278
|
Oh my God i fixed the bug only in the DV Area... Give me few seconds i will upload a fixed version of 0.37c
EDIT: Done! Please reupload v0.37c and test again.
__________________
Last edited by -QfG-; 12th February 2022 at 08:19. |
|
|
|
|
|
#87 | Link | |
|
Registered User
Join Date: Aug 2008
Location: Italy
Posts: 51
|
Quote:
Thanks Last edited by cool advertise; 12th February 2022 at 09:00. |
|
|
|
|
|
|
#88 | Link |
|
QfG Group Germany
Join Date: Oct 2018
Location: Germany
Posts: 278
|
-v0.38
*Updated MP4Box.exe. *Added MP4 Mux Support in Injector (only if Input file is MP4 und only for Profile8). *Added DDVT REMOVER.cmd (Remove HDR10+ and/or DoVi Metadata from MP4/MKV Container) *Minor Bugfixes
__________________
|
|
|
|
|
|
#92 | Link |
|
Registered User
Join Date: Feb 2022
Posts: 11
|
Registered just to say thank you for this great tool - this has been fantastic to use, I really appreciate it and the HDR10+ full inclusion is especially much appreciated!
There's no MP4 muxer tool like this yet right? ffmpeg added support for lossless audio tracks now, so I wonder if a MP4 muxer would now be the ultimate solution for DV encodes. (I can't get Visual Studio 2010 to install on my machine so I can't try out dlb_mp4base.) |
|
|
|
|
|
#98 | Link |
|
Registered User
Join Date: Jan 2019
Location: Canada
Posts: 583
|
dovi_tool requires complete L6 metadata, there is no default used when the JSON is missing "level6".
A decent default might be MDL 1000/1, with MaxCLL/MaxFALL set to 0. It is up to the user (or in this case the script) to handle this case.
__________________
LG C2 OLED | GitHub Projects |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|