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.

 

Go Back   Doom9's Forum > Video Encoding > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 9th February 2022, 19:23   #81  |  Link
cool advertise
Registered User
 
cool advertise's Avatar
 
Join Date: Aug 2008
Location: Italy
Posts: 46
Quote:
Originally Posted by -QfG- View Post
DDVT Tool
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.
mediainfo of final file
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
cool advertise is offline   Reply With Quote
Old 11th February 2022, 20:44   #82  |  Link
-QfG-
QfG Group Germany
 
-QfG-'s Avatar
 
Join Date: Oct 2018
Location: Germany
Posts: 245
Quote:
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.
Why is the first Track [0] an Audio Track?
Please Remux the container first and check if the first Track [0] is an Video Track.

Is that file the result of my tool?
-QfG- is offline   Reply With Quote
Old 11th February 2022, 21:14   #83  |  Link
cool advertise
Registered User
 
cool advertise's Avatar
 
Join Date: Aug 2008
Location: Italy
Posts: 46
Quote:
Originally Posted by -QfG- View Post

Is that file the result of my tool?
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
After opening the latter in the injector, to inject hdr10+ I get 2 ac3 audio tracks contained in one mkv file.
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.
cool advertise is offline   Reply With Quote
Old 12th February 2022, 07:14   #84  |  Link
-QfG-
QfG Group Germany
 
-QfG-'s Avatar
 
Join Date: Oct 2018
Location: Germany
Posts: 245
Quote:
the video track has id 2
-v0.37c
*Fixed wrong ID by video track if muxing with INJECTOR
*Updated FFMPEG to v5.0
-QfG- is offline   Reply With Quote
Old 12th February 2022, 07:39   #85  |  Link
cool advertise
Registered User
 
cool advertise's Avatar
 
Join Date: Aug 2008
Location: Italy
Posts: 46
Quote:
Originally Posted by -QfG- View Post
-v0.37c
*Fixed wrong ID by video track if muxing with INJECTOR
*Updated FFMPEG to v5.0
There are still bugs, if I first inject dolby vision metadata by enabling mux stream in mkv, the ids are correct, but if I later open the file obtained in the injector to inject hdr10+ metadata, 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.
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.
cool advertise is offline   Reply With Quote
Old 12th February 2022, 08:03   #86  |  Link
-QfG-
QfG Group Germany
 
-QfG-'s Avatar
 
Join Date: Oct 2018
Location: Germany
Posts: 245
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.
-QfG- is offline   Reply With Quote
Old 12th February 2022, 08:27   #87  |  Link
cool advertise
Registered User
 
cool advertise's Avatar
 
Join Date: Aug 2008
Location: Italy
Posts: 46
Quote:
Originally Posted by -QfG- View Post
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.
Now it works, at least for sure with mkv.
Thanks

Last edited by cool advertise; 12th February 2022 at 09:00.
cool advertise is offline   Reply With Quote
Old 12th February 2022, 20:51   #88  |  Link
-QfG-
QfG Group Germany
 
-QfG-'s Avatar
 
Join Date: Oct 2018
Location: Germany
Posts: 245
-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
-QfG- is offline   Reply With Quote
Old 15th February 2022, 16:32   #89  |  Link
Balling
Registered User
 
Join Date: Feb 2020
Posts: 541
Dilby Vision IPTPQc2 decoder now works in mpv. Including mmr and poly reshaping.
Balling is offline   Reply With Quote
Old 17th February 2022, 09:36   #90  |  Link
von Suppé
Registered User
 
von Suppé's Avatar
 
Join Date: Dec 2013
Posts: 629
Is it possible to convert RPU profile of an already extracted RPU.bin file? Or does converting need to take place during demux?
Forgive my ignorance.
von Suppé is offline   Reply With Quote
Old 18th February 2022, 23:54   #91  |  Link
zzreel
Registered User
 
Join Date: Feb 2022
Posts: 11
Quote:
Originally Posted by von Suppé View Post
Is it possible to convert RPU profile of an already extracted RPU.bin file? Or does converting need to take place during demux?
Forgive my ignorance.
I was able to drag and drop the .hevc and replace the RPU with the extract converted one. But for some reason it doesn't work on mkvs directly.
zzreel is offline   Reply With Quote
Old 18th February 2022, 23:55   #92  |  Link
zzreel
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.)
zzreel is offline   Reply With Quote
Old 19th February 2022, 10:41   #93  |  Link
GPhil
Registered User
 
Join Date: Mar 2011
Posts: 4
Hey folks,

tried to convert HDR10+ to DV with the newest version, but the following error appeared:



What's going wrong?

Best regards
GPhil
GPhil is offline   Reply With Quote
Old 19th February 2022, 11:20   #94  |  Link
Hackerjac
Registered User
 
Join Date: Feb 2004
Posts: 44
I ran into the same problem a couple of days ago, it was caursed by max_content_light_level & max_frame_average_light_level info was missing
Hackerjac is offline   Reply With Quote
Old 19th February 2022, 14:21   #95  |  Link
GPhil
Registered User
 
Join Date: Mar 2011
Posts: 4
And is there a way to fix it?
GPhil is offline   Reply With Quote
Old 19th February 2022, 15:21   #96  |  Link
-QfG-
QfG Group Germany
 
-QfG-'s Avatar
 
Join Date: Oct 2018
Location: Germany
Posts: 245
This happens by HDR10+ Profile B streams. I think because missing HDR values like Max/Min CLL.
-QfG- is offline   Reply With Quote
Old 19th February 2022, 16:53   #97  |  Link
von Suppé
Registered User
 
von Suppé's Avatar
 
Join Date: Dec 2013
Posts: 629
Quote:
Originally Posted by -QfG- View Post
This happens by HDR10+ Profile B streams.
HDR10+ Profile B from BL movie Jaws seems to work like a charm. No errors, putting out RPU profile 8.
von Suppé is offline   Reply With Quote
Old 19th February 2022, 17:01   #98  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Location: Canada
Posts: 574
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
quietvoid is offline   Reply With Quote
Old 19th February 2022, 19:29   #99  |  Link
-QfG-
QfG Group Germany
 
-QfG-'s Avatar
 
Join Date: Oct 2018
Location: Germany
Posts: 245
Thx quietvoid, i take a look how i can handle this problem in the next update.
-QfG- is offline   Reply With Quote
Old 20th February 2022, 09:28   #100  |  Link
-QfG-
QfG Group Germany
 
-QfG-'s Avatar
 
Join Date: Oct 2018
Location: Germany
Posts: 245
-v0.39
*Fixed HDR10+ converting without HDR metadata strings.
-QfG- is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:00.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.