Use relative paths. Use handbrake for tonemapping. Insert SRT subs into final 4k mkv.
This commit is contained in:
parent
609cce7dd0
commit
795deaf849
1
1080p Compress.bat
Normal file
1
1080p Compress.bat
Normal file
@ -0,0 +1 @@
|
||||
HandBrakeCLI -i %1 -o output.mkv -f av_mkv -m -e x265 --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
|
@ -1,11 +1,13 @@
|
||||
mkdir temp
|
||||
@SET TITLE=%~1
|
||||
|
||||
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
|
||||
mkdir "../%TITLE%/temp"
|
||||
|
||||
ffmpeg.exe -i %1 -c:v copy -f hevc - | dovi_tool -m 2 --crop extract-rpu - -o "temp/RPU.bin" >> temp/log.txt
|
||||
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"
|
||||
|
||||
ffmpeg.exe -i temp/handbrake.mkv -c:v copy temp/nonhdr.hevc >> temp/log.txt
|
||||
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"
|
||||
|
||||
dovi_tool.exe inject-rpu -i temp/nonhdr.hevc --rpu-in "temp/RPU.bin" -o temp/hdrcompressed.hevc >> temp/log.txt
|
||||
ffmpeg.exe -i "../%TITLE%/temp/handbrake.mkv" -c:v copy "../%TITLE%/temp/nonhdr.hevc" >> "../%TITLE%/temp/log.txt"
|
||||
|
||||
"%ProgramFiles%\MKVToolNix\mkvmerge.exe" --output DVCompressed8.mkv temp/hdrcompressed.hevc -D temp/handbrake.mkv >> temp/log.txt
|
||||
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"
|
||||
|
@ -1 +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
|
||||
HandBrakeCLI -i %1 -o output-1080p.mkv -f av_mkv -m -e x264 --encoder-preset slower -q 20 --encoder-profile auto --all-audio -E copy --audio-copy-mask aac,eac3,dts,ac3,truehd,dtshd,mp3 --maxWidth 1920 --crop-mode auto --auto-anamorphic --colorspace bt709 --all-subtitles
|
Loading…
Reference in New Issue
Block a user