Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- @setlocal
- set COMMON=--input-range pc --range pc --colorprim smpte170m --transfer smpte170m --colormatrix smpte170m --output-csp i444 --profile high444 --output-depth 10
- echo.
- echo :::::::::::::
- echo :: primary ::
- echo :::::::::::::
- echo.
- mkdir primary
- call:Timer "x264_x86 --threads auto --crf 26 --keyint 600 --ref 16 --bframes 16 --b-adapt 2 --trellis 2 --direct auto --me tesa --merange 64 --subme 11 --partitions all --no-dct-decimate --no-fast-pskip %COMMON% -o primary\crf-26.mkv smw.avs" crf-26
- call:Timer "x264_x86 --threads auto --crf 24 --keyint 600 --ref 16 --bframes 16 --b-adapt 2 --trellis 2 --direct auto --me tesa --merange 64 --subme 11 --partitions all --no-dct-decimate --no-fast-pskip %COMMON% -o primary\crf-24.mkv smw.avs" crf-24
- call:Timer "x264_x86 --threads auto --crf 22 --keyint 600 --ref 16 --bframes 16 --b-adapt 2 --trellis 2 --direct auto --me tesa --merange 64 --subme 11 --partitions all --no-dct-decimate --no-fast-pskip %COMMON% -o primary\crf-22.mkv smw.avs" crf-22
- call:Timer "x264_x86 --threads auto --crf 20 --keyint 600 --ref 16 --bframes 16 --b-adapt 2 --trellis 2 --direct auto --me tesa --merange 64 --subme 11 --partitions all --no-dct-decimate --no-fast-pskip %COMMON% -o primary\current.mkv smw.avs" current
- call:Timer "x264_x86 --threads auto --crf 18 --keyint 600 --ref 16 --bframes 16 --b-adapt 2 --trellis 2 --direct auto --me tesa --merange 64 --subme 11 --partitions all --no-dct-decimate --no-fast-pskip %COMMON% -o primary\crf-18.mkv smw.avs" crf-18
- call:Timer "x264_x86 --threads auto --crf 16 --keyint 600 --ref 16 --bframes 16 --b-adapt 2 --trellis 2 --direct auto --me tesa --merange 64 --subme 11 --partitions all --no-dct-decimate --no-fast-pskip %COMMON% -o primary\crf-16.mkv smw.avs" crf-16
- call:Timer "x264_x86 --threads auto --crf 14 --keyint 600 --ref 16 --bframes 16 --b-adapt 2 --trellis 2 --direct auto --me tesa --merange 64 --subme 11 --partitions all --no-dct-decimate --no-fast-pskip %COMMON% -o primary\crf-14.mkv smw.avs" crf-14
- call:Timer "x264_x86 --threads auto --crf 20 --keyint 600 --ref 16 --bframes 16 --b-adapt 2 --trellis 2 --direct auto --me umh --merange 16 --subme 7 --partitions all --no-dct-decimate --no-fast-pskip %COMMON% -o primary\me-umh-merange-16-subme-7.mkv smw.avs" me-umh-merange-16-subme-7
- call:Timer "x264_x86 --threads 1 --crf 20 --keyint 600 --ref 16 --bframes 16 --b-adapt 2 --trellis 2 --direct auto --me tesa --merange 64 --subme 11 --partitions all --no-dct-decimate --no-fast-pskip %COMMON% -o primary\threads-1.mkv smw.avs" threads-1
- call:Timer "x264_x86 --threads auto --crf 20 --keyint 600 --ref 16 --bframes 16 --b-adapt 2 --trellis 2 --direct auto --me tesa --merange 64 --subme 11 --partitions all --no-dct-decimate --no-fast-pskip --input-range pc --range pc --colorprim smpte170m --transfer smpte170m --colormatrix smpte170m --output-csp i444 --profile high444 -o primary\8-bit.mkv smw.avs" 8-bit
- call:Timer "x264_x86 --tune animation --preset veryslow %COMMON% -o primary\animation-veryslow.mkv smw.avs" animation-veryslow
- call:Timer "x264_x86 --tune animation --preset placebo %COMMON% -o primary\animation-placebo.mkv smw.avs" animation-placebo
- echo.
- echo ::::::::::::::
- echo :: lossless ::
- echo ::::::::::::::
- echo.
- mkdir lossless
- call:Timer "x264_x86 --threads auto --qp 0 --keyint 600 --ref 16 --bframes 16 --b-adapt 2 --trellis 2 --direct auto --me tesa --merange 64 --subme 11 --partitions all --no-dct-decimate --no-fast-pskip --output-csp rgb --range pc --input-csp rgb24 --input-range pc -o lossless\current.mkv smw.avs" current
- call:Timer "x264_x86 --threads auto --qp 0 --keyint 600 --ref 16 --bframes 16 --b-adapt 2 --trellis 2 --direct auto --me tesa --merange 128 --subme 11 --partitions all --no-dct-decimate --no-fast-pskip --output-csp rgb --range pc --input-csp rgb24 --input-range pc -o lossless\merange-128.mkv smw.avs" merange-128
- call:Timer "x264_x86 --threads auto --qp 0 --keyint 600 --ref 16 --bframes 16 --b-adapt 2 --trellis 2 --direct auto --me tesa --merange 256 --subme 11 --partitions all --no-dct-decimate --no-fast-pskip --output-csp rgb --range pc --input-csp rgb24 --input-range pc -o lossless\merange-256.mkv smw.avs" merange-256
- call:Timer "x264_x86 --threads auto --qp 0 --tune animation --preset veryslow --output-csp rgb --range pc --input-csp rgb24 --input-range pc -o lossless\animation-veryslow.mkv smw.avs" animation-veryslow
- call:Timer "x264_x86 --threads auto --qp 0 --tune animation --preset placebo --output-csp rgb --range pc --input-csp rgb24 --input-range pc -o lossless\animation-placebo.mkv smw.avs" animation-placebo
- call:Timer "x264_x86 --threads auto --qp 0 --tune animation --preset veryslow --merange 128 --output-csp rgb --range pc --input-csp rgb24 --input-range pc -o lossless\animation-veryslow-merange-128.mkv smw.avs" animation-veryslow-merange-128
- call:Timer "x264_x86 --threads auto --qp 0 --tune animation --preset veryslow --merange 256 --output-csp rgb --range pc --input-csp rgb24 --input-range pc -o lossless\animation-veryslow-merange-256.mkv smw.avs" animation-veryslow-merange-256
- call:Timer "x264_x86 --threads auto --qp 0 --tune animation --preset placebo --merange 128 --output-csp rgb --range pc --input-csp rgb24 --input-range pc -o lossless\animation-placebo-merange-128.mkv smw.avs" animation-placebo-merange-128
- call:Timer "x264_x86 --threads auto --qp 0 --tune animation --preset placebo --merange 256 --output-csp rgb --range pc --input-csp rgb24 --input-range pc -o lossless\animation-placebo-merange-256.mkv smw.avs" animation-placebo-merange-256
- echo.
- echo ::::::::
- echo :: 2x ::
- echo ::::::::
- echo.
- mkdir 2x
- call:Timer "x264_x86 --threads auto --crf 26 --keyint 600 --ref 16 --bframes 16 --b-adapt 2 --trellis 2 --direct auto --me tesa --merange 64 --subme 11 --partitions all --no-dct-decimate --no-fast-pskip %COMMON% -o 2x\crf-26.mkv smw2x.avs" crf-26
- call:Timer "x264_x86 --threads auto --crf 24 --keyint 600 --ref 16 --bframes 16 --b-adapt 2 --trellis 2 --direct auto --me tesa --merange 64 --subme 11 --partitions all --no-dct-decimate --no-fast-pskip %COMMON% -o 2x\crf-24.mkv smw2x.avs" crf-24
- call:Timer "x264_x86 --threads auto --crf 22 --keyint 600 --ref 16 --bframes 16 --b-adapt 2 --trellis 2 --direct auto --me tesa --merange 64 --subme 11 --partitions all --no-dct-decimate --no-fast-pskip %COMMON% -o 2x\crf-22.mkv smw2x.avs" crf-22
- call:Timer "x264_x86 --threads auto --crf 20 --keyint 600 --ref 16 --bframes 16 --b-adapt 2 --trellis 2 --direct auto --me tesa --merange 64 --subme 11 --partitions all --no-dct-decimate --no-fast-pskip %COMMON% -o 2x\current.mkv smw2x.avs" current
- call:Timer "x264_x86 --threads auto --crf 18 --keyint 600 --ref 16 --bframes 16 --b-adapt 2 --trellis 2 --direct auto --me tesa --merange 64 --subme 11 --partitions all --no-dct-decimate --no-fast-pskip %COMMON% -o 2x\crf-18.mkv smw2x.avs" crf-18
- call:Timer "x264_x86 --threads auto --crf 16 --keyint 600 --ref 16 --bframes 16 --b-adapt 2 --trellis 2 --direct auto --me tesa --merange 64 --subme 11 --partitions all --no-dct-decimate --no-fast-pskip %COMMON% -o 2x\crf-16.mkv smw2x.avs" crf-16
- call:Timer "x264_x86 --threads auto --crf 14 --keyint 600 --ref 16 --bframes 16 --b-adapt 2 --trellis 2 --direct auto --me tesa --merange 64 --subme 11 --partitions all --no-dct-decimate --no-fast-pskip %COMMON% -o 2x\crf-14.mkv smw2x.avs" crf-14
- call:Timer "x264_x86 --threads auto --crf 20 --keyint 600 --ref 16 --bframes 16 --b-adapt 2 --trellis 2 --direct auto --me umh --merange 16 --subme 7 --partitions all --no-dct-decimate --no-fast-pskip %COMMON% -o 2x\me-umh-merange-16-subme-7.mkv smw2x.avs" current
- call:Timer "x264_x86 --threads 1 --crf 20 --keyint 600 --ref 16 --bframes 16 --b-adapt 2 --trellis 2 --direct auto --me tesa --merange 64 --subme 11 --partitions all --no-dct-decimate --no-fast-pskip %COMMON% -o 2x\threads-1.mkv smw2x.avs" threads-1
- call:Timer "x264_x86 --threads auto --crf 20 --keyint 600 --ref 16 --bframes 16 --b-adapt 2 --trellis 2 --direct auto --me tesa --merange 64 --subme 11 --partitions all --no-dct-decimate --no-fast-pskip --input-range pc --range pc --colorprim smpte170m --transfer smpte170m --colormatrix smpte170m --output-csp i444 --profile high444 -o 2x\8-bit.mkv smw2x.avs" 8-bit
- call:Timer "x264_x86 --tune animation --preset veryslow %COMMON% -o 2x\animation-veryslow.mkv smw2x.avs" animation-veryslow
- call:Timer "x264_x86 --tune animation --preset placebo %COMMON% -o 2x\animation-placebo.mkv smw2x.avs" animation-placebo
- pause
- ::::::::::::::::::::
- :: Timer function ::
- ::::::::::::::::::::
- :Timer
- set start=%time%
- echo.
- echo ===================================================================================================
- echo %~2
- echo ===================================================================================================
- echo %~1
- echo ===================================================================================================
- echo.
- %~1
- echo.
- set end=%time%
- set options="tokens=1-4 delims=:.,"
- for /f %options% %%a in ("%start%") do set start_h=%%a&set /a start_m=100%%b %% 100&set /a start_s=100%%c %% 100&set /a start_ms=100%%d %% 100
- for /f %options% %%a in ("%end%") do set end_h=%%a&set /a end_m=100%%b %% 100&set /a end_s=100%%c %% 100&set /a end_ms=100%%d %% 100
- set /a hours=%end_h%-%start_h%
- set /a mins=%end_m%-%start_m%
- set /a secs=%end_s%-%start_s%
- set /a ms=%end_ms%-%start_ms%
- if %ms% lss 0 set /a secs = %secs% - 1 & set /a ms = 100%ms%
- if %secs% lss 0 set /a mins = %mins% - 1 & set /a secs = 60%secs%
- if %mins% lss 0 set /a hours = %hours% - 1 & set /a mins = 60%mins%
- if %hours% lss 0 set /a hours = 24%hours%
- if 1%ms% lss 100 set ms=0%ms%
- set /a totalsecs = %hours%*3600 + %mins%*60 + %secs%
- echo command took %totalsecs%.%ms%s total
- echo.
- goto:eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement