2023-01-22 17:53:56 -06:00
|
|
|
@SET TITLE=%~1
|
2023-01-14 10:52:46 -06:00
|
|
|
|
2023-01-22 17:53:56 -06:00
|
|
|
mkdir "../%TITLE%/temp"
|
2023-01-10 15:28:54 -06:00
|
|
|
|
2023-01-22 17:53:56 -06:00
|
|
|
HandBrakeCLI -i "../%TITLE%/%TITLE% - 4k DV.mkv" -o "../%TITLE%/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 > "../%TITLE%/temp/log.txt"
|
2023-01-10 15:28:54 -06:00
|
|
|
|
2023-01-22 17:53:56 -06:00
|
|
|
ffmpeg.exe -i "../%TITLE%/%TITLE% - 4k DV.mkv" -c:v copy -f hevc - | dovi_tool -m 2 --crop extract-rpu - -o "../%TITLE%/temp/RPU.bin" >> "../%TITLE%/temp/log.txt"
|
2023-01-10 15:28:54 -06:00
|
|
|
|
2023-01-22 17:53:56 -06:00
|
|
|
ffmpeg.exe -i "../%TITLE%/temp/handbrake.mkv" -c:v copy "../%TITLE%/temp/nonhdr.hevc" >> "../%TITLE%/temp/log.txt"
|
2023-01-10 15:28:54 -06:00
|
|
|
|
2023-01-22 17:53:56 -06:00
|
|
|
dovi_tool.exe inject-rpu -i "../%TITLE%/temp/nonhdr.hevc" --rpu-in "../%TITLE%/temp/RPU.bin" -o "../%TITLE%/temp/hdrcompressed.hevc" >> "../%TITLE%/temp/log.txt"
|
|
|
|
|
|
|
|
"%ProgramFiles%\MKVToolNix\mkvmerge.exe" --output "../%TITLE%/%TITLE% - 4k DVP8 Subs.mkv" "../%TITLE%/temp/hdrcompressed.hevc" -D -S -B -T --no-chapters -M --no-global-tags "../%TITLE%/temp/handbrake.mkv" --default-track-flag 0 "../%TITLE%/%TITLE%.en.srt" -D -A "../%TITLE%/temp/handbrake.mkv" >> "../%TITLE%/temp/log.txt"
|