View Full Version : [DoVi_Scripts] Multi-Function Scripts for Dolby Vision processing and a lot more...
Kuler087
13th February 2024, 14:40
Drag-and-drop batch scripts designed for effortless management of HDR/Dolby Vision files,
ensuring a user-friendly and easy-to-use experience.
https://github.com/R3S3t9999/DoVi_Scripts
Installation tutorial for newbies: https://youtu.be/wb9191cExF8
https://i.ibb.co/Z6scm8fx/Do-Vi-Scripts-animated-gif.gif
https://images2.imgbox.com/bc/b7/cx8CGyxP_o.png
MUXING BEHAVIOR AND SCRIPT FOLDER:
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
I advise against using the script on your OS drive as it may result in certain functions being disabled or not functioning correctly. Furthermore, remuxing large files will slowdown the Windows operating system.
The script default settings can be edited if you open the bat file in Notepad++ (https://notepad-plus-plus.org/)
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.
DO NOT LAUNCH THE BAT FILE WITH ADMIN RIGHTS, DRAG AND DROP WILL NOT WORK!
https://i.ibb.co/p1rp5K0/Capture-d-cran-2024-02-13-084631.jpg
SCRIPTS MODES
MODE.I (1) =
INJECTOR/INJECTOR/EDITOR/EXTRACTOR
Can do all the extracting, parsing, injecting, and editing of two input sources. (P8/P5/P7 injection/edition)
Can get info(fel or mel, profile, l1/l2/l5) from any DV source as well as extract and edit any source.
One static HDR base layer input and one dynamic HDR file input (MKV/MP4/HEVC/TS/M2TS/RPU/XML/JSON HDR10+).
Can easily resynchronize RPUs, edit parameters like L5/L6, convert the profile to P8. (P8 hybrid maker)
see P8 hybrid maker tutorial: https://www.youtube.com/watch?v=hVWZpat34oc
see Resolve DV generation tutorial: https://www.youtube.com/watch?v=FVSh3oGqfXY
Can Resync HDR10plus and Dolby Vision (any profile)
Can use external json files and batch process files
Can validate metadata with Official Dolby Metafier
Can convert RPU to XML
Can disable DV tone mapping (reset L1 L2 L8)
can batch remove cmv4.0
EXAMPLES:
Edit a single file (https://s10.gifyu.com/images/S5l93.gif)
inject HDR10plus and DV in one shot (json must be in sync) (https://s12.gifyu.com/images/S5l9H.gif)
json edit (https://s12.gifyu.com/images/S5l9x.gif)
Batch edit (https://s12.gifyu.com/images/S5l9K.gif)
batch inject (https://s12.gifyu.com/images/S5l9N.gif)
MODE.F (2) =
REMOVER/TRANSFER/VERIFY
Can verify the dynamic metadata (DV/HDR10plus) synchronization with the base layer.
see tutorial: https://www.youtube.com/watch?v=lIO_ZfT-LnY
Can overwrite/remove Level 2 trims
can transfer any metadata level to another rpu
can transfer scene cuts from one rpu to another
Can remove hdr10plus or DV
Can export EDL timecodes for Resolve
Can export Level 5 aspect ratio config file
Can find scene cut difference between two sources.
Can batch info your whole library
MODE.H (3) =
GENERATOR
Can convert any HDR10plus/HDR10/HLG source to shot-by-shot or frame-by-frame DoVi. CMV4.0 metadata, no fake static crap
Official Dolby cm_analyze.exe (best) or hdr10plus to dv or madvr to dv
see batch generate DV tutorial: https://www.youtube.com/watch?v=jBqbG5XM54g
can use an external shot list
Cmv4.0 L1 analysis can be tuned (line 95)
Support DV-P5 / HDR10 / HLG input
can batch generate DV with external files for L5/ MD, and original shot list
Shot list source is selected in this order:
1- any external file with the same filename as the input (rpu, json, text)
2- internal RPU (in case of original rpu that has no shot, add ''IGNORERPU'' in the input filename.)
3- internal hdr10plus
4- if no dynamic metadata is found, it uses madvr to generate a shot list
MODE.7 (4) =
PROFILE 7
Can process any Profile 7 source(BD or Rip) to Single-layer Profile 8 or Profile 7 single-track dual-layers.
see tutorial: https://www.youtube.com/watch?v=sBUL2gjhqEE
MODE.B (5) =
BATCH MUXER
Can batch mux any DV source to TS or MP4
MKV/MP4 to TS
MKV/TS to MP4
MODE.P (6) =
PLOTTER
Can batch plot DoVi Level 1,2,3,4,5,6,8 and hdr10, hdr10plus, HLG, P5BL, video bitrate and audio channels
EXAMPLES (https://drive.google.com/drive/u/1/folders/154fBNllwOHL4Lckc7wDV8QKFJwFxnDt-)
see tutorial: https://www.youtube.com/watch?v=KHXvjtHNdB8
MODE.S (7) =
SCREENSHOTS
can export 16bits RGB real HDR screenshots (FEL P5 HDR10 HLG SDR) fully automated frame accurate or manual modes
can export SDR screenshots from a Dolby Vision 100nits trim pass.
see tutorial: https://www.youtube.com/watch?v=ElJ1KvQMgzE
can play FEL + BL or Profile 5 DV in HDR10 or SDR with madVR+MPC (if your pc can handle it)
can export HDR heatmap and gamut visualization (FEL P5 HDR10 HLG SDR)
can tonemap to SDR or HDR PQ (default = PQ)
EXAMPLES (https://docs.google.com/spreadsheets/d/15i0a84uiBtWiHZ5CXZZ7wygLFXwYOd84/edit?gid=1226038728#gid=1226038728)
frame-accurate screenshot maker tutorial: https://www.youtube.com/watch?v=SA-i1tZssIo
MANUAL SCREENSHOT EXAMPLE (https://s10.gifyu.com/images/S5l9w.gif)
Can create DV metadata or FEL video comparisons like this:
Metadata: https://drive.google.com/drive/folders/1g5I-z_sJmVu-SAIPNiiSlcdMiy2ka0mf
FEL: https://drive.google.com/drive/u/0/folders/1FS42T95TOSpoy4xtwUBIQmziCe_R_IKe
MODE.E (8) =
VIDEO/AUDIO ENCODERS
can convert audio (DDP 7.1 / Add silent or encoded core to TrueHD)
see tutorial (convert to ddp): https://www.youtube.com/watch?v=m5_Bt2yGPhE
see tutorial (add core): https://www.youtube.com/watch?v=X8CImPBh_DI
can encode bake fel to HDR10/P8 with dovibaker+x265 or NVenc
see tutorial: https://www.youtube.com/watch?v=8BvXqw_cGJE
can encode any HDR10/HLG/FELP7/P5 source to HDR or SDR (x265 or NVenc or prores)
can encode DV to SDR using official Level-2 100nits trim pass (Official Dolby cm_offline.exe)
can encode P7/P8 to profile 5 DV (requires DEE.exe)
can encode to profile 5 DV (requires DEE.exe)
can encode to profile 7 DV MEL or FEL without mapping or 600/1000nits mapping for the BL(requires DEE.exe)
MODE.M (9) =
MIXED
Can fix video framerate bitstream, color range
Can automatically find frame difference between two sources
can find bd playlist
can make 5 min samples. timestamp configurable at line: 109
can quickly find a video framecount (useful when creating a shotlist in 3-1)
Can tonemap pgs subtitles to different brightness
can edit HDR10 metadata
DIRECT MODE
drag and drop a file on the bat file and it will use workflow 1
the bat file can be associated with any video/rpu file.
L5 active area and cropping:
if the base layer is 16:9 (no black bars, fullscreen): set L5 to 0
if the base layer is 16:9 but has black bars: measure the BL letterbox and adjust L5 accordingly.
if the base layer is cropped set L5 to 0
Example 1:
input= 3840x2160p with active area of 2.40 (16:9 with black bars)
L5 offsets= Left:0 Right:0 Top:280 Bottom:280
Example 2:
input= 3840x2160p with active area of 1.78 (16:9 no black bars)
L5 offsets= Left:0 Right:0 Top:0 Bottom:0
Example 3:
input= 3840x1600p (cropped)
L5 offsets= Left:0 Right:0 Top:0 Bottom:0
Downscaling and upscaling:
divide or double the L5 values.
Example:
input 3840x2160 with L5 0,0,280,280
output 1920x1080 with L5 0,0,140,140
Input filename keywords that override the script's main settings:
DONTUPSCALE : Keep original resolution in 7-2
KEEPAUDIO : Keep all the audio
DONTMUX : Disable muxing
IGNORERPU : Ignore internal rpu for shot list in 3-1
REMOVECMV4 : Force CMV4.0 removal in 1-1
KEEPPRORES : Keep prores file
FORCESDR : Force SDR tonemapping in 7-1 7-2
KEEPTRIMS : keep trims in XML injection for 1-1 and 3-1
KEEP1000 : keep 1000nits trims in XML injection for 1-1 and 3-1
KEEP600 : keep 600nits trims in XML injection for 1-1 and 3-1
JUSTINJECT : Inject without changing the DV profile in 1-1
FORCEHDR10PLUS: force hdr10plus scene cut extract when input has dv for workflow 2-3
guest
13th February 2024, 17:21
Are you affiliated with RESET ??
'Cause this is straight off his Github page ??
Great set of tools, this !!!!
Kuler087
13th February 2024, 17:53
Yes, I'm RESET_9999 :)
speedy
13th February 2024, 21:10
@RESET, do you have access to a S922X-J chipset device (Ugoos AM6B+) and/or have any intention of testing one?
Kuler087
13th February 2024, 21:25
No, I use the Sony x800m2 for FEL playback.
The new CoreElec build for the Ugoos looks interesting though. I will let other people test FEL playback a bit more but if it's really 100% stable, I might get one.
guest
14th February 2024, 03:53
OK, Reset,
Here's that error I mentioned in the email.
I'm using 8-2-1, and it gets thru most of the process then this:-
libavutil 58. 36.100 / 58. 36.100
libavcodec 60. 36.100 / 60. 36.100
libavformat 60. 20.100 / 60. 20.100
libavdevice 60. 4.100 / 60. 4.100
libavfilter 9. 16.100 / 9. 16.100
libswscale 7. 6.100 / 7. 6.100
libswresample 4. 13.100 / 4. 13.100
libpostproc 57. 4.100 / 57. 4.100
Unrecognized option 'vbsf'.
Error splitting the argument list: Option not found
Error: No frames parsed!
Error: No RPU found
D:\Dovi_Encodes_MP4>"D:\DoVi_Scripts\tools\NVEncC\NVEncC64.exe" --vbr 50000 --codec h265 --multipass 2pass-full --preset P7 --output-depth 10 --profile main10 --max-bitrate 160000 --vbv-bufsize 160000 --colormatrix bt2020nc
--colorprim bt2020 --transfer smpte2084 --colorrange limited --chromaloc 2 --aud --repeat-headers --master-display "G(8500,39850)B(6550,2300)R(35400,14600)WP(15635,16450)L(10000000,1)" --max-cll "0,0" --dolby-vision-profile 8.1
--dolby-vision-rpu "D:\Dovi_Temp_MP4\temp.folder49\P8.RPU.bin" -i "D:\Dovi_Temp_MP4\temp.folder49\script.avs" -o "D:\Dovi_Encodes_MP4\removed file name.S01.E01.2010.2160p.HDR.UHD.BluRay.DD5.1.x265-10bit-HDS-001_DV_encoded.hevc"
-------------------------------------------------------------------------------------------------------------------
D:\Dovi_Encodes_MP4\removed file name.S01.E01.2010.2160p.HDR.UHD.BluRay.DD5.1.x265-10bit-HDS-001_DV_encoded.hevc
-------------------------------------------------------------------------------------------------------------------
Failed to open dovi rpu "D:\Dovi_Temp_MP4\temp.folder49\P8.RPU.bin".
Failed to open input file.
D:\Dovi_Encodes_MP4>echo off & goto :end
The script has been completed. Do you want to quit or go back to main menu (q or m default=q)?
This is a 10 minute chunk that I just converted to DV, and I thought I'd try 8-2-1.
Is it simply something I have missed installing, etc, or ??
I'm running an RTX 3050 GPU, BTW.
Kuler087
14th February 2024, 04:26
it looks like ffmpeg didnt like the ''vbsf'' parameter. Are you using the version included in the pack or your own version?
guest
14th February 2024, 04:31
It looks like the script thinks your input has DV but it doesn't?
input mediainfo or a sample please
converted file info (input):-
Format profile : Main 10@L6.1@High
HDR format : Dolby Vision, Version 1.0, Profile 8.0, dvhe.08.06, BL+RPU / SMPTE ST 2086, Version HDR10, HDR10 compatible
Codec ID : dvhe
Codec ID/Info : High Efficiency Video Coding with Dolby Vision
original file info:-
Format profile : Main 10@L6.1@High
HDR format : SMPTE ST 2086, HDR10 compatible
Like I said, I had just converted it to DV with 3-1.
Kuler087
14th February 2024, 04:34
sorry i edited my original response after realizing that the problem was a parameter in ffmpeg.
it looks like -vbsf is now deprecated and replaced by -bsf:v
either use the version in the tools pack or wait for the script's next version.
guest
14th February 2024, 05:07
sorry i edited my original response after realizing that the problem was a parameter in ffmpeg.
it looks like -vbsf is now deprecated and replaced by -bsf:v
either use the version in the tools pack or wait for the script's next version.
Interesting you mention that, 'cause that is what Google found :)
Cheers.
Update:- I changed it back to the version in the tools pack, and it looked like a different process, and NO errors...I think it was using NVencC, but MediaInfo doesn't show anything about it.
Update #2:-So I took a chance and changed all the -vbsf entries to -bsf:v, and using the latest FFmpeg, I didn't get any errors, so hopefully the process & encodes will be good to go.
Thanks
Atlantis
14th February 2024, 11:52
Please could someone explain for us casual users the difference between this and DDVT Tool? Do they do the same thing?
guest
14th February 2024, 12:04
Please could someone explain for us casual users the difference between this and DDVT Tool? Do they do the same thing?
In my humble opinion, DDVT does do the same thing, sort of.
I think it is a little harder to use the scripts, needing a cmd prompt, and copying the paths of the script & the file you want to process.
DoVi_Scripts is just a multi option menu, and you just choose the functions menu number, then simply drag the file you want to process, then there may or may not be a few more option you need to choose, then basically it does the rest itself.
But it also does a LOT of other conversions, etc, etc.
Makes a lot of other apps look pretty basic and lacking, in comparison.
It's a little involved to initially set it up, but then you're set.
DaMacFunkin
18th February 2024, 12:55
Hi, Updated to your latest pack, I am trying HDR to HDR DoviBake and I get this error (see screenshot), yet the file is present, can you advise please?
Kuler087
18th February 2024, 14:01
Does the FEL script work when you play it avspmod? Do you have an Nvidia GPU ?
DaMacFunkin
18th February 2024, 17:17
Hi, yes I have a Nvidia GPU that’s why I edited the config to use this.
Not sure what you mean by avspmod, please explain,
I encode HDR with Nvenc and Staxrip all the time so I’m not sure what is wrong?
DaMacFunkin
18th February 2024, 17:34
Hi, yes I have a Nvidia GPU that’s why I edited the config to use this.
Not sure what you mean by avspmod, please explain,
I encode HDR with Nvenc and Staxrip all the time so I’m not sure what is wrong?
Just tried to play the AB’s file with avspmod and it says invalid argument, the avs does play with media player classic, how do I fix this please?
Kuler087
18th February 2024, 17:40
I mean have you checked if the dovi_baker script works in avspmod?
Go into the temp folder and try to open the Avisynth script or create a new script with workflow 7-1 (manual mode)
Also, any error in the dovi_scripts window?
https://i.ibb.co/qxvYdVW/Capture-d-cran-2024-02-18-113730.png
Kuler087
18th February 2024, 17:41
Just tried to play the AB’s file with avspmod and it says invalid argument, the avs does play with media player classic, how do I fix this please?
Did you install avisynthplus?? if yes maybe try to reinstall it:
https://github.com/AviSynth/AviSynthPlus/releases/download/v3.7.3/AviSynthPlus_3.7.3_20230715.exe
DaMacFunkin
19th February 2024, 00:29
Did you install avisynthplus?? if yes maybe try to reinstall it:
https://github.com/AviSynth/AviSynthPlus/releases/download/v3.7.3/AviSynthPlus_3.7.3_20230715.exe
Hi, I uninstalled my old version of Avisynth and installed this one, I feel like I've spent all day on it, but now all of a sudden it is encoding, not very fast @ 9fps on --quality --vbr --2pass-full.
Has anybody been able to use --lookahead32 and --vbr-quality 19 with Dovibaker and Nvenc instead of 2 pass??
Thank you.
guest
19th February 2024, 05:00
Hi, I uninstalled my old version of Avisynth and installed this one, I feel like I've spent all day on it, but now all of a sudden it is encoding, not very fast @ 9fps on --quality --vbr --2pass-full.
Has anybody been able to use --lookahead32 and --vbr-quality 19 with Dovibaker and Nvenc instead of 2 pass??
Thank you.
AFAIK, you should be able to edit the NVenc_HDR_settings.bat (found in the Tools folder) to your hearts content.
I made a couple of changes to my liking the other day.
This may also be handy, to some:-
https://github.com/rigaya/NVEnc/blob/master/NVEncC_Options.en.md#nvencc-option-list-
https://github.com/rigaya/NVEnc/blob/master/NVEncC_Options.en.md#nvencc-option-list-
DaMacFunkin
19th February 2024, 08:01
Hi this completed and I'm happy with the results (Thank you Kuler087 (Reset)), also it took less than 4 hours so not too bad, I will try with the lookahead options next time I have a title that needs baking. Thank you.
guest
20th February 2024, 11:44
A few questions....
I am of course still learning this, and I have found a couple of things that I can't figure out.
1) When converting say a .thd, when the process if done, it's in an .mkv container, open it in MediaInfo, it's only the converted audio.
So it basically needs to be demuxed, or maybe renamed....
2) I tried to convert a Profile 5 (only) movie, with option 8-2-1, and it states that the P5 will be injected as a P8.1, these rpu's are in the temp folder (until they're not), so I copied them to play with later (yet to do that), but the processed file is a .hevc, no audio, no sub's, just the HDR10 conversion..I guess now I need to run it thru 3-1 to create a hybrid ???
3) Is there a way to save the temp folder, just in case there's something that might be needed ??
4) Also, if there are some temp or processed files from a previous job still present, and another job is started, and you don't notice, when it's almost completed, it states there are some same named files, and the process stops :( Auto renaming would be handy.
5) Also, you use FFMS2 as the decoder, is there a way to use some other decoder, eg:- L-Smash, DGindex, etc ?
6) I acquired DEE for another purpose, so I tried to map that, but it wasn't happy.
I think that's it, for now, sorry.
Cheers
Kuler087
20th February 2024, 13:11
1- Yes, EC3 track are encoded to an mkv container in order to preserve any delay present in input.
2- Encoder workflows don't mux by design. If you just mediainfo the hevc file, it won't show any DV info. You have to mux to mkv/ts/mp4 and then the DV flag will be present.
3- No but I could add the option in the next version
4- I've never seen that? if you start a workflow and the same temp folder already exist, it's automatically deleted before running the workflow.
5- I never had issue with ffms2 so I have no reason to use other indexers.
6- I don't like DEE... I wont touch those workflows.
guest
20th February 2024, 13:55
Thanks for the comments/feedback, Reset :) (replies in red)
1- Yes, EC3 track are encoded to an mkv container in order to preserve any delay present in input.
I knew there'd be a good reason.
2- Encoder workflows don't mux by design. If you just mediainfo the hevc file, it won't show any DV info. You have to mux to mkv/ts/mp4 and then the DV flag will be present.
Yep, that's pretty much what I've done.
3- No but I could add the option in the next version
I think if it was a Yes & No option in the script.
4- I've never seen that? if you start a workflow and the same temp folder already exist, it's automatically deleted before running the workflow.
Well, tbh, I don't really know what the problem is, but I've had it happen a few times when it's almost complete, it warns of an existing file, somewhere, and stops, I have generally either renamed or deleted similarly name files & folders.
5- I never had issue with ffms2 so I have no reason to use other indexers.
Had to ask, I haven't really got a problem with FFMS2. As you can see in my sig, I use RipBot264, and the dev of that is deadset against FFMS2, as he believes it drops too many frames, I can however force it to use FFMS2, (because it use to, before he found L-Smash) and have not had any issues.
6- I don't like DEE... I wont touch those workflows.
Well, I just wanted to try it, (because I had it) but if it's subpar, I actually read that somewhere else, too.
Kuler087
20th February 2024, 16:03
Had to ask, I haven't really got a problem with FFMS2. As you can see in my sig, I use RipBot264, and the dev of that is deadset against FFMS2, as he believes it drops too many frames, I can however force it to use FFMS2, (because it use to, before he found L-Smash) and have not had any issues.
Yes, I've heard of this issue with one version years ago but in my experience, I never had any dropped/dup frames with ffms2 and I encode about 3 movies per week and always verify them with workflow 7-2
guest
21st February 2024, 06:09
Hi Reset,
I have come across a dilemma (for me, that is), I have some video's (LOTR series), and they are "loaded" with DV P8.1, HDR10 & HDR10+.
My question is, I want to edit certain stuff out of each clip (eg:- the intro, previously on, and maybe end credits), would it better to extract the rpu before the editing,
and can the original unedited rpu inject properly ?? (I don't know how rpu's work)
OR just do the edits, and process it as a "new" hybrid ??
More info:- I just did a quick edit on a sample of this, and after running it thru RipBit264, it loses both the DV & HDR10+ info :(.
So it will need something injected afterwards, maybe easier just to run a Hybrid conversion.
It shouldn't matter if the HDR10+ info has gone, when you get the DV info back...correct ??
Even more info_:- Just did a quick Hybrid on the above sample, and it gets DV back, but only P8.0 (original was P8.1), (can you add a P8.1 option ??) also, I converted the AAC track to FLAC....DoVi_Scripts (or something it uses, I know you mention tsmuxer) doesn't like FLAC, there was no audio track, just video & sub's.
Might extract the rpu from the unedited sample, and see what happens trying to inject it...worth a shot.
Didn't work, got a lot of errors, this one was the first of many Error: expected ident at line 6 column 15
Kuler087
21st February 2024, 13:10
Hi Reset,
I have come across a dilemma (for me, that is), I have some video's (LOTR series), and they are "loaded" with DV P8.1, HDR10 & HDR10+.
My question is, I want to edit certain stuff out of each clip (eg:- the intro, previously on, and maybe end credits), would it better to extract the rpu before the editing,
and can the original unedited rpu inject properly ?? (I don't know how rpu's work)
OR just do the edits, and process it as a "new" hybrid ??
you can trim with mkvtoolnix or whatever you prefer. Just make sure your RPU start with a scene cut(0) after cutting.
see this video if you don't understand how to verify your RPU scene cuts: https://www.youtube.com/watch?v=lIO_ZfT-LnY
More info:- I just did a quick edit on a sample of this, and after running it thru RipBit264, it loses both the DV & HDR10+ info :(.
So it will need something injected afterwards, maybe easier just to run a Hybrid conversion.
It shouldn't matter if the HDR10+ info has gone, when you get the DV info back...correct ??
Even more info_:- Just did a quick Hybrid on the above sample, and it gets DV back, but only P8.0 (original was P8.1), (can you add a P8.1 option ??)
I don't know but the script cannot change that. so either your file has a problem or more likely, mediainfo is confused about your file.
also, I converted the AAC track to FLAC....DoVi_Scripts (or something it uses, I know you mention tsmuxer) doesn't like FLAC, there was no audio track, just video & sub's.
The script can only convert lossless audio to flac or pcm
Might extract the rpu from the unedited sample, and see what happens trying to inject it...worth a shot.
Didn't work, got a lot of errors, this one was the first of many[
please always post the complete log of the workflow and not just part of it but it sounds like you miss answered one of the user input question.
guest
21st February 2024, 13:58
you can trim with mkvtoolnix or whatever you prefer. Just make sure your RPU start with a scene cut(0) after cutting.
see this video if you don't understand how to verify your RPU scene cuts: https://www.youtube.com/watch?v=lIO_ZfT-LnY
I'll definitely check out the YT clip, I'm not sure if the way RipBot264 cuts video's, etc, could be a problem.
I don't know but the script cannot change that. so either your file has a problem or more likely, mediainfo is confused about your file.
I agree, MediaInfo can get stuff mixed up, it actually can't display codec info of a video that has been encoded with NVEnc.
The script can only convert lossless audio to flac or pcm
I have done a Hybrid run on a couple of clips that has FLAC, and it doesn't survive the process.
please always post the complete log of the workflow and not just part of it but it sounds like you miss answered one of the user input question.
Understood, I know the more info the better the diagnosis, I just need to figure out how to get the log, but I'll find it.
But yeah, I'm probably missing a lot of things.
----------------------------------------------------------------------------
I know that I have only been using this for a couple of weeks, and it just keeps amazing me what it can do :)
I know I'll have more questions, but I'll try not to bother you too much.
But whatever info you post here, will help others that want to use this.
Thanks again.
Cheers
Kuler087
21st February 2024, 14:54
I have done a Hybrid run on a couple of clips that has FLAC, and it doesn't survive the process.
Understood, I know the more info the better the diagnosis, I just need to figure out how to get the log, but I'll find it.
But yeah, I'm probably missing a lot of things.
s
You just copy the text from the window like this: https://justpaste.it/ejshe
this is a FLAC mkv input btw
guest
22nd February 2024, 06:08
Me again,
Now testing with 2.0.2...some nice changes & additions :).
So first off, I have been using the mp4.bat, as that will play on my LG TV.
Then, earlier today, I grabbed the latest beta, which in only mkv, and one of the first things I noticed in 3-1 was this :-
------------------------------------------
Input tracks info:
index=1
codec_name=truehd
channel_layout=7.1
TAG:language=eng
index=2
codec_name=ac3
channel_layout=5.1(side)
TAG:language=eng
------------------------------------------
Do you want to convert the audio to DDP? (y or n default=n) if input is 7.1, a 2nd window will popup, DO NOT CLOSE IT
The mp4.bat doesn't seem to have this option, is that by design ??
-----------------------------------------------------------------------------
So anyway, I processed a short HD10+ clip thru 2.0.3, and of course got an .mkv.
And here's the MediaInfo video data on that conversion:-
MediaInfo data from DoVi_Scripts 2.0.3 BETA mkv:-
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : Dolby Vision, Version 1.0, Profile 8.1, dvhe.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2094 App 4, Version HDR10+ Profile A, HDR10+ Profile A compatible
Codec ID : V_MPEGH/ISO/HEVC
Duration : 10 min 0 s
Bit rate : 43.9 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
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.221
Stream size : 3.07 GiB (87%)
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.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level : 737 cd/m2
Maximum Frame-Average Light Level : 130 cd/m2
So then I ran the above mkv thru the mp4 batcher, (5) in 2.0.1. mp4.bat, and got this:-
MediaInfo data from DoVi_Scripts 2.0.1 mp4:-
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : Dolby Vision, Version 1.0, Profile 8.0, dvhe.08.06, BL+RPU / SMPTE ST 2094 App 4, Version HDR10+ Profile A, HDR10+ Profile A compatible
Codec ID : dvhe
Codec ID/Info : High Efficiency Video Coding with Dolby Vision
Duration : 10 min 0 s
Bit rate : 43.9 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
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.221
Stream size : 3.07 GiB (86%)
Default : Yes
Alternate group : 1
Encoded date : 2024-02-22 04:35:46 UTC
Tagged date : 2024-02-22 04:36:39 UTC
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.0001 cd/m2, max: 1000 cd/m2
Maximum Content Light Level : 737 cd/m2
Maximum Frame-Average Light Level : 130 cd/m2
Codec configuration box : hvcC+dvcC
Kuler087
22nd February 2024, 13:01
probably because the script, by default use the very old mp4muxer which doesn't have a parameter to set the BL ID. Change the script MP4 version to new and mediainfo should report 8.1
:: choose the mp4muxer version for (1-1)(2-1)(3-1)(4-2) (OLD or NEW default = OLD) OLD works on (2018/2017) LG TVS but Itunes P8 hybrid wont work if you dont fix the bitstream framerate first.
set mp4_version=OLD
And the mp4 version always encodes DDP tracks unless you disable it in the settings.
:: you can completely disable ddp encoding for the all the workflows (YES or NO default = YES)
set encode_DDP=YES
guest
22nd February 2024, 13:21
probably because the script, by default use the very old mp4muxer which doesn't have a parameter to set the BL ID. Change the script MP4 version to new and mediainfo should report 8.1
And the mp4 version always encodes DDP tracks unless you disable it in the settings.
Excellent, I will check this out tomorrow.
Hopefully changing to the newer mp4muxer won't affect the playback on my LG.
Cheers.
Kuler087
22nd February 2024, 13:24
if it's 2019+ , the new mp4muxer should work.
guest
22nd February 2024, 13:48
if it's 2019+ , the new mp4muxer should work.
Hmmm, I have a 55SK8500PTA, which I think is mid to late 2018...I guess there's only way to find out.
I'll let you know.
UPDATE:- Well, unfortunately P8.1 won't display DV, only HDR :(, so I guess it'll have to be P8.0 for me, but that's alright.
benwaggoner
22nd February 2024, 18:22
Hmmm, I have a 55SK8500PTA, which I think is mid to late 2018...I guess there's only way to find out.
I'll let you know.
IIRC and FWIW, that device wouldn't have shipped with DoVi 8.1 support. Did it pick it up in an update?
I was pleasantly startled when my 2017 Z9D magically gained Dolby Vision support several years after I acquired it.
Kuler087
22nd February 2024, 18:57
I think 2018 is the year they added Profile 8 support. The LG C7 doesn't support it but the C8 does.
benwaggoner
22nd February 2024, 19:48
I think 2018 is the year they added Profile 8 support. The LG C7 doesn't support it but the C8 does.
News I can use. Thanks!
guest
23rd February 2024, 04:06
News I can use. Thanks!
So just to be clear, P8.0 or P8.1 works ??
guest
23rd February 2024, 05:28
Any chance of adding some more audio conversion options ??
eg:- aac to ec3, maybe ac3 to ec3.
Kuler087
23rd February 2024, 13:04
aac, I'm not sure if it's supported but I think AC3 is supported if you just run a file without lossless audio in 8-1-1
I'll check it out.
guest
24th February 2024, 02:15
aac, I'm not sure if it's supported but I think AC3 is supported if you just run a file without lossless audio in 8-1-1
I'll check it out.
Hi,
I can confirm that ac3 is supported, and encodes to EC3. :)
However, as you mentioned, aac is not supported (yet).
no lossless audio found, skipping file.
the script has been completed, press a key to start again...
I would think that with the tools you have in the "tool pack", that this should be able to be done.
It's just a matter of the correct instructions..
Cheers.
PS:-
So I'm clearly missing something here, I just did a quick Hybrid conversion on a clip that had ac3 640kbps audio track, and I was hoping that would be converted to EC3, but it remained as an ac3. (MP4 workflow)
I converted the mp4 back to mkv (MKVToolNix) to demux the ac3 track, then used 8-1-1 to convert to EC3, then remuxed that again with MKVToolNix, then ran it thru #5 (MP4 Muxer), and there it all was.
DaMacFunkin
25th February 2024, 09:14
Hi,
Having problems trying to use custom settings in DoVi Baker with NVEnc, the default settings work fine as follows:
E:\Dolby-Vision-Tools>"E:\Dolby-Vision-Tools\tools\NVEncC\NVEncC64.exe" --vbr 50000 --codec h265 --multipass 2pass-full --preset P7 --output-depth 10 --profile main10 --max-bitrate 160000 --vbv-bufsize 160000 --colormatrix bt2020nc --colorprim bt2020 --transfer smpte2084 --colorrange limited --chromaloc 2 --aud --repeat-headers --master-display "G(8500,39850)B(6550,2300)R(35400,14600)WP(15635,16450)L(10000000,1)" --max-cll "900,198" --dolby-vision-profile 8.1 --dolby-vision-rpu "E:\Dolby-Vision-Tools\temp.folder49\P8.RPU.bin" -i "E:\Dolby-Vision-Tools\temp.folder49\script.avs" -o "E:\Dolby-Vision-Tools\Total Recall (1990)_encoded.hevc"
--------------------------------------------------------------------------------
E:\Dolby-Vision-Tools\Total Recall (1990)_encoded.hevc
--------------------------------------------------------------------------------
Max B frames are 0 frames.
^^^As stated the above starts to encode fine.
When I copy settings that I use with HDR in Staxrip and edit the NVEnc settings it fails to run the encoder, can anybody advise what DoVi baker doesn't like about the below settings please?
E:\Dolby-Vision-Tools>"E:\Dolby-Vision-Tools\tools\NVEncC\NVEncC64.exe" --avhw --vbr 40000 --codec h265 --preset quality --output-depth 10 --profile main --level 5.1 --qp-init 1 --max-bitrate 40000 --aq --bframes 0 --ref 5 --lookahead 32 --vbr-quality 17 --colormatrix bt2020nc --colorprim bt2020 --transfer smpte2084 --colorrange limited --chromaloc 2 --aud --repeat-headers --master-display "G(8500,39850)B(6550,2300)R(35400,14600)WP(15635,16450)L(10000000,1)" --max-cll "900,198" --dolby-vision-profile 8.1 --dolby-vision-rpu "E:\Dolby-Vision-Tools\temp.folder49\P8.RPU.bin" -i "E:\Dolby-Vision-Tools\temp.folder49\script.avs" -o "E:\Dolby-Vision-Tools\Total Recall (1990)_encoded.hevc"
--------------------------------------------------------------------------------
E:\Dolby-Vision-Tools\Total Recall (1990)_encoded.hevc
--------------------------------------------------------------------------------
avcuvid: error opening file "E:\Dolby-Vision-Tools\temp.folder49\script.avs": Invalid data found when processing input
failed to initialize file reader(s).
Failed to open input file.
E:\Dolby-Vision-Tools>echo off & goto :end
Thank you for any help.
guest
25th February 2024, 13:00
Hi,
Having problems trying to use custom settings in DoVi Baker with NVEnc, the default settings work fine as follows:
^^^As stated the above starts to encode fine.
When I copy settings that I use with HDR in Staxrip and edit the NVEnc settings it fails to run the encoder, can anybody advise what DoVi baker doesn't like about the below settings please?
Thank you for any help.
I'm pretty new to DoVi_Scripts, but if you're trying to use Staxrip settings, I'd say you're in for a world of pain !!!
I'm pretty sure that all you need to do is edit the NVenc_HDR_settings.bat file in the "tools" folder.
set settings=--vbr 50000 --codec h265 --multipass 2pass-full --preset P7 --output-depth 10 --profile main10 --max-bitrate 160000 --vbv-bufsize 160000 --colormatrix bt2020nc --colorprim bt2020 --transfer smpte2084 --colorrange limited --chromaloc 2 --aud --repeat-headers
:: do not remove the ''set settings=''
You may only need to use this:- (only guessing)
set settings=--avhw --vbr 40000 --codec h265 --preset quality --output-depth 10 --profile main --level 5.1 --qp-init 1 --max-bitrate 40000 --aq --bframes 0 --ref 5 --lookahead 32 --vbr-quality 17 --colormatrix bt2020nc --colorprim bt2020 --transfer smpte2084 --colorrange limited --chromaloc 2 --aud --repeat-headers
https://github.com/rigaya/NVEnc/blob/master/NVEncC_Options.en.md
I have changed a couple fo commands and it's worked, the rest of the settings & commands are controlled elsewhere in the app, and probably look after themselves.
Kuler087
25th February 2024, 13:50
Hi,
PS:-
So I'm clearly missing something here, I just did a quick Hybrid conversion on a clip that had ac3 640kbps audio track, and I was hoping that would be converted to EC3, but it remained as an ac3. (MP4 workflow)
I converted the mp4 back to mkv (MKVToolNix) to demux the ac3 track, then used 8-1-1 to convert to EC3, then remuxed that again with MKVToolNix, then ran it thru #5 (MP4 Muxer), and there it all was.
lossy audio conversion is only supported in 8-1-1. For all the other workflows, only lossless audio get converted to EAC3 and I don't think I will change this behavior.
Why do you want to convert ac3 to ec3?
PS: I added AAC support in the latest beta.
When I copy settings that I use with HDR in Staxrip and edit the NVEnc settings it fails to run the encoder, can anybody advise what DoVi baker doesn't like about the below settings please?
No idea, but try to add one custom cmd at a time until you find which one doesn't work.
PS: I found an issue (https://slow.pics/c/z5XCkMkP) 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.
guest
25th February 2024, 14:36
lossy audio conversion is only supported in 8-1-1. For all the other workflows, only lossless audio get converted to EAC3 and I don't think I will change this behavior.
Why do you want to convert ac3 to ec3?
Well, one reason is that some of the series episodes have THD 7.1, and I will convert them to EC 5.1 (my TV/"home theatre" doesn't support thd or 7.1), and I just wanted them all the same....
PS: I added AAC support in the latest beta.
Is this beta mkv or mp4 ?? It's mkv, I just downloaded it, can I change this to mp4 ??
The Beta is 2.0.3, I got that a couple of days ago, or have you changed it since ??
No idea, but try to add one custom cmd at a time until you find which one doesn't work.
PS: I found an issue (https://slow.pics/c/z5XCkMkP) 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).
Is there also an update for the tool pack ?? (I actually hope not, it's another 2.6Gb rar), but if so, what has changed ?? maybe a partial update.
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.
I actually converted a P5 the other day, got it to P8, but like you mention, the colour is a little off.
Does DoVi_Scripts support Vapoursynth ??? (I haven't seen it anywhere).
Thanks.
Kuler087
25th February 2024, 14:47
Is this beta mkv or mp4 ?? It's mkv, I just downloaded it, can I change this to mp4 ??
The Beta is 2.0.3, I got that a couple of days ago, or have you changed it since ??
the scripts are all the same, you can just change the filename to TS or MP4
The last modified date is written in the right corner when you launch the script.
Is there also an update for the tool pack ?? (I actually hope not, it's another 2.6Gb rar), but if so, what has changed ?? maybe a partial update.
add these into your tools folder:
https://drive.google.com/file/d/1Sqc6dMtwZ4IpVTVZTauBXzyWFqzku18x/view?usp=drive_link
Does DoVi_Scripts support Vapoursynth ??? (I haven't seen it anywhere).
it does with the new tools and the latest beta
Gatorman3385
25th February 2024, 22:42
The script is crashing when I try to inject a RPU into an existing MKV. I'm not sure how to grab the logs, because it crashes when it starts injecting. Also crashing with latest BETA. Any thoughts on what I should do to track down the error? It must be my latest StaxRip encode. Other files work just fine.
Kuler087
25th February 2024, 23:21
you can provide a small sample.
guest
25th February 2024, 23:56
The script is crashing when I try to inject a RPU into an existing MKV. I'm not sure how to grab the logs, because it crashes when it starts injecting. Also crashing with latest BETA. Any thoughts on what I should do to track down the error? It must be my latest StaxRip encode. Other files work just fine.
Welcome to this thread :)
I asked about "saving the logs" just the other day, and it's pretty simple, see here for a "how to":-
https://forum.doom9.org/showthread.php?p=1998025#post1998025
I'm actually not too surprised that you're having issues with StaxRip, so many new builds & problem solving, recently.
I would strongly suggest that ANYTHING DV, should be done with DS.
FYI:- If you need to send a sample (as requested by the dev), you can cut a sample using MKVToolNix, and posting it on Mediafire (as good as any, & free)
Good Luck.
Kuler087
26th February 2024, 00:01
He can't do that when the script crashes. But it's all good, he sent me a sample and the problem was a typo at line 894 for Profile 7 RPU input in workflow 1-1.
fixed in the latest beta.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.