Advertisement
feos

x264 tests

Jun 20th, 2019
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 9.74 KB | None | 0 0
  1. @echo off
  2. @setlocal
  3.  
  4. set COMMON=--input-range pc --range pc --colorprim smpte170m --transfer smpte170m --colormatrix smpte170m --output-csp i444 --profile high444 --output-depth 10
  5.  
  6.  
  7. echo.
  8. echo :::::::::::::
  9. echo :: primary ::
  10. echo :::::::::::::
  11. echo.
  12.  
  13. mkdir primary
  14.  
  15. 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
  16.  
  17. 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
  18.  
  19. 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
  20.  
  21. 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
  22.  
  23. 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
  24.  
  25. 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
  26.  
  27. 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
  28.  
  29. 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
  30.  
  31. 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
  32.  
  33. 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
  34.  
  35. call:Timer "x264_x86 --tune animation --preset veryslow %COMMON% -o primary\animation-veryslow.mkv smw.avs" animation-veryslow
  36.  
  37. call:Timer "x264_x86 --tune animation --preset placebo %COMMON% -o primary\animation-placebo.mkv smw.avs" animation-placebo
  38.  
  39.  
  40. echo.
  41. echo ::::::::::::::
  42. echo :: lossless ::
  43. echo ::::::::::::::
  44. echo.
  45.  
  46. mkdir lossless
  47.  
  48. 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
  49.  
  50. 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
  51.  
  52. 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
  53.  
  54. 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
  55.  
  56. 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
  57.  
  58. 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
  59.  
  60. 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
  61.  
  62. 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
  63.  
  64. 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
  65.  
  66.  
  67. echo.
  68. echo ::::::::
  69. echo :: 2x ::
  70. echo ::::::::
  71. echo.
  72.  
  73. mkdir 2x
  74.  
  75. 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
  76.  
  77. 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
  78.  
  79. 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
  80.  
  81. 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
  82.  
  83. 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
  84.  
  85. 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
  86.  
  87. 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
  88.  
  89. 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
  90.  
  91. 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
  92.  
  93. 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
  94.  
  95. call:Timer "x264_x86 --tune animation --preset veryslow %COMMON% -o 2x\animation-veryslow.mkv smw2x.avs" animation-veryslow
  96.  
  97. call:Timer "x264_x86 --tune animation --preset placebo %COMMON% -o 2x\animation-placebo.mkv smw2x.avs" animation-placebo
  98.  
  99. pause
  100.  
  101.  
  102. ::::::::::::::::::::
  103. :: Timer function ::
  104. ::::::::::::::::::::
  105.  
  106.  
  107. :Timer
  108.     set start=%time%
  109.    
  110.     echo.
  111.     echo ===================================================================================================
  112.     echo  %~2
  113.     echo ===================================================================================================
  114.     echo %~1
  115.     echo ===================================================================================================
  116.     echo.
  117.  
  118.     %~1
  119.    
  120.     echo.
  121.     set end=%time%
  122.     set options="tokens=1-4 delims=:.,"
  123.     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
  124.     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
  125.  
  126.     set /a hours=%end_h%-%start_h%
  127.     set /a mins=%end_m%-%start_m%
  128.     set /a secs=%end_s%-%start_s%
  129.     set /a ms=%end_ms%-%start_ms%
  130.     if %ms% lss 0 set /a secs = %secs% - 1 & set /a ms = 100%ms%
  131.     if %secs% lss 0 set /a mins = %mins% - 1 & set /a secs = 60%secs%
  132.     if %mins% lss 0 set /a hours = %hours% - 1 & set /a mins = 60%mins%
  133.     if %hours% lss 0 set /a hours = 24%hours%
  134.     if 1%ms% lss 100 set ms=0%ms%
  135.  
  136.     set /a totalsecs = %hours%*3600 + %mins%*60 + %secs%
  137.     echo command took %totalsecs%.%ms%s total
  138.  
  139.     echo.
  140. goto:eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement