Log in

View Full Version : [DoVi_Scripts] Multi-Function Scripts for Dolby Vision processing and a lot more...


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 [13] 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42

Vymrr
18th August 2024, 07:22
Hello. How do I find out if my TV supports CM4.0?

guest
18th August 2024, 07:35
Hello. How do I find out if my TV supports CM4.0?

Unless it mentions it in your user manual...

Maybe you might have to do a sample of both, and see what your TV does with it.

If it's reasonably new, I'd say it will support CM4.0.

What brand & model is your TV ??

Vymrr
18th August 2024, 08:00
Unless it mentions it in your user manual...

Maybe you might have to do a sample of both, and see what your TV does with it.

If it's reasonably new, I'd say it will support CM4.0.

What brand & model is your TV ??

Hisense U8H (non US version)

guest
18th August 2024, 10:46
Hisense U8H (non US version)

I was able to get the specs on this....is it a 75" ??

It doesn't mention anything about that, but I would think that it will be OK with CM4.0, but like I said, try a sample of each, and test for yourself, it won't take long, and you'll know for sure :)

You can easily create a 5 minute chunk of a movie, and process it both ways.

Good luck.

Vymrr
18th August 2024, 10:56
I was able to get the specs on this....is it a 75" ??

It doesn't mention anything about that, but I would think that it will be OK with CM4.0, but like I said, try a sample of each, and test for yourself, it won't take long, and you'll know for sure :)

You can easily create a 5 minute chunk of a movie, and process it both ways.

Good luck.

it's a 65inch. Alright thanks :thanks:

Kuler087
18th August 2024, 12:28
But you said this, "P5 encoding from scratch requires the proprietary Dolby engine,"

You can with Resolve and the custom edid I gave you.

Hello. How do I find out if my TV supports CM4.0?

All the TVs made after 2019 should support it. You can try the cmv4.0 test files here: https://drive.google.com/drive/u/1/folders/1nMz95KqgkO95EDGrYhrk-Ifx6vRYDEfs

ReciprocalUniverse
18th August 2024, 19:07
You can with Resolve and the custom edid I gave you.

My only serious reason for wanting to try P5 was to see if there was *any* profile that would get 8K DV working in the LG Z3.

Of the files you offered, unfortunately, none worked on the LG and only one would play on his Mac (p8.1.HDR10plus.8K DS_NEW_mp4box).

He did say that a file I created in P8.1 played on the Z3 in HDR10. My assumption prior to that was that standalone HDR10 would be playable anyway, but perhaps not. Does the LG need HDR10 to be the base layer in a DV profile to play?

Edit: It's an LG Z2, not 3,

Kuler087
19th August 2024, 16:40
unfortunately, none worked on the LG

I'm surprised that even the files encoded/muxed in Davinci Resolve didn't work.

ReciprocalUniverse
19th August 2024, 17:35
I'm surprised that even the files encoded/muxed in Davinci Resolve didn't work.

Just not 8K files. Seems to be a failing of the tv, not your files. Played nicely in 8K HDR10+ on mine.

ReciprocalUniverse
19th August 2024, 18:21
P5 files obviously don't play on Samsung.

guest
21st August 2024, 01:52
I've been doing a bit of "research", and there must be a fairly simple explanation why nobody can get 8K DV to work (yet) on LG Z2 (3), I wonder if it needs different settings ???

Chipset-based 8K TV
• dvhe.05.12
• dvhe.08.12
• dvhe.09.05

Dolby Vision 8.4 Profile

Level Maximum pixel rate resolution at frame rate Maximum bit rates
ID

11 995,328,000 7680 7680 × 4320 @ 30 60 240
12 1,990,656,000 7680 7680 × 4320 @ 60 120 480
13 3,981,312,000 7680 7680 × 4320 @ 120 240 800

ReciprocalUniverse
21st August 2024, 03:01
We know that dvhe.08.12 works in 4K, and that 8K did not, even after lowering 8K bitrate to 30 Mbps, except HDR10 it did. If you have a 8.4 profile to try in 8K, we will. My theory has been tv is not supporting 8K DV in any flavor.

guest
21st August 2024, 03:08
We know that dvhe.08.12 works in 4K, and that 8K did not, even after lowering 8K bitrate to 30 Mbps, except HDR10 it did. If you have a 8.4 profile to try in 8K, we will. My theory has been tv is not supporting 8K DV in any flavor.

I looked up the spec's on the Z2, and it states that Dolby Vision IS supported, but that's ALL it says :(

Not sure how to create an 8.4, that's something that Kuler would have to comment on.

You might be able to do something with Resolve, and inject the DV metadata into "something"

I downloaded an 8K clip off YouTube earlier today, but it was encoded with AV1, as an mp4, but of course I don't have an 8K LG TV.

ReciprocalUniverse
21st August 2024, 03:47
I looked up the spec's on the Z2, and it states that Dolby Vision IS supported, but that's ALL it says :(

Not sure how to create an 8.4, that's something that Kuler would have to comment on.

You might be able to do something with Resolve, and inject the DV metadata into "something"

I downloaded an 8K clip off YouTube earlier today, but it was encoded with AV1, as an mp4, but of course I don't have an 8K LG TV.

YouTube DV AV1 (nor VP9) is not playing in DV on his Z2 nor my Hisense U8. That's in 4K of course. You found one that does? Would like to have the link to try.

guest
21st August 2024, 04:05
YouTube DV AV1 (nor VP9) is not playing in DV on his Z2 nor my Hisense U8. That's in 4K of course. You found one that does? Would like to have the link to try.

Have you searched for 8K DV clips on YouTube from your (your friends) TV's to see how they play ??

Here's a link to something that may help:-

https://www.youtube.com/watch?v=QqI9eKQnFL4

ReciprocalUniverse
21st August 2024, 04:20
We haven't found any clips streamed in DV by YouTube. They play fine in regular HDR10 and even 8K. By DV I mean it's got to turn on the Dolby Vision icon on the tv set, not just whatever badge the YouTuber sticks on his video saying Dolby Vision. I think there is confusion with people seeing a DV badge added by the uploader versus actually turning on the tv's own icon or indicator light, whatever. My understanding remains that YouTube does not stream DV. I will try your link though.

guest
21st August 2024, 04:25
We haven't found any clips streamed in DV by YouTube. They play fine in regular HDR10 and even 8K. By DV I mean it's got to turn on the Dolby Vision icon on the tv set, not just whatever badge the YouTuber sticks on his video saying Dolby Vision. I think there is confusion with people seeing a DV badge added by the uploader versus actually turning on the tv's own icon or indicator light, whatever. My understanding remains that YouTube does not stream DV. I will try your link though.

I agree, you've gotta see that Dolby Vision icon on the tv set, that's for sure.

ReciprocalUniverse
21st August 2024, 04:55
Have you searched for 8K DV clips on YouTube from your (your friends) TV's to see how they play ??

Here's a link to something that may help:-

https://www.youtube.com/watch?v=QqI9eKQnFL4

That link played in 8K but not even HDR10, never mind DV.

I found one here that plays in 8K HDR10 on my Samsung.
https://youtu.be/7PIji8OubXU?si=G3jZr5wBhg_pc6Pa

I have to go in the other room where my U8 is to see if it plays in actual DV (in 4K). Will report back.

guest
21st August 2024, 05:08
That link played in 8K but not even HDR10, never mind DV.

I found one here that plays in 8K HDR10 on my Samsung.
https://youtu.be/7PIji8OubXU?si=G3jZr5wBhg_pc6Pa

I have to go in the other room where my U8 is to see if it plays in actual DV (in 4K). Will report back.

That clip was only available (to download & play) in 2160p/4K @ 60fps, you need at least 4320p/8K @ whatever fps !!!

Did it actually display @ 8K ??

here's another:- choose to play it in 4320p !!!

https://www.youtube.com/watch?v=vIN9Q1Slk0w

ReciprocalUniverse
21st August 2024, 05:34
[QUOTE=TDS;2005861]That clip was only available (to download & play) in 2160p/4K @ 60fps, you need at least 4320p/8K @ whatever fps !!!

Did it actually display @ 8K ??

Yes, it streamed in 7680 x 4320 @ 60fps AV1 smpte2084/bt2020
...but not Dolby Vision.

120 fps is just the camera frame rate it was shot at, slowed to 60 in post. YouTube doesn't stream higher than 60, at least not at 8K. And there's no tv that supports native 8K 120 playback either.

I don't know about downloading from YouTube, never tried, just streaming.

ReciprocalUniverse
21st August 2024, 05:42
here's another:- choose to play it in 4320p !!!

https://www.youtube.com/watch?v=vIN9Q1Slk0w

This one streamed in 8K SDR, no HDR.

guest
21st August 2024, 05:45
That clip was only available (to download & play) in 2160p/4K @ 60fps, you need at least 4320p/8K @ whatever fps !!!

Did it actually display @ 8K ??

Yes, it streamed in 7680 x 4320 @ 60fps AV1 smpte2084/bt2020
...but not Dolby Vision.

120 fps is just the camera frame rate it was shot at, slowed to 60 in post. YouTube doesn't stream higher than 60, at least not at 8K. And there's no tv that supports native 8K 120 playback either.

I don't know about downloading from YouTube, never tried, just streaming.

It would be nice if someone posted some "proper" demo's (not YouTube), the first time I ever saw the Dolby Vision icon was when I downloaded a DV demo that was a .ts.....seeing that icon for the first time put a huge smile on my face.

I use Internet Download Manager to download off YouTube.

ReciprocalUniverse
21st August 2024, 05:58
It would be nice if someone posted some "proper" demo's (not YouTube), the first time I ever saw the Dolby Vision icon was when I downloaded a DV demo that was a .ts.....seeing that icon for the first time put a huge smile on my face.

I use Internet Download Manager to download off YouTube.

So if IDM is giving you the native file uploaded to YouTube, it may very well contain compliant DV metadata, but what YouTube streams does not.

That was a conversation I had with my pal, he objects to all these YT videos claimed to be DV, but if they really are DV and it's YT that's not streaming DV, shouldn't YT have an obligation to disclose since they are re-encoding them? Afterall, the uploader would not be the one misrepresenting the file.

guest
21st August 2024, 06:06
So if IDM is giving you the native file uploaded to YouTube, it may very well contain compliant DV metadata, but what YouTube streams does not.

That was a conversation I had with my pal, he objects to all these YT videos claimed to be DV, but if they really are DV and it's YT that's not streaming DV, shouldn't YT have an obligation to disclose since they are re-encoding them? Afterall, the uploader would not be the one misrepresenting the file.

I'm not sure if it gives you that access...

Not being someone that uploads ANYTHING to YT, from what I've heard, YT WILL change anything that doesn't follow the "rules".

So I agree with your buddy, just because it says it is, doesn't mean a thing :(

I mean you might be able to download something that's close to what you want, and re-process it...

For example, I download quite a few train videos from Norway, etc, and re-process them to play a LOT faster, and with no ads :)

I know that you can play YT @ 2x, but you still get the ad's and occasionally buffering in high res.

Vymrr
21st August 2024, 14:41
I tried running your test files but somehow my ugoos am6b+ (running coreelec) is playing them as SDR and HDR content only? I have no issues playing normal DV movies as DV, only your files.

You can with Resolve and the custom edid I gave you.



All the TVs made after 2019 should support it. You can try the cmv4.0 test files here: https://drive.google.com/drive/u/1/folders/1nMz95KqgkO95EDGrYhrk-Ifx6vRYDEfs

Kuler087
21st August 2024, 14:51
I tried running your test files but somehow my ugoos am6b+ (running coreelec) is playing them as SDR and HDR content only? I have no issues playing normal DV movies as DV, only your files.

works fine on mine

wyup
21st August 2024, 15:49
In 8-2-2 (Encode DV to SDR), it would be nice to preview/compare different analyse tunings: balanced, more/most highlights, less/least-highlights and legacy, to choose the best looking SDR for the user.

In 3-1 (DoVi MAKER from HDR10, Dolby Algorythm), something similar would be desired aswell to estimate how DV is going to behave when doing the interpolation for the tv capability. I.e: If my DV-enabled tv has 400 nits of brightness for HDR and the content is graded at 1,000 nits, depending on the chosen analyse tuning, the final image interpolated from the 100-nit mandatory trim would be different.

Also, is it possible to choose how many DV trims to generate? Ie: 100, 400, 600, 1000.
And finally, it would be nice to choose desired trim encoding for HDR10. Ie: convert a native HDR10 4,000 movie to a 1,000, 600 or 400 one, to get better tonemapping than a non-enabled DV tv does.

Thanks for the good work.

Kuler087
21st August 2024, 16:51
In 8-2-2 (Encode DV to SDR), it would be nice to preview/compare different analyse tunings: balanced, more/most highlights, less/least-highlights and legacy, to choose the best looking SDR for the user.
In 3-1 (DoVi MAKER from HDR10, Dolby Algorythm), something similar would be desired aswell to estimate how DV is going to behave when doing the interpolation for the tv capability. I.e: If my DV-enabled tv has 400 nits of brightness for HDR and the content is graded at 1,000 nits, depending on the chosen analyse tuning, the final image interpolated from the 100-nit mandatory trim would be different.

I guess you meant 8-2-4 because 8-2-2 use libplacebo for the SDR tonemapping.

The analysis tunings are filtering that Dolby applies during the metadata creation so you cannot edit it when the metadata has been exported/delivered. The only way to edit/preview the tuning is within Resolve (or whatever grading software you use) during the grading process.
You can use different tunings in the same timeline and if you hover the metadata, it will tell you the tuning used for this particular shot.

https://i.ibb.co/c1xqZNz/Capture-d-cran-2024-08-21-114351.png




Also, is it possible to choose how many DV trims to generate? Ie: 100, 400, 600, 1000

No, you need a DV license for that.
In a cmv4.0 workflow, even if you don't do any manual trim, the dolby system will auto generate L2 at three targets: 100-600-1000nits
In a cmv2.9 workflow, if you don't do trims, the system will not generate any.

You can remove trims with the metafier though. workflow 2-6

And finally, it would be nice to choose desired trim encoding to HDR10. Ie: convert a native HDR10 4,000 movie to a 1,000, 600 or 400 one, to get better tonemapping than a non-enabled DV tv does.


you can already do that with 8-2-4. You can deliver the 48-100-300-600-1000-2000nits trim even if not present in the metadata. When not present, the desired target is created by extrapolating the existing trims.

Vymrr
21st August 2024, 18:22
works fine on mine

I got it working, turned out DV option in settings was turned off when I played your files.. What are the most obvious clips that would show my TV supports CM4? Maybe it's my eyes, but I kind of found it hard to differentiate for the real content clips. For the test files, are all of them CM4.0 ? I can see differences in brightness for the L8 clips at various nits.

Kuler087
21st August 2024, 18:45
When cmv4.0 works, you will see brightness changes when the metadata changes.


Example:

https://i.ibb.co/zG1xQTX/Application-Frame-Host-COL6uocd4-G.gif

ReciprocalUniverse
21st August 2024, 20:16
Kuler, few questions here:

1.) When or why would P5.0 be preferred over P8.1? I understand it's proprietary, differs because of PQ with shaping and IPT-PQ-C2 matrix. Is it better generally or else when or why would it be recommended?

2.) With Resolve Studio, are you monitoring HDR with one of the Decklink cards or are you monitoring with the Windows GPU? The reason I ask is because of the quantity of variations of encoded files in your Drive library. With each change of DV metadata are you having to encode a file to see the result of the change? And yes, they all do play for me on my Hisense U8.

3.) Before you encode HEVC or export an intermediate from Resolve with IPT-PQ-C2, are you able to live monitor this color matrix?

Kuler087
21st August 2024, 20:35
1- 10bit DV P5 is more efficient than HDR10/P8 when it comes from a 12bit master.

https://i.ibb.co/ckt87KJ/p5-itp-colorspace.png


2- Yes, I monitor HDR with my decklink card. I don't think the HDR preview in Resolve is accurate (too dark). Most of the rpu test file in my GD are generated with dovi_tool. You can generate any p8.1 rpu with a json config, and then I use my script DEE (8-2-6) to encode the profile 5 version.
For example, this is the json config I used for my latest FEL vs BL test file. (https://www.youtube.com/watch?v=iKUf2GpqoeU) BTW, if this test file doesn't convince one to get a proper FEL P7 player, nothing will.
https://justpaste.it/3p8rw
D:\DoVi_Scripts\tools\dovi_tool.exe generate -j D:\config.json -o D:\P8_generated.bin



3- No, DV tunneling requires the very expensive decklink card but DV tunneling is pretty much useless. You can see the DV mapping for any target on your HDR mastering monitor and make all the adjustments to the trims. DV is graded in HDR and tunneling is mostly for previewing the final product on a consumer TV. You should never make any change to your trim or grade based on what you see on a consumer TV, always make change according to what you see on your mastering monitor.
trims / master preview example: https://slow.pics/c/cTDiL8Mn

Vymrr
22nd August 2024, 06:33
When cmv4.0 works, you will see brightness changes when the metadata changes.


Example:

https://i.ibb.co/zG1xQTX/Application-Frame-Host-COL6uocd4-G.gif

Yes I got that when the L8 slope number changes. Thanks!

Hellboy.
23rd August 2024, 22:38
Kuler087 I using workflow (4-3) with (TS version), (set MUX=NO) and (set encode_DDP=NO).
The problem is the audio get extracted and converted and i don't need that. How can i stop the audio from extracting and converting.
I try with a movie with "TrueHD Atmos 7.1" and the audio was converted to .wav and .ec3.
Thanks.

Edit: I check the audio and the audio extracted and converted was not the first, was the last one. A FLAC 2.0 commentary track.

Kuler087
23rd August 2024, 23:21
Because FLAC is not supported in tsmuxer, the script encodes it to pcm.
I added an exception when MUX=NO, try this: https://drive.google.com/file/d/128gq8aDUTKA_aT7SQsM9dkjA1EP1sosR/view?usp=drive_link

Hellboy.
24th August 2024, 00:52
Thanks, that worked.

Vymrr
25th August 2024, 14:11
I saw on the excel sheet some movies that have a L5 edits text file. Is that supposed to be injected into the movie file? If so what workflow is it?

Kuler087
25th August 2024, 14:49
The L5 text files are active area config .json for when you do a dynamic aspect ratio P8 hybrid with metadata from WEB.
you can use them in workflow 1 if you rename the inputs the same and skip the 2nd input.

EG:
D:\movie.mkv
D:\movie.json (L5 config)

Gatorman3385
27th August 2024, 14:17
Is it a bad idea to import the CM4.0 levels from a resolve-generated XML into a MEL CM2.9 RPU from the original disc? Should CM4.0 levels only be imported from videos mastered with it?

Kuler087
27th August 2024, 14:49
cmv4.0 and 2.9 metadata must come from the same dv analysis, so yes it's a bad idea.

Gatorman3385
28th August 2024, 17:32
That makes sense. Thank you.

Kuler087
8th September 2024, 23:27
3.0.2 released (minor changes)
https://github.com/R3S3t9999/DoVi_Scripts/releases


- (8-2) tools pack: x265.exe must be updated (https://drive.google.com/file/d/1-7MO9DWEQUOmmfTCNkBRPc2umrLC8h_o/view) and old versions will no longer work.
- Plotter: added Level 9 info in L1 plot(6-3 / 6-4) and quick info (1)
- Screenshots: added an option to disable screenshot OSD in 7-1 / 7-2 / 7-3 (line 145)
- Editor: added an option to edit source_PQ (for testing only: never change it in real movies/shows)
- Default settings change: DDP EC3 encoding default is now: NO. (Line 75: set encode_DDP=NO)

Hellboy.
9th September 2024, 21:48
Thanks Kuler087

Atari1971
13th September 2024, 15:23
Good morning. I've had problems with Dolby Vision encoding for several months. I thought the update would fix it, but I still get this error with the official Dolby script or the MadVr script... :(

Generating DoVi from a MadVR measurement file...
Reading generate config file...
Parsing madVR measurement file...
Error: Le fichier spécifié est introuvable. (os error 2)

Stack backtrace:
0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: BaseThreadInitThunk
11: RtlUserThreadStart
Done.

Editing L5 (active area) to left=0, right= 0, top= 278, bottom= 278
Error: Le fichier spécifié est introuvable. (os error 2)

Stack backtrace:
0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: BaseThreadInitThunk
12: RtlUserThreadStart
Appuyez sur une touche pour continuer...

Kuler087
13th September 2024, 15:43
This looks like workflow 3-2?
Did you install madVR and lavfilter? it looks like madvr failed to measure the video

https://i.ibb.co/Fmbz95Z/Windows-Terminal-Njvk3q-Frqi.gif

Atari1971
13th September 2024, 17:08
how to install madvr?

Kuler087
13th September 2024, 17:28
go in tools/madvr folder and click (with admin rights) on the install bat.

Atari1971
13th September 2024, 17:33
Installation succeeded.
Please do not delete the madVR folder.
The installer has not copied the files anywhere

Atari1971
13th September 2024, 21:34
Apparently everything is installed well. What can cause this error?

Kuler087
13th September 2024, 22:31
if everything were installed correctly, it would work :)

post the complete log of the workflow, not just part of it otherwise there's not much I can do to help you.