Initial Commit

This commit is contained in:
Adam Bissen 2023-01-10 15:28:54 -06:00
commit 4e76f101ba
5 changed files with 16 additions and 0 deletions

15
4K DV Compress.bat Normal file
View File

@ -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

1
4k to 1080p tonemap.bat Normal file
View File

@ -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

BIN
HandBrakeCLI.exe Normal file

Binary file not shown.

BIN
dovi_tool.exe Normal file

Binary file not shown.

BIN
ffmpeg.exe Normal file

Binary file not shown.