├── README.md ├── TOOLS & INSTALLATION └── Tutorials /README.md: -------------------------------------------------------------------------------- 1 | # DoVi_Scripts 2 | 3 | []( https://github.com/R3S3t9999/DoVi_Scripts/releases) [](https://drive.google.com/file/d/1S4dqemaD8snI7QW29InG_XjI6VP0PNhk/view?usp=sharing) 4 | 5 | PASSWORD FOR THE TOOLS PACK: DoVi.Scripts 6 | 7 | INSTALLATION TUTORIAL: https://www.youtube.com/watch?v=6SLtsVDse2w 8 | 9 | SUPPORT: https://forum.doom9.org/showthread.php?t=185317 10 | 11 | The tools pack doesnt include the [Dolby Vision tools](https://customer.dolby.com/content-creation-and-delivery/dolby-vision-professional-tools-v541) and [Easy Audio Encoder](https://github.com/R3S3t9999/DoVi_Scripts/blob/main/TOOLS%20%26%20INSTALLATION) folder. 12 | See other requirements below... 13 | 14 | BEFORE REPORTING A BUG PLEASE TRY [THE LATEST BETA.](https://drive.google.com/file/d/128gq8aDUTKA_aT7SQsM9dkjA1EP1sosR/view?usp=sharing) 15 | 16 | ## YOU MUST INSTALL: 17 | 18 | - [python](https://www.python.org) (you also have to install the version in [Windows Store](https://apps.microsoft.com/detail/9pjpw5ldxlz5?hl=en-us&gl=CA)) 19 | python libraries to install: opencv-python, colour-science, scikit-image, matplotlib, numpy, colour, opencv-python-headless , PyQt5. Open a command window and type for example: pip install scikit-image 20 | 21 | - [avisynthplus 64bit](https://avs-plus.net/) (not required if you just want to inject/edit DV) 22 | 23 | - [lavfilters](https://www.videohelp.com/software/LAV-Filters) (required for avspmod 3-1, 3-2 and 6-2 only) 24 | 25 | - [madvr](https://www.videohelp.com/software/madVR) (required for 3-1, 3-2 and 6-2 only) 26 | 27 | - Make sure you have the latest [Microsoft Visual C++ Redistributable](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170) installed and if it complains about missing DLL, install m versions. 28 | 29 | Dolby tools can be found here: 30 | 31 | - https://customer.dolby.com/content-creation-and-delivery/dolby-vision-professional-tools 32 | 33 | EAE folder is only needed for 7.1 EC3 encoding. see links: https://github.com/R3S3t9999/DoVi_Scripts/blob/main/TOOLS%20%26%20INSTALLATION 34 | ------------------------------------------------------------------------------------------------------------------------- 35 | 36 | []( https://www.paypal.com/donate/?hosted_button_id=6ML5KUZG9XGB6) - []( https://www.youtube.com/channel/UCEYM1g3nkBNCpgPuyd4JL_g) 37 | 38 | 39 | ------------------------------------------------------------------------------------------------------------------------- 40 | 41 | ## Drag-and-drop batch scripts designed for effortless management of HDR/Dolby Vision files, ensuring a user-friendly and easy-to-use experience. These versatile scripts can tackle many tasks, making your digital journey enjoyable and straightforward. 42 | 43 | ------------------------------------------------------------------------------------------------------------------------- 44 | 45 | [](https://github.com/R3S3t9999/DoVi_Scripts/releases) 46 | 47 | ------------------------------------------------------------------------------------------------------------------------- 48 | 49 | ## EXTERNAL SETTINGS AND CONFIG FILE EXAMPLES (optional) 50 | 51 | - config file(L5 - MD)example for 3-1: https://mega.nz/file/5CcAkACQ#w7M5DQFpJ_WKvD148uEtgM2OG6HcXtk9YQYozcd8VpU 52 | 53 | - Settings file example: https://drive.google.com/file/d/1jQGuzZQyqhqwOTAFjkWWe-JMl6QDFeon/view?usp=drive_link 54 | 55 | ------------------------------------------------------------------------------------------------------------------------- 56 | 57 | ## MUXING BEHAVIOR AND SCRIPT FOLDER: 58 | The script's behavior for muxing (MKV, MP4, or TS) is determined by the filename of the .bat file. If you decide to remove these tags, the default muxing mode will be MKV but muxing can be completely disabled at line 55 59 | 60 | I advise against using the script on your OS drive (usually C:) as it may result in certain functions being disabled or not functioning correctly. Furthermore, remuxing large files will slowdown the Windows operating system. 61 | 62 | To ensure optimal performance, make sure that your path and script folder (containing both tools and the .bat file) adhere to the following format: It's preferable not to include special characters or spaces in the path. 63 | 64 | [](https://github.com/R3S3t9999/DoVi_Scripts/releases) 65 | 66 | 67 | ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 68 | 69 | # SCRIPTS MODES 70 | 71 | ## MODE.I (1) = 72 | - Can do all the extracting parsing, injecting, and editing of two input sources. (P8 hybrid maker) 73 | - One static HDR base layer input and one dynamic HDR file input (MKV/MP4/HEVC/TS/M2TS/RPU/XML/JSON HDR10+). 74 | - Can easily resynchronize RPUs, edit parameters like L5/L6, convert the profile to P8. (P8 hybrid maker) 75 | - Can resync/inJect HDR10plus / DV 76 | - Can remove cmv4.0 default = NO (line 91) 77 | - Can get info(fel or mel, profile, l1/l2/l5) from any DV source as well as extract and edit any DV source. 78 | - Can use external json files and batch 79 | - Can validate metadata with Official Dolby Metafier 80 | - Can convert RPU to XML 81 | - can batch remove cmv4.0 82 | 83 | examples: 84 | 85 | [quick info, edit, extract...](https://s10.gifyu.com/images/S5l93.gif) 86 | 87 | [direct quick info, edit, extract...](https://s12.gifyu.com/images/S5l9s.gif) 88 | 89 | [inject DV and HDR10plus in one shot (json must be in sync)](https://s12.gifyu.com/images/S5l9H.gif) 90 | 91 | [json edit](https://s12.gifyu.com/images/S5l9x.gif) 92 | 93 | [batch edit (folder input)](https://s12.gifyu.com/images/S5l9K.gif) 94 | 95 | [batch inject (folder)](https://s12.gifyu.com/images/S5l9N.gif) 96 | 97 | -------------------------------------------------------------------------------------------------------------------------- 98 | 99 | ## MODE.F (2) = 100 | - Can verify the RPU synchronization 101 | - Can remove HDR10plus or DV 102 | - Can overwrite L2 trims 103 | - Can export EDL timeline DV or HDR10plus for Resolve 104 | - can copy any metadata level to another rpu 105 | - can export L5 config files 106 | 107 | ------------------------------------------------------------------------------------------------------------------------- 108 | 109 | ## MODE.H (3) = 110 | - Can convert any HDR10plus/HDR10/HLG source to shot-by-shot or frame-by-frame DoVi. CMV4.0 metadata, no fake static crap 111 | - Official Dolby cm_analyze.exe (best) or hdr10plus to dv or madvr to dv 112 | - can input external shot list 113 | - L1 analysis can be tuned (line 95) 114 | - Support DV-P5 / HDR10 / HLG input 115 | - can batch generate with external files for L5/ MD, and shot list 116 | - Shot list source is selected in this order: 117 | 118 | 1- any external file with the same filename as the input (rpu, json, text) 119 | 120 | 2- internal RPU (in case of original rpu that has no shot, add ''IGNORERPU'' in the input filename.) 121 | 122 | 3- internal hdr10plus 123 | 124 | 4- if no dynamic metadata is found, it uses madvr to generate a shot list which means that if your source doesn't have any dynamic metadata, you can use the generated RPU from your previous 6-2 measurement. 125 | 126 | ------------------------------------------------------------------------------------------------------------------------ 127 | 128 | ## MODE.7 (4) = 129 | - Can process any Profile 7 source(BD or Rip) to Single-layer Profile 8 or Profile 7 single-track dual-layers. 130 | 131 | ------------------------------------------------------------------------------------------------------------------------ 132 | 133 | MODE.B (5) = Can batch mux any DV source. 134 | 135 | - MKV/MP4 to TS 136 | 137 | - MKV/TS to MP4 138 | 139 | ----------------------------------------------------------------------------------------------------------------------- 140 | 141 | ## MODE.P (6) = 142 | - Can batch plot DoVi Level 1,2,3,4,5,6,8 and hdr10, hdr10plus, video bitrate 143 | 144 | ---------------------------------------------------------------------------------------------------------------------- 145 | 146 | ## MODE.S (7) = 147 | - can export 16bits RGB screenshots (FEL P5 HDR10 HLG SDR) fully automated frame accurate or manual modes 148 | - can play FEL + BL or Profile 5 DV in HDR10 or SDR with madVR+MPC (if your pc can handle it) 149 | - can export HDR heatmap and gamut visualization (FEL P5 HDR10 HLG SDR) 150 | - can tonemap to SDR or PQ 151 | - can create DV metadata video comparison [like this](https://drive.google.com/drive/folders/1g5I-z_sJmVu-SAIPNiiSlcdMiy2ka0mf) 152 | - can create FEL vs BL video comparison [like this](https://drive.google.com/drive/u/0/folders/1FS42T95TOSpoy4xtwUBIQmziCe_R_IKe) 153 | 154 | --------------------------------------------------------------------------------------------------------------------- 155 | 156 | ## MODE.M (8) = 157 | - can convert audio (DDP 7.1 / Add silent or encoded core to TrueHD) 158 | - can encode bake fel to HDR10/P8 with dovibaker+x265 or NVenc 159 | - can encode any HDR10/HLG/FELP7/P5 source to HDR or SDR (x265 or NVenc or prores) 160 | - can encode DV to SDR using official Level-2 100nits trim pass (Official Dolby cm_offline.exe) 161 | - can encode P8/P7 and JPEG2000 IMF mxf / Prores files to profile 5 DV (requires DEE.exe) 162 | --------------------------------------------------------------------------------------------------------------------- 163 | 164 | ## MODE.M (9) = 165 | - can find bd playlist 166 | - can make 5 min samples. timestamp configurable at line: 109 167 | - can quickly find a video framecount (useful when creating a shotlist in 3-1) 168 | - Can tonemap pgs subtitles to different brightness 169 | - Can fix fps bitstream, color range 170 | - Can find frame difference between two sources 171 | 172 | --------------------------------------------------------------------------------------------------------------------- 173 | 174 | ## L5 active area and cropping: 175 | 176 | - if the base layer is 16:9 (no black bars, fullscreen): set L5 to 0 177 | 178 | - if the base layer is 16:9 but has black bars: measure the BL letterbox and adjust L5 accordingly. 179 | 180 | - if the base layer is cropped set L5 to 0 181 | 182 | ## Example 1: 183 | 184 | input= 3840x2160p with active area of 2.40 (16:9 with black bars) 185 | 186 | L5 offsets= Left:0 Right:0 Top:280 Bottom:280 187 | 188 | ------------------------------------------------------------------- 189 | 190 | ## Example 2: 191 | 192 | input= 3840x2160p with active area of 1.78 (16:9 no black bars) 193 | 194 | L5 offsets= Left:0 Right:0 Top:0 Bottom:0 195 | 196 | ------------------------------------------------------------------- 197 | 198 | ## Example 3: 199 | 200 | input= 3840x1600p (cropped) 201 | 202 | L5 offsets= Left:0 Right:0 Top:0 Bottom:0 203 | 204 | --------------------------------------------------------------------------------------------------------------------- 205 | 206 | ## Input filename keywords that override the script's main settings: 207 | 208 | - P5BL : force p5 to p5 injection in 1-1 when input is raw hevc 209 | - DONTUPSCALE : Keep original resolution in 7-2 210 | - KEEPAUDIO : Keep all the audio 211 | - DONTMUX : Disable muxing 212 | - IGNORERPU : Ignore internal rpu for shot list in 3-1 213 | - REMOVECMV4 : Force CMV4.0 removal in 1-1 214 | - KEEPPRORES : Keep prores file 215 | - FORCESDR : Force SDR tonemapping in 7-1 7-2 216 | - KEEPTRIMS : keep trims in XML injection for 1-1 and 3-1 217 | - KEEP1000 : keep 1000nits trims in XML injection for 1-1 and 3-1 218 | - KEEP600 : keep 600nits trims in XML injection for 1-1 and 3-1 219 | - JUSTINJECT : Inject without changing the DV profile in 1-1 220 | 221 | --------------------------------------------------------------------------------------------------------------------- 222 | 223 | ## Interesting links: 224 | 225 | - WEB vs BD comparisons: https://docs.google.com/spreadsheets/d/15i0a84uiBtWiHZ5CXZZ7wygLFXwYOd84/edit?gid=828864432#gid=828864432 226 | 227 | - More comparisons: https://docs.google.com/spreadsheets/d/15i0a84uiBtWiHZ5CXZZ7wygLFXwYOd84/edit?gid=1226038728#gid=1226038728 228 | 229 | - HDR movies brightness plot: https://drive.google.com/drive/u/1/folders/154fBNllwOHL4Lckc7wDV8QKFJwFxnDt- 230 | 231 | - DV device playback supports: https://docs.google.com/spreadsheets/d/15i0a84uiBtWiHZ5CXZZ7wygLFXwYOd84/edit?gid=845372636#gid=845372636 232 | 233 | - How to make P8 hybrid properly : https://www.youtube.com/watch?v=hVWZpat34oc 234 | 235 | - How to batch generate DV: https://www.youtube.com/watch?v=jBqbG5XM54g 236 | 237 | - Convert HDR to SDR with Dolby Vision: https://www.youtube.com/watch?v=lM56zLpKDQ8 238 | 239 | --------------------------------------------------------------------------------------------------------------------- 240 | -------------------------------------------------------------------------------- /TOOLS & INSTALLATION: -------------------------------------------------------------------------------- 1 | INSTALLATION TUTORIAL: https://www.youtube.com/watch?v=6SLtsVDse2w 2 | 3 | Tools password: dovi_scripts 4 | 5 | TOOLS: https://drive.google.com/file/d/1S4dqemaD8snI7QW29InG_XjI6VP0PNhk/view 6 | 7 | Tools you have to download yourself due to copyrights: 8 | 9 | set EAE_path=download/install plex server and copy the files from the installation folder in this folder (you can uninstall it once you got the files)(not needed if you dont encode audio to DDP 7.1) 10 | 11 | set EAE=https://github.com/pabloromeo/clusterplex/files/9396885/EasyAudioEncoder.zip (not needed if you dont encode audio to DDP 7.1) 12 | 13 | Dolby Vision tools can be downloaded with a free account from the Dolby website. 14 | 15 | set metafier_path=https://customer.dolby.com/content-creation-and-delivery/dolby-vision-professional-tools 16 | 17 | set cm_analyzer_path=https://customer.dolby.com/content-creation-and-delivery/dolby-vision-professional-tools 18 | 19 | set cm_offline_path=https://customer.dolby.com/content-creation-and-delivery/dolby-vision-professional-tools 20 | 21 | set DEE_path=https://professional.dolby.com/product/media-processing-and-delivery/dee--dolby-encoding-engine/ 22 | 23 | once you downloaded everything, your DoVi_scripts folder must look like this: https://github.com/R3S3t9999/DoVi_Scripts/releases 24 | 25 | 26 | ## YOU MUST INSTALL: 27 | 28 | - https://www.python.org/downloads/release/python-390/ (3.8 should work too) 29 | 30 | - https://avs-plus.net/ (64bit) 31 | 32 | - https://www.videohelp.com/software/LAV-Filters 33 | 34 | - https://www.videohelp.com/software/madVR 35 | 36 | Dolby tools can be found here: 37 | 38 | - https://customer.dolby.com/content-creation-and-delivery/dolby-vision-professional-tools 39 | 40 | EAE folder is only needed for 7.1 EC3 encoding. see links: https://github.com/R3S3t9999/DoVi_Scripts/blob/main/TOOLS%20%26%20INSTALLATION 41 | 42 | ------------------------------------------------------------------------------------------------------------------------- 43 | 44 | ## EXTERNAL SETTINGS AND CONFIG FILE EXAMPLES (optional) 45 | 46 | - config file(L5 - MD)example for 3-1: https://mega.nz/file/5CcAkACQ#w7M5DQFpJ_WKvD148uEtgM2OG6HcXtk9YQYozcd8VpU 47 | 48 | - Settings file example: https://drive.google.com/file/d/1jQGuzZQyqhqwOTAFjkWWe-JMl6QDFeon/view?usp=drive_link 49 | -------------------------------------------------------------------------------- /Tutorials: -------------------------------------------------------------------------------- 1 | https://www.youtube.com/playlist?list=PLFGpkrmX_eOL2Dre1ZyIJP2uMtcQYH8ql 2 | --------------------------------------------------------------------------------