commit 4e76f101baa8e04bdea74b0a1e317688c15f511e Author: bissen21 Date: Tue Jan 10 15:28:54 2023 -0600 Initial Commit diff --git a/4K DV Compress.bat b/4K DV Compress.bat new file mode 100644 index 0000000..407e82c --- /dev/null +++ b/4K DV Compress.bat @@ -0,0 +1,15 @@ +::@echo off +:: Delayed expansion has to be enabled, to dynamically assign values for variables using "!VariableName!" +::setlocal enabledelayedexpansion + +::HandBrakeCLI -i %1 -o temp/handbrake.mkv -f av_mkv -m -e x265_10bit --encoder-preset slower -q 20 --encoder-profile auto --all-audio -E copy --audio-copy-mask aac,eac3,dts,ac3,truehd,dtshd,mp3 --crop-mode auto --auto-anamorphic --all-subtitles > temp/log.txt + +ffmpeg.exe -i %1 -c:v copy temp/hdr.hevc >> temp/log.txt + +dovi_tool extract-rpu temp/hdr.hevc -o "temp/RPU.bin" >> temp/log.txt + +ffmpeg.exe -i temp/handbrake.mkv -c:v copy temp/nonhdr.hevc >> temp/log.txt + +dovi_tool.exe inject-rpu -i temp/nonhdr.hevc --rpu-in "temp/RPU.bin" -o temp/hdrcompressed.hevc >> temp/log.txt + +"%ProgramFiles%\MKVToolNix\mkvmerge.exe" --output DVCompressed.mkv temp/hdrcompressed.hevc -D temp/handbrake.mkv >> temp/log.txt diff --git a/4k to 1080p tonemap.bat b/4k to 1080p tonemap.bat new file mode 100644 index 0000000..2ef286d --- /dev/null +++ b/4k to 1080p tonemap.bat @@ -0,0 +1 @@ +ffmpeg.exe -i %1 -map 0 -c:a copy -c:s copy -vf zscale=-1:1080,zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv,format=yuv420p -c:v libx265 -crf 20 -preset slower output.mkv \ No newline at end of file diff --git a/HandBrakeCLI.exe b/HandBrakeCLI.exe new file mode 100644 index 0000000..f51ec47 Binary files /dev/null and b/HandBrakeCLI.exe differ diff --git a/dovi_tool.exe b/dovi_tool.exe new file mode 100644 index 0000000..2ed8c79 Binary files /dev/null and b/dovi_tool.exe differ diff --git a/ffmpeg.exe b/ffmpeg.exe new file mode 100644 index 0000000..71b5352 Binary files /dev/null and b/ffmpeg.exe differ