Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set file="BECK Boot 02"
- set crf=18
- set mode=10
- set res="696x478"
- set fps=60
- set source="NTSC_F"
- set error=false
- set rand=%random%
- if not exist backup/ (
- mkdir backup
- )
- :while
- if exist backup\%rand%_%file%.mkv (
- set rand=%random%
- goto :while
- ) else (
- echo %date% %time% - batch %rand% has started >> %file%_batlog.txt
- )
- set avs2pipemod="C:\TEMP\VID-PGM\avs2pipemod\avs2pipemod.exe"
- if %mode%==8 (
- set x264="C:\TEMP\VID-PGM\x264\x264.exe"
- set demux="avs"
- set depth=8
- set csp="i420"
- set profile="high"
- ) else if %mode%==10 (
- set x264="C:\TEMP\VID-PGM\x264\64\x264-10bit.exe"
- set demux="raw"
- set depth=10
- set csp="i420"
- set profile="high10"
- ) else if %mode%==444 (
- set x264="C:\TEMP\VID-PGM\x264\64\x264-10bit.exe"
- set demux="raw"
- set depth=10
- set csp="i444"
- set profile="high444"
- ) else (
- echo you forgot to set mode >> %file%_batlog.txt
- set error=true
- )
- if %fps%==24 (
- set rate="24000/1001"
- set key=240
- set minkey=24
- ) else if %fps%==25 (
- set rate="25000/1000"
- set key=250
- set minkey=25
- ) else if %fps%==30 (
- set rate="30000/1001"
- set key=300
- set minkey=30
- ) else if %fps%==50 (
- set rate="50000/1000"
- set key=500
- set minkey=50
- ) else if %fps%==60 (
- set rate="60000/1001"
- set key=600
- set minkey=60
- ) else (
- echo you forgot to set fps >> %file%_batlog.txt
- set error=true
- )
- if %source%=="NTSC_F" (
- set color="smpte170m"
- set ratio="4320:4739"
- ) else if %source%=="NTSC_W" (
- set color="smpte170m"
- set ratio="5760:4739"
- ) else if %source%=="PAL_F" (
- set color="bt470bg"
- set ratio="128:117"
- ) else if %source%=="PAL_W" (
- set color="bt470bg"
- set ratio="512:351"
- ) else if %source%=="BD" (
- set color="bt709"
- set ratio="1:1"
- ) else (
- echo you forgot to set source >> %file%_batlog.txt
- set error=true
- )
- if %error%==true (
- echo you have an error, check your bat >> %file%_batlog.txt
- exit
- ) else (
- echo %date% %time% - encode %rand% has started >> %file%_batlog.txt
- )
- if %mode%==8 (
- echo mode 8 not setup yet > error.txt
- exit
- ) else if %mode%==10 (
- %avs2pipemod% -rawvideo %file%.avs | %x264% --demuxer %demux% --input-depth %depth% --input-csp %csp% --input-res %res% --fps %rate% --profile %profile% --level 5.2 --preset placebo --crf %crf% --thread-input --threads 8 --deblock 0:0 --keyint %key% --min-keyint %minkey% --qcomp 0.75 --no-mbtree --merange 32 --me umh --subme 11 --psy-rd 1.0:0.10 --fade-compensate 0.5 --no-dct-decimate --no-fast-pskip --non-deterministic --colorprim %color% --transfer %color% --colormatrix %color% --sar %ratio% --output %file%.mkv - 2>%file%.mkv.log
- ) else if %mode%==444 (
- %avs2pipemod% -rawvideo %file%.avs | %x264% --demuxer %demux% --input-depth %depth% --input-csp %csp% --input-res %res% --fps %rate% --profile %profile% --level 5.2 --preset placebo --crf %crf% --thread-input --threads 8 --deblock 0:0 --keyint %key% --min-keyint %minkey% --qcomp 0.75 --no-mbtree --merange 32 --me umh --subme 11 --psy-rd 1.0:0.10 --fade-compensate 0.5 --no-dct-decimate --no-fast-pskip --non-deterministic --colorprim %color% --transfer %color% --colormatrix %color% --sar %ratio% --output %file%.mkv - 2>%file%.mkv.log
- ) else (
- echo you forgot to set a mode >> %file%_batlog.txt
- exit
- )
- echo %date% %time% - encode %rand% has finished >> %file%_batlog.txt
- copy %file%.mkv backup\%rand%_%file%.mkv
- copy %file%.mkv.log backup\%rand%_%file%.mkv.log
- echo %date% %time% - backup %rand% has been completed >> %file%_batlog.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement