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 30th March 2024, 11:45   #241  |  Link
MoonKnight
Registered User
 
Join Date: May 2022
Posts: 6
Hey Kuler

Any reason why we must use balanced algorythm now ? I thought most highlight most details was the best ?
MoonKnight is offline   Reply With Quote
Old 30th March 2024, 13:22   #242  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 275
Quote:
Originally Posted by frandan View Post
for this kind of movies, dovibaker is necessary for basic HDR10 rip too (without DoVi metadata).
Is it correct?
Thanks in advance
The movies that expand brightness requires a player that fully supports FEL P7. If not , you can use the dovi_baker to map the BL brightness to the EL which is what does a Profile 7 player.

For HDR10 playback, this is not required.
__________________
DoVi_Scripts

Last edited by Kuler087; 30th March 2024 at 14:18.
Kuler087 is offline   Reply With Quote
Old 30th March 2024, 13:32   #243  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 275
Quote:
Originally Posted by MoonKnight View Post
Hey Kuler

Any reason why we must use balanced algorythm now ? I thought most highlight most details was the best ?
You can use any tuning you prefer (line 107). I changed the default mode to match Davinci Resolve default. The tunings are user preference and none of them is wrong.

https://professionalsupport.dolby.co...language=en_US
__________________
DoVi_Scripts
Kuler087 is offline   Reply With Quote
Old 30th March 2024, 14:23   #244  |  Link
frandan
Registered User
 
Join Date: Jun 2016
Posts: 13
Quote:
Originally Posted by Kuler087 View Post
The movies that expand brightness requires a player that fully supports FEL P7. If not , you can use the dovi_baker to map the BL brightness to the EL.

For HDR10 playback, this is not required.
Thank You Kuler.
Excuse me but i don't understand a point: If i compare BL only rip (HDR10) and BL+EL rip obtained using Dovibaker but without DoVi metadata injection (i suppose HDR10), do they looks the same on HDR device?
frandan is offline   Reply With Quote
Old 30th March 2024, 14:47   #245  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 275
Quote:
Originally Posted by frandan View Post
do they looks the same on HDR device?
No. if FEL expands the brightness, the baked HDR10 file will look much brighter and possibly clipped depending on your TV capabilities.
__________________
DoVi_Scripts
Kuler087 is offline   Reply With Quote
Old 30th March 2024, 20:08   #246  |  Link
frandan
Registered User
 
Join Date: Jun 2016
Posts: 13
So it should be correct using dovibaker also for "simply" HDR rip , obviously when FEL modifies brightness, or no?
frandan is offline   Reply With Quote
Old 30th March 2024, 22:46   #247  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 275
It depends on your TV capabilities.
If you have a 2000nits+ TV, yes but if you have a 1000nits or less TV, no you will just introduce more tone mapping/clipping.
__________________
DoVi_Scripts
Kuler087 is offline   Reply With Quote
Old 1st April 2024, 06:51   #248  |  Link
TDS
Formally known as .......
 
TDS's Avatar
 
Join Date: Sep 2021
Location: Down Under.
Posts: 1,085
I read on another thread that the latest dovi_tool supports AV1, but looking thru the changelog of older builds, it looks like it might have supported it for some time...

Do you have any plans on using AV1 ??

I have no experience with it, not sure if it's a different way to process a .hevc, or if it's simply AV1 ??
__________________
Long term RipBot264 user.

RipBot264 modded builds..
*new* x264 & x265 addon packs..
TDS is offline   Reply With Quote
Old 1st April 2024, 11:19   #249  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,765
Regarding AV1 and DoVi, is it actually possible to use the original FEL and encoded AV1 to create a working DoVi mux? That would make things very interesting now that there are Android boxes that are very close to handling things properly with CoreELEC.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 1st April 2024, 12:30   #250  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 275
I'm not familiar with the av1 codec and I don't see any documentation on the dovi_tool page... What's the correct file extension? avif? ivf? av1? Does the RPU need to be edited? Does anyone have a sample?

dovi_tool.exe inject-rpu -i D:\1.ivf --rpu-in D:\1.bin -o D:\injected.ivf
Error: Invalid input file type.

Quote:
the original FEL and encoded AV1 to create a working DoVi mux?
I doubt it since the EL would need to be av1 too I suppose and it's already not recommended to re-encode the FEL hevc stream.
__________________
DoVi_Scripts
Kuler087 is offline   Reply With Quote
Old 1st April 2024, 14:36   #251  |  Link
quietvoid
Registered User
 
Join Date: Jan 2019
Location: Canada
Posts: 574
AV1 isn't supported by dovi_tool. Only the internal library can handle AV1 RPUs for use in other software.
__________________
LG C2 OLED | GitHub Projects
quietvoid is offline   Reply With Quote
Old 2nd April 2024, 20:22   #252  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 275
Quote:
Originally Posted by Kuler087 View Post

PS: I found an issue when converting Profile 5 to HDR10 or SDR with avisynthplus+libplacebo, I cannot get the color right and only when I use vapoursynth+libplacebo the output is right. So if someone is converting P5 video, he should update to the latest beta right now(update your tools pack too).

I've tried in staxrip and it's exactly the same issue when you use avisynth. Sorry for not noticing earlier, I rarely convert P5 videos.
Just a comeback on this issue. It turns out that the problem was the avs_libplacebo(2023-06-27) I was using.

https://slow.pics/c/88LnYnGa (ps The comparison has HDR metadata and can be viewed in HDR on browser that supports it like Chrome)

It doesn't matter for the encoding workflows because they now use vapoursynth but it does matter for the screenshots workflow (7-2) when you work with P5 files.

Just replace replace your libplacebo with this one: https://drive.google.com/file/d/1Dgs...usp=drive_link

This means you can use the old script version if you prefer avisynth for frameserver for whatever reason.
__________________
DoVi_Scripts
Kuler087 is offline   Reply With Quote
Old 4th April 2024, 14:53   #253  |  Link
frandan
Registered User
 
Join Date: Jun 2016
Posts: 13
Hi Kuler excuse me but i have another question: i ripped 1000 frames from a movie for testing. Would i inject the rpu referred to this 1000 frames? How can i extract these metadata only for 1000 frames? Can Dovi Scripts help me?

EDIT: I tried with mkvtoolnix with split-parts: Is it a possible way?

Last edited by frandan; 4th April 2024 at 15:01.
frandan is offline   Reply With Quote
Old 4th April 2024, 15:15   #254  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 275
I'm not sure I understand what you're trying to do. When you just want to read the metadata from a specific frame, you just have to extract the whole rpu and then input it in 2-2 which will ask you if you want to check a specific frame.
__________________
DoVi_Scripts
Kuler087 is offline   Reply With Quote
Old 4th April 2024, 15:30   #255  |  Link
frandan
Registered User
 
Join Date: Jun 2016
Posts: 13
Excuse me: What i wrote isn't really comprehensible.
I try to explain better: I ripped 1000 frames from BL (HDR10) trimming with avisynth.
Now i would inject the DoVi metadata in this 1000 frames and i suppose that i should extract dovi metadata for this 1000 frames.
Is it correct?
frandan is offline   Reply With Quote
Old 4th April 2024, 15:37   #256  |  Link
Kuler087
Registered User
 
Kuler087's Avatar
 
Join Date: Aug 2021
Location: Canada
Posts: 275
Inject the metadata in the original/whole file and then split it with mkvtoolnix if you want to keep the RPU in sync.

If you split the first 1000 frames of a video and then inject the original RPU, it will be fine and dovi_tool will remove the extra frames at the end.
But if you split some random 1000 video frames in the middle of a movie, you have to also trim the RPU exactly the same to match the splitted video.
__________________
DoVi_Scripts
Kuler087 is offline   Reply With Quote
Old 4th April 2024, 16:18   #257  |  Link
frandan
Registered User
 
Join Date: Jun 2016
Posts: 13
Thank you again.
My idea was to trim the EL via mkvtoolnix and then i extract the rpu from trimmed EL.
In this way i hoped to do some test without full encoding
I'll do how you suggest or i'll take frames at the beginning of the movie
Bye

Last edited by frandan; 4th April 2024 at 16:35.
frandan is offline   Reply With Quote
Old 8th April 2024, 19:23   #258  |  Link
TheHooligan95
Registered User
 
Join Date: Sep 2017
Posts: 2
I think you're a fantastic person and I wish I could have even a tenth of your knowledge. Thanks for your work, OP. Truly.

For anyone noob like me (I learnt today everything I know about DV), I didn't really understand the installation instructions. Here's what I did that ended up making it work on Windows 11.

1) Created a folder in the root of a different hard drive from C: e.g. D:\doviscripts\
2) Download latest dovi scripts and then dovi scripts beta aswell from the github and put them into the dovitools folder.
3) created a tools folder within dovitools
4) downloaded https://forum.doom9.org/showthread.php?t=183479 and copied the contents of the tools folder inside the tools folder
5) downloaded and installed all things pointed out in the github.
6) copied and pasted all files from all things installed from the github also inside the tools folder, just to be sure
7) added both user and system paths to all things installed from the github, as specified here https://github.com/R3S3t9999/DoVi_Sc...20INSTALLATION (of course, not to the tools folder but to their og folders, and I skipped DEE because you can't download it if you're not in the business of making movies)
8) downloaded and installed justdan96/tsMuxer from his github and put it inside the tools folder


I hope this will come in handy to any other desperate users like me.
TheHooligan95 is offline   Reply With Quote
Old 10th April 2024, 07:26   #259  |  Link
TDS
Formally known as .......
 
TDS's Avatar
 
Join Date: Sep 2021
Location: Down Under.
Posts: 1,085
This seems to be a bit messed up :(

Hi Kuler,

I grabbed this movie earlier today, and was surprised that MediaInfo stated it was a DV encode, but as it's was .mkv, I knew it wouldn't play on my LG, so I quickly ran it thru Mp4 muxer, and it changed completely, and doesn't display either HDR or DV on the LG, the original .mkv didn't display HDR either....what a mess, so I thought I'd share the before & after MediaInfo, info:-

So this is the original .mkv

Code:
Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5@Main
HDR format                               : Dolby Vision, Version 1.0, Profile 8, dvhe.08.06, BL+RPU, no metadata compression
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 2 h 18 min
Width                                    : 3 840 pixels
Height                                   : 1 604 pixels
Display aspect ratio                     : 2.39:1
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Writing library                          : x265 3.5+1-f0c1022b6:[Linux][GCC 7.5.0][64 bit] 10bit
Encoding settings                        : cpuid=1111039 (tl:dr)
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
And then to this after MP4muxer:-

Code:
Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5@Main
Codec ID                                 : hev1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 2 h 18 min
Bit rate                                 : 5 998 kb/s
Maximum bit rate                         : 32.6 Mb/s
Width                                    : 3 840 pixels
Height                                   : 1 608 pixels
Original height                          : 1 604 pixels
Display aspect ratio                     : 2.39:1
Frame rate mode                          : Constant
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.041
Stream size                              : 5.78 GiB (94%)
Writing library                          : x265 3.5+1-f0c1022b6:[Linux][GCC 7.5.0][64 bit] 10bit
Encoding settings                        : cpuid=1111039 (tl:dr)
Default                                  : Yes
Alternate group                          : 1
Encoded date                             : 2024-04-10 05:41:53 UTC
Tagged date                              : 2024-04-10 05:42:11 UTC
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Codec configuration box                  : hvcC
__________________
Long term RipBot264 user.

RipBot264 modded builds..
*new* x264 & x265 addon packs..
TDS is offline   Reply With Quote
Old 10th April 2024, 08:30   #260  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,765
The transfer characteristics is incorrect in both files so it's no wonder the HDR mode is not switched on.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Reply

Tags
batch scripts, dolby vision processing, dovi_scripts

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 01:34.


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