View Full Version : [DoVi_Scripts] Multi-Function Scripts for Dolby Vision processing and a lot more...
Kuler087
9th May 2024, 15:05
I think the correct way is no flag like the oppo/x800m2/ATV/Shield do but on my C2 it doesn't make a difference and the flag is always ignored.
jayper
9th May 2024, 17:47
I think the correct way is no flag like the oppo/x800m2/ATV/Shield do but on my C2 it doesn't make a difference and the flag is always ignored.
Always appreciate your time and expertise. Just sent a donation your way for all the efforts.
Kuler087
9th May 2024, 18:00
thank you :)
did i give you access to my generated RPU google drive link? if no and if you're interested, PM me.
javieracdc
17th May 2024, 02:27
Hi
Sorry for my noob question but how can I convert to STSL from a mkv files that has originally STDL?
I would like to convert it to Blu ray using tsmuxer.
this is the mediainfo of the file:
HDR format : Dolby Vision, Version 1.0, Profile 8.4, dvhe.08.05, BL+RPU, no metadata compression, HLG compatible
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : HLG
Matrix coefficients : BT.2020 non-constant
Kuler087
17th May 2024, 03:04
Your file has a HLG base layer(profile 8.4). I doubt it was STDL originally.
Anyway, you can't convert profile 8 ST-SL to profile 7 DT-DL without the original EL.
javieracdc
17th May 2024, 15:39
Your file has a HLG base layer(profile 8.4). I doubt it was STDL originally.
Anyway, you can't convert profile 8 ST-SL to profile 7 DT-DL without the original EL.
arent there any chance to convert to any profile a STSL?
Kuler087
17th May 2024, 16:46
your file is already single track single layer.
javieracdc
17th May 2024, 17:18
your file is already single track single layer.
When I convert this original file (MOV file) to mKV using handbrake (x265 bit 10 encoder) and later open the MKV file using tsmuxer and convert it to Blu Ray, this appears STDL warning
Kuler087
17th May 2024, 20:06
Well I don't know. According to your mediainfo, there is no 2nd layers.
HDR format : Dolby Vision, Version 1.0, Profile 8.4, dvhe.08.05, BL+RPU, no metadata compression, HLG compatible
tormento
18th May 2024, 13:07
I am a total noob about HDR video, so forgive me in advance.
If I have a DoVi UHD, how should apply the script if my final result has to be processed by DGCube or DGHDRtoSDR or DGHDRtoHLG?
I know that I can rip a DoVi compliant mkv with Matroska GUI but once I have a DoVI, what should I do?
I don't care to keep DoVi in the output file at all, just HLG or SDR but I want to use the 4k video to have 10/12 bit, better compression and wider range.
Kuler087
18th May 2024, 15:13
my final result has to be processed by DGCube or DGHDRtoSDR or DGHDRtoHLG?
The script doesn't use any of these and cannot convert HDR10 to HLG.
If you just want HDR to SDR tone mapping(workflow 8-2-2), the script relies on libplacebo and the SDR TM settings can be adjusted between lines 135-141.
When I convert HDR to SDR, I prefer delivering the original 100-nits trim pass from the Dolby Vision metadata since it respects the artistic intent of the colorist/director but this is a much longer/complicated process:
https://www.youtube.com/watch?v=lM56zLpKDQ8&t=2s
tormento
18th May 2024, 19:58
The script doesn't use any of these and cannot convert HDR10 to HLG.
I know and perhaps I wrote in a bad way what I wanted.
How to convert DoVi to a HDR format that can be processed by AVS+ without having to deal with dynamic metadata?
Kuler087
18th May 2024, 21:19
How to convert DoVi to a HDR format that can be processed by AVS+ without having to deal with dynamic metadata?
Sorry but now I'm confused...
From your initial question, I understand that you just want to convert a HDR format (DV-P7/P8/P5,HDR10 or HLG) to SDR which is exactly what dovi_scripts workflow 8-2-2 does but uses vapoursynth instead of AVS.
You don't have to deal with any metadata, everything is automated in that workflow and the outcome will be a hevc 10bit rec709 stream tone mapped from your HDR source with libplacebo.
guest
19th May 2024, 01:49
Never mind, things got screwed up. My bad, apologies. Please delete this post
You should be able to delete any of your posts, yourself, simply:-
Choose "Edit", then "Delete" (bottom right corner), then "Delete Message" (on the bottom left), then back over to the right bottom corner, and "Delete this Message"....done :)
tormento
19th May 2024, 10:00
Sorry but now I'm confused
Sorry, my english is not so good and unfortunately telepathy isn't a real thing. :o
I just want to have a stream that I can process as if it were a PQ one, without any DoVi metadata.
DoVi -> PQ -> my script to have SDR or HLG.
I want to have control on noise reduction etc.
von Suppé
19th May 2024, 11:00
Choose "Edit", then "Delete" (bottom right corner), then "Delete Message" (on the bottom left), then back over to the right bottom corner, and "Delete this Message"....done :)
Thank you TDS, deleting post went well :)
Sorry to ask this here, but I haven't been able to find a clear answer on the CoreELEC forums. For the Ugoos AM6b+, I understand that the device hardware is fixed at outputting a rec709 flag.
Sorry to get back on this rather late, but can you provide with a link to where this is discussed?
But there are two options presented to change this via ssh:
echo Y > /sys/module/hdmitx20/parameters/dovi_tv_led_no_colorimetry
echo Y > /sys/module/hdmitx20/parameters/dovi_tv_led_bt2020
Dolby Vision looking good on my Ugoos now, I never touched SSH and am wondering what good both settings would do. The way I've learned it - please do correct me if I misunderstand something - is that with tv-led the video is decoded to YUV, composed (in case of extra FEL videodata) and together with RPU subsampled in a 8 bit RGB container for HDMI tunneling. Where the receiving part (display) will take RPU and do the dynamic tonemapping. Colorspace data already present in the decoded & composed video, wouldn't setting one of both SSH params add to confusion for the receiving part? And what to think about DoVi P5 where proprietary non-BT2020 colorspace is used? I can imagine setting BT2020 flag has a devastating effect.
Kuler087
19th May 2024, 13:33
Sorry, my english is not so good and unfortunately telepathy isn't a real thing. :o
I just want to have a stream that I can process as if it were a PQ one, without any DoVi metadata.
DoVi -> PQ -> my script to have SDR or HLG.
I want to have control on noise reduction etc.
Ok, you must meant DoVi profile 5, because the base layer of DV P8-P7 is already in PQ HDR10.
So let me describe what DoVi_Scripts can do:
8-2-1:
Can convert ANY HDR input (DVP5P8P7, HLG, HDR10) to PQ HDR10. This will re-encode to hevc rec2020 HDR10
8-2-2:
Can convert ANY HDR input (DVP5P8P7, HLG, HDR10) to SDR. This will re-encode to hevc rec709 SDR...
So the workflow in DoVi_Scripts to convert DV-P5(or any HDR source) to PQ-HDR10 is 8-2-1. The stream will still have DV metadata but it doesn't matter for what you want to do...
7-2(manual mode):
You can also create an AVS+ script with workflow 7-2 and add anything you wish(denoise etc). then you can encode that script to whatever format you want.
https://i.ibb.co/0tWsgGt/NVIDIA-Share-Fh-Eh-Qjijlo.gif
Kuler087
19th May 2024, 13:37
Dolby Vision looking good on my Ugoos now, I never touched SSH and am wondering what good both settings would do. The way I've learned it - please do correct me if I misunderstand something - is that with tv-led the video is decoded to YUV, composed (in case of extra FEL videodata) and together with RPU subsampled in a 8 bit RGB container for HDMI tunneling. Where the receiving part (display) will take RPU and do the dynamic tonemapping. Colorspace data already present in the decoded & composed video, wouldn't setting one of both SSH params add to confusion for the receiving part? And what to think about DoVi P5 where proprietary non-BT2020 colorspace is used? I can imagine setting BT2020 flag has a devastating effect.
It depends on your TV. The flag definitely had an effect on my old LG C8 but on my LG C2, the flag is always ignored and it doesn't make any difference.
The best approach is to use no flag IMO.
Lucky38
25th May 2024, 07:24
@Kuler087,
I have video in 4k DoVi profile 5 with black bars. i would like to resize it to 1080p and crop it. What i usually do in this case:
1) use your script to extract RPU and crop it;
2) open Staxrip and use same avisnth filters to do resize and crop.
I have noticed that your script shows information about black bars (top, bottom) 263px, but when i do cropping in Staxrip it crop only 262px due to output mod=2. This provide final resolution 1920x818 (it has additonal 1px on top and bottom) instead 1920x816 (without any additional black pixel).
https://imgur.com/a/dqY64it
According to Staxrip developer cropping (top, bottom) by 264px will break the metadata. Cropping by 264px gives in my opinion propper resolution 1920x816.
But my main question is: What will happen with RPU when i do cropping by 264px instead of 262px with metadata in RPU?
Kuler087
25th May 2024, 13:47
If 264/264 is the correct crop for the base layer video, you will not break the metadata because when you crop the RPU, the active area (L5) becomes 0/0 which is the correct value for any video without black bars.
If you crop the BL to 262/262 and there's a remaining 1/1 pixel row top/bottom, then set L5 to 1/1.
L5 is not too complicated to understand, it tells the Display how many pixels of black bar there are in the BL video and the Display will then ignore those offsets for the tone mapping.
Lucky38
27th May 2024, 13:15
ok. So what will happen when my RPU has 0/0 px but my encoded video has 1/1 pixel on top/bottom? Does it mean encode is broken?
Gatorman3385
27th May 2024, 13:34
No, the encode isn't broken. However, the RPU L5 values should be edited to 0,0,1,1 (left, right, top, bottom).
Kuler087
27th May 2024, 13:41
ok. So what will happen when my RPU has 0/0 px but my encoded video has 1/1 pixel on top/bottom? Does it mean encode is broken?
The DV tone mapping will be applied to the whole image including the 1px top/bottom row.
PS: This metadata (level 5) is ignored by 99% of the HDMI player. Only the TVs internal player uses it. On HDMI devices, the DV tone mapping is always applied to the whole image, letterbox included.
smaiderman
27th May 2024, 15:06
Hello. First of all, thank you very much for the tools.
I need some help.
Im trying to convert DOVI to SDR, and im using the 8-2-4 flow, but I get this error.
https://pastebin.com/iHXdeEVa
But I don understand, as after scanning the file with 2-2-q flow, it says it has that info.
https://pastebin.com/KnrWKBHQ
What am I doing wrong?
Im using the UHD bluray disc, created a mkv with mkvtoolnix from the index.bdmv in the bluray.
Thank you for the help!
Kuler087
27th May 2024, 15:28
It looks like there's something ffmpeg doesnt like about your input. There's an option to bypass ffmpeg piping but unfortunately, it's not implemented in this workflow (8-2-4).
Try the next beta (tonight or tomorrow)
[hevc @ 0000028e222fd0c0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 19 >= 18
[hevc @ 0000028e222fd0c0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 19 >= 19
Error: Invalid PPS index
Error: No RPU found
::choose if you dont want to use ffmpeg piping for 4-1 demuxing. Might need to be disable if you notice issues. only valid for the mkv version and when the script is set to mux all audio/subs (default = YES)
set ffmpeg_pipe=YES
smaiderman
27th May 2024, 21:40
It looks like there's something ffmpeg doesnt like about your input. There's an option to bypass ffmpeg piping but unfortunately, it's not implemented in this workflow (8-2-4).
Try the next beta (tonight or tomorrow)
Thank you Kuler. I'm not in a hurry. I'll be checking
Kuler087
27th May 2024, 22:23
Thank you Kuler. I'm not in a hurry. I'll be checking
In the latest beta (https://drive.google.com/file/d/128gq8aDUTKA_aT7SQsM9dkjA1EP1sosR/view?usp=drive_link), ffmpeg piping can now be disabled for 8-2-4. (Line 173)
let me know if it fixes your issue.
smaiderman
27th May 2024, 23:44
In the latest beta (https://drive.google.com/file/d/128gq8aDUTKA_aT7SQsM9dkjA1EP1sosR/view?usp=drive_link), ffmpeg piping can now be disabled for 8-2-4. (Line 173)
let me know if it fixes your issue.
Sorry to say that this didnt solve the problem.
https://pastebin.com/AzvWcHq9
Kuler087
28th May 2024, 00:01
You have to disable ffmpeg piping at line 173
This setting will never be disabled by default because it speeds up demuxing and causes issues only for a few rips.
smaiderman
28th May 2024, 08:12
You have to disable ffmpeg piping at line 173
After This setting will never be disabled by default because it speeds up demuxing and causes issues only for a few rips.
I edited the bat like this: (it said YES before, so I guess it is NO what I have to write)
::choose if you dont want to use ffmpeg piping for 4-1 / 8-2 / 7-1 demuxing. Might need to be disable if you notice issues. In 4-1: its only valid for the mkv version and when the script is set to mux all audio/subs (default = YES)
set ffmpeg_pipe=NO
This looked different this time. It showed a progress bar that wasnt there before, but still, errored.
Donate: https://www.paypal.com/donate/?hosted_button_id=6ML5KUZG9XGB6 Date: 28/05/2024 08:15
Contact: R3S3T_9999@proton.me Version: 2.0.7.beta_MKV
_____ __ ___ _____ _ _
| __ \ \ \ / (_) / ____| (_) | |
| | | | __\ \ / / _ | (___ ___ _ __ _ _ __ | |_ ___
| | | |/ _ \ \/ / | | \___ \ / __| '__| | '_ \| __/ __|
| |__| | (_) \ / | | ____) | (__| | | | |_) | |_\__ \
|_____/ \___/ \/ |_| |_____/ \___|_| |_| .__/ \__|___/
-Author: RESET_9999--------------------------|__|-----------
1) MODE.I= DoVi Inject/Convert/Edit/Re-sync TWO INPUTS (P8 Hybrid Maker/Injector)
2) MODE.F= DoVi Fix/Edit/Extract/Verify/Info ONE INPUT
3) MODE.H= DoVi Maker from HDR10 (Dolby Algo or MadVR or HDR10+)
4) MODE.7= DoVi Profile 7 Input (MKV/BDMV)
5) MODE.B= DoVi MKV Batch Muxer
6) MODE.P= Plotter
7) MODE.S= Screenshots & Player
8) MODE.M= MIXED: Audio/Remover/Encoder/Playlist/Sample
9) Exit
Choice? [1,2,3,4,5,6,7,8,9]?8
*****************
* CHOOSE A MODE *
*****************
1) MODE.1= AUDIO Encoding (DDP, THDAC3, DEE)
2) MODE.2= VIDEO Encoding (x265/Prores/dovi_baker/libplacebo/cm_offline)
3) MODE.3= Find Main Movie Playlist (BD MPLS)
4) MODE.4= Dolby Vision / HDR10plus Remover
5) MODE.5= MKV Sample Maker
6) MODE.6= Find a video frame count
7) MODE.7= Subtitles_Tonemap (reduce SUP subtitles brightness)
Choice? [1,2,3,4,5,6,7]?2
*********************
* CHOOSE A WORKFLOW *
*********************
1) Workflow.1= X265: HDR to HDR (DVP7/DVP5/HDR10/HLG)
2) Workflow.2= X265: HDR to SDR (DVP7/DVP5/HDR10/HLG)
3) Workflow.3= PRORES: HDR to HDR (DVP7/DVP5/HDR10/HLG)
4) Workflow.4= PRORES: DV to SDR (Dolby CM_Offline 100nits L2 trim pass delivery)
5) Workflow.5= PRORES: SDR to HDR-100nits
6) Workflow.6= back to main menu
Choice? [1,2,3,4,5,6]?4
----------------------------------------------------------------------------------------------------------------
-- Can Encode any DV source that has a 100nits trim pass to SDR PRORES 422 HQ
-- Require Dolby CM_offline.exe
-- P7 fel baking requires and Nvidia GPU
-- Input MUST be PQ/HDR with a 100nits Level 2 trim.
-- Require a lot of HDD space and -qscale:v 3 is hardcoded since higher value reduce quality
-- Require Vapoursynth
------------------------------------------------------------------------------------------------------------------
Drag and drop a video and press enter...
C:\Users\Emilio\Desktop\GODMASTER.mkv
Extracting track 0 with the CodecID 'V_MPEGH/ISO/HEVC' to the file 'H:\HDRtoSDR\HDRtoSDR\temp.folder49\BL.P7.hevc'. Container format: HEVC/H.265 elementary stream
Progress: 100%
Indexing the base layer...
Project
100
Indexing the enhancement layer...
Project
100
Error: Invalid PPS index
Error: No RPU found
[avisynth @ 000002088c1393c0] DoViBaker: parse_rpu_bin_file: Errored while parsing: No RPU found
(H:\HDRtoSDR\HDRtoSDR\temp.folder49\script.avs, line 7)
[in#0 @ 000002088c11aa80] Error opening input: Unknown error occurred
Error opening input file H:\HDRtoSDR\HDRtoSDR\temp.folder49\script.avs.
Error opening input files: Unknown error occurred
Error: El sistema no puede encontrar el archivo especificado. (os error 2)
Input doesnt have a 100nits trim pass.
Is there a way to change the output bitrate for 7.1 encoding? I get 1024 kbps (which I want to keep for 5.1 DD+) but I want to set it higher e.g. 1536.
Kuler087
28th May 2024, 11:59
Is there a way to change the output bitrate for 7.1 encoding? I get 1024 kbps (which I want to keep for 5.1 DD+) but I want to set it higher e.g. 1536.
the maximum bitrate for 7.1 EC3 without a core in ffmpeg is 1024.
You can get 1536kbps in the DEE workflows 8-1-3 but DEE produces dynamic range metadata that can't be turned off, at least on my AVR. IIRC it's like a -10DB offset and it sucks.
Error: Invalid PPS index
Error: No RPU found
Then something is odd about your file. Which movie is that?
Also, did you try with other movies?
the maximum bitrate for 7.1 EC3 without a core in ffmpeg is 1024.
You can get 1536kbps in the DEE workflows 8-1-3 but DEE produces dynamic range metadata that can't be turned off, at least on my AVR. IIRC it's like a -10DB offset and it sucks.
I see, so it's better to stick to default 1024.
1024 for 7.1 is still better than 640 for 5.1
1024 / 8 = 128kbps
640 / 6 = ~106kbps
Kuler087
28th May 2024, 12:17
You can set it to 1536 and it will work for 5.1 audio.
smaiderman
28th May 2024, 23:14
the maximum bitrate for 7.1 EC3 without a core in ffmpeg is 1024.
You can get 1536kbps in the DEE workflows 8-1-3 but DEE produces dynamic range metadata that can't be turned off, at least on my AVR. IIRC it's like a -10DB offset and it sucks.
Then something is odd about your file. Which movie is that?
Also, did you try with other movies?
It is Godzilla minus one. The UHD from the full collection.
Can it be a problem while exporting the mkv from the blu-ray disc?
Do you have any tip about a "proper" way to do it?
I didn't try with any other movie. This was my first attempt regrading
Thanks again
Kuler087
29th May 2024, 12:02
It is Godzilla minus one. The UHD from the full collection.
Can it be a problem while exporting the mkv from the blu-ray disc?
Do you have any tip about a "proper" way to do it?
I didn't try with any other movie. This was my first attempt regrading
Thanks again
Ah, that explains it. This movie is strangely authored and cant be processed in Dovi_scripts. You can try to demux the hevc stream from the original M2TS file and do everything manually in resolve (https://www.youtube.com/watch?v=lM56zLpKDQ8&t=5s)
I see, so it's better to stick to default 1024.
1024 for 7.1 is still better than 640 for 5.1
1024 / 8 = 128kbps
640 / 6 = ~106kbps
I've added a workaround (https://drive.google.com/file/d/128gq8aDUTKA_aT7SQsM9dkjA1EP1sosR/view?usp=drive_link) in the DEE (8-1-3) workflow and it should now produce the same quality as 8-1-1 but at 7.1 channels + 1536kbps bitrate.
It turns out, my AVR (and many others) can't disable the Dialogue Normalization of DDP tracks. (https://www.avsforum.com/threads/defeating-dialnorm.3253654/)
smaiderman
29th May 2024, 13:52
[QUOTE=Kuler087;2002322]Ah, that explains it. This movie is strangely authored and cant be processed in Dovi_scripts. You can try to demux the hevc stream from the original M2TS file and do everything manually in resolve (https://www.youtube.com/watch?v=lM56zLpKDQ8&t=5s)
I'm going to watch the video, but the leading problem that made me discover your tool, was because daVinci studio can't import the hvec extracted from the bluray. (I use mkvtoolnix to extract the heck video file). But daVinci refuses to read that hevc
Thanks again
Kuler087
29th May 2024, 14:15
I'm going to watch the video, but the leading problem that made me discover your tool, was because daVinci studio can't import the hvec extracted from the bluray. (I use mkvtoolnix to extract the heck video file). But daVinci refuses to read that hevc
Thanks again
Your video must be in a mkv or mp4 container for Resolve to see it but don't do that, Resolve has poor hevc decoding. You must convert it to prores 422 like the tutorial if you want frame-accurate results.
Also I heard mkvtoolnix is not prrocessing this movie correctly, it will fail to play on the Ugoos and Shield. If you demux the original M2TS with tsmuxer, you should be able to extract the DV metadata for Resolve 100nits SDR delivery.
I've added a workaround (https://drive.google.com/file/d/128gq8aDUTKA_aT7SQsM9dkjA1EP1sosR/view?usp=drive_link) in the DEE (8-1-3) workflow and it should now produce the same quality as 8-1-1 but at 7.1 channels + 1536kbps bitrate.
It turns out, my AVR (and many others) can't disable the Dialogue Normalization of DDP tracks. (https://www.avsforum.com/threads/defeating-dialnorm.3253654/)
Thank you! I will try it...
smaiderman
30th May 2024, 17:07
Ah, that explains it. This movie is strangely authored and cant be processed in Dovi_scripts. You can try to demux the hevc stream from the original M2TS file and do everything manually in resolve (https://www.youtube.com/watch?v=lM56zLpKDQ8&t=5s)
Hi. Im trying to follow the tutorial, and I have some news.
Regarding your suggestion to use TsMuxer, your software instantly closes as I try to drag and drop the file obtained with TsMuxer, and I think that this happens because there is a step missing: converting the prores.mov to MKV.
Can you suggest a way to do this avoiding MKVtoolnix?
Davinci can importe the proress file, but I cant make the neccessary steps involving Dovi_tools
Thank you!
Kuler087
30th May 2024, 17:30
You have to input the demuxed .hevc DV layer track(1080p) in workflow 2-5 ? is that what you did?
Dont input the 2160p HEVC file, it doesn't have metadata.
smaiderman
30th May 2024, 18:34
You have to input the demuxed .hevc DV layer track(1080p) in workflow 2-5 ? is that what you did?
Dont input the 2160p HEVC file, it doesn't have metadata.
That is the problem. Sorry to be so ignorant, and thank you for your extensive help
Kuler087
30th May 2024, 19:00
BTW, I had a look at this movie and if you remux it with mkvtoolnix straight from the bluray disc, the output is incorrect.
If you remux the disc with MakeMKV, the output is correct.
smaiderman
30th May 2024, 22:45
BTW, I had a look at this movie and if you remux it with mkvtoolnix straight from the bluray disc, the output is incorrect.
If you remux the disc with MakeMKV, the output is correct.
Thnaks for the advice. My only experience was with toolnix, but I'm going to swap.
I have an oftopic question:
I managed to set Davinci with the xml and the correct color spaces, but my question now is how do I export from the color graded prores to the original hvec as loseless as possible? Is there a way to do this render loslessly? Or will there always be some kind of compression?
Kuler087
30th May 2024, 23:41
You have to deliver to a lossless codec from Resolve and then encode with high-quality settings in x265 or x264.
So depending on your x265/x264 final encode, there should not be any visible loss.
Example, this is my Aquaman 2 SDR 16mb/s x264 encode VS the 1080p bluray remux: https://slow.pics/c/hZDFm8Na
smaiderman
31st May 2024, 00:07
You have to deliver to a lossless codec from Resolve and then encode with high-quality settings in x265 or x264.
So depending on your x265/x264 final encode, there should not be any visible loss.
Example, this is my Aquaman 2 SDR 16mb/s x264 encode VS the 1080p bluray remux: https://slow.pics/c/hZDFm8Na
That would be, for example, export in proress again with resolve, and then encode that file with another software?
If exported with resolve to high quality h264 or h265, there is still a big loss?
Kuler087
31st May 2024, 00:16
That would be, for example, export in proress again with resolve, and then encode that file with another software?
yes. I use staxrip/x264 1080p 8bit 2-pass 16mb/s very slow with some custom cmd but this is for the small PLEX I share with friends and family. If you want transparent quality to the UHD bluray source, you should encode to x265 2160p 10bit CRF 14-15 slower preset.
If exported with resolve to high quality h264 or h265, there is still a big loss?
No, don't do that. Resolve h265/h264 encoding is bad. You always want to deliver a lossless codec from Resolve
I've added a workaround (https://drive.google.com/file/d/128gq8aDUTKA_aT7SQsM9dkjA1EP1sosR/view?usp=drive_link) in the DEE (8-1-3) workflow and it should now produce the same quality as 8-1-1 but at 7.1 channels + 1536kbps bitrate.
It turns out, my AVR (and many others) can't disable the Dialogue Normalization of DDP tracks. (https://www.avsforum.com/threads/defeating-dialnorm.3253654/)
Am I doing something wrong?
I've tried with MKV containing 7.1 TrueHD (no ac3 core) and this is the result:
1) Workflow.1= Lossless Audio to DD+ EC3 (can batch)
2) Workflow.2= Add an AC3 Core to TrueHD (thdmerge or eac3to)(can batch)
3) Workflow.3= DEE workflows(payware) (not recomended)
Choice? [1,2,3]?3
--------------------------------------------------------------------------------------
-- You must have edited the path to DEE for this workflow to work.
-- Can encode to DD+ 1536kbps 7.1(ac3 core) or TrueHD 7.1
-- Input must have 7.1 channels audio. For 5.1/2.0 audio, use workflow 8-1-1
--------------------------------------------------------------------------------------
Drag and drop a file and press enter...
"D:\Torrents\Movies\Gojira -1.0.2023.BDRemux.2160p.NNMClub\Gojira -1.0.2023.BDRemux.2160p.NNMClub (1)-001.mkv"
File 'D:\Torrents\Movies\Gojira -1.0.2023.BDRemux.2160p.NNMClub\Gojira -1.0.2023.BDRemux.2160p.NNMClub (1)-001.mkv': container: Matroska
Track ID 0: video (HEVC/H.265/MPEG-H)
Track ID 1: audio (TrueHD Atmos)
Attachment ID 1: type 'image/jpeg', size 39406 bytes, file name 'cover.jpg'
What is the audio track id (default=1) and press enter...
1
DD+ or TrueHD? choice are b or t (default=b)
b
ffmpeg version 2024-02-22-git-76b2bb96b4-full_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --pkg-config=pkgconf --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-dxva2 --enable-d3d11va --enable-libvpl --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libcodec2 --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 58. 39.100 / 58. 39.100
libavcodec 60. 40.100 / 60. 40.100
libavformat 60. 21.101 / 60. 21.101
libavdevice 60. 4.100 / 60. 4.100
libavfilter 9. 17.100 / 9. 17.100
libswscale 7. 6.100 / 7. 6.100
libswresample 4. 13.100 / 4. 13.100
libpostproc 57. 4.100 / 57. 4.100
[matroska,webm @ 0000018070ba9f00] Invalid Block Addition value 0x0 for unknown Block Addition Mapping type 68766345, name "Dolby Vision enhancement-layer HEVC configuration"
Input #0, matroska,webm, from 'D:\Torrents\Movies\Gojira -1.0.2023.BDRemux.2160p.NNMClub\Gojira -1.0.2023.BDRemux.2160p.NNMClub (1)-001.mkv':
Metadata:
encoder : libebml v1.4.5 + libmatroska v1.7.1
creation_time : 2024-05-30T19:17:26.000000Z
Duration: 00:01:00.23, start: 0.000000, bitrate: 67367 kb/s
Stream #0:0(jpn): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default)
Metadata:
BPS : 64217023
DURATION : 00:00:59.393000000
NUMBER_OF_FRAMES: 1424
NUMBER_OF_BYTES : 476755212
SOURCE_ID : 001011
_STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2024-05-30 19:17:26
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Side data:
DOVI configuration record: version: 1.0, profile: 7, level: 6, rpu flag: 1, el flag: 1, bl flag: 1, compatibility id: 6
Stream #0:1(jpn): Audio: truehd (Dolby TrueHD + Dolby Atmos), 48000 Hz, 7.1, s32 (24 bit)
Metadata:
title : Original
BPS : 3964436
DURATION : 00:01:00.227000000
NUMBER_OF_FRAMES: 72272
NUMBER_OF_BYTES : 29845768
_STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2024-05-30 19:17:26
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 640x360 [SAR 72:72 DAR 16:9], 90k tbr, 90k tbn (attached pic)
Metadata:
filename : cover.jpg
mimetype : image/jpeg
[in#0/matroska,webm @ 0000018070b8ac80] Codec AVOption drc_scale (percentage of dynamic range compression to apply) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some decoder which was not actually used for any stream.
Stream mapping:
Stream #0:1 -> #0:0 (truehd (native) -> pcm_s24le (native))
Press [q] to stop, [?] for help
[Parsed_pan_0 @ 0000018071138140] Pure channel mapping detected: 0 1 2 3 6 7 4 5
Output #0, wav, to 'D:\Torrents\Movies\MP4_DV_P5\DoVi_Scripts\temp_folder19\1.wav':
Metadata:
ISFT : Lavf60.21.101
Stream #0:0(jpn): Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, 7.1, s32, 9216 kb/s
Metadata:
title : Original
BPS : 3964436
DURATION : 00:01:00.227000000
NUMBER_OF_FRAMES: 72272
NUMBER_OF_BYTES : 29845768
_STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2024-05-30 19:17:26
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
encoder : Lavc60.40.100 pcm_s24le
[out#0/wav @ 000001807113a200] video:0KiB audio:67755KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.000199%
size= 67755KiB time=00:01:00.22 bitrate=9216.0kbits/s speed=21.8x
The system cannot find the path specified.
The script has been completed. Do you want to quit or go back to main menu (q or m default=q)?
Kuler087
31st May 2024, 14:56
It looks like you didn't set your path to DEE.exe. This is a paidware and it's not included in the tools pack I share.
https://i.ibb.co/vv6nL6Y/Capture-d-cran-2024-05-31-095524.png
It looks like you didn't set your path to DEE.exe. This is a paidware and it's not included in the tools pack I share.
https://i.ibb.co/vv6nL6Y/Capture-d-cran-2024-05-31-095524.png
Oh, I see. I've tried to see what's missing, but I missed that. Thank you!
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.