LoginSignup
0
1

More than 5 years have passed since last update.

x265のセッティング例

Last updated at Posted at 2017-10-10

概要

設定調整のための記録

前提環境

x265: version 2.5+12-fcd9154fa4e2
CPU: AMD FX8350
Memory: 16GB DDR3-1600 with ECC (8+8GB)

試したセッティング

  1. 従来仕様
    --preset slow --crf 20.0 --output-depth 10 --rd 6 --subme 7 --rect --amp --weightb --tu-intra-depth 2 --tu-inter-depth 2 --no-rskip --scenecut 50 --limit-refs 2 --b-intra --me star --psy-rd 0.8 --aq-strength 0.2 --rc-lookahead 40 --output "output" "input"

  2. x265ほぼ標準
    --crf 20.0 --output-depth 10 --output "output" "input"

  3. 標準を微調整
    --crf 20.0 --output-depth 10 --weightb --tu-intra-depth 2 --tu-inter-depth 2 --no-rskip --scenecut 50 --limit-refs 2 --b-intra --psy-rd 0.8 --aq-strength 0.2 --rc-lookahead 40 --output "output" "input"

  4. x265の重めのプリセット
    --preset slow --crf 20.0 --output-depth 10 --output "output" "input"

  5. 重めを調整
    --preset slow --crf 20.0 --output-depth 10 --rect --amp --weightb --tu-intra-depth 2 --tu-inter-depth 2 --no-rskip --scenecut 50 --limit-refs 2 --b-intra --psy-rd 0.8 --aq-strength 0.2 --rc-lookahead 40 --output "output" "input"

  6. submeとme
    --preset slow --crf 20.0 --output-depth 10 --subme 7 --rect --amp --weightb --tu-intra-depth 2 --tu-inter-depth 2 --no-rskip --scenecut 50 --limit-refs 2 --b-intra --me star --psy-rd 0.8 --aq-strength 0.2 --rc-lookahead 40 --output "output" "input"

  7. me
    --preset slow --crf 20.0 --output-depth 10 --rect --amp --weightb --tu-intra-depth 2 --tu-inter-depth 2 --no-rskip --scenecut 50 --limit-refs 2 --b-intra --me star --psy-rd 0.8 --aq-strength 0.2 --rc-lookahead 40 --output "output" "input"

  8. rdとsubme
    --preset slow --crf 20.0 --output-depth 10 --rd 6 --subme 7 --rect --amp --weightb --tu-intra-depth 2 --tu-inter-depth 2 --no-rskip --scenecut 50 --limit-refs 2 --b-intra --psy-rd 0.8 --aq-strength 0.2 --rc-lookahead 40 --output "output" "input"

  9. medium + rd +subme
    --crf 20.0 --output-depth 10 --rd 6 --subme 7 --rect --amp --weightb --tu-intra-depth 2 --tu-inter-depth 2 --no-rskip --scenecut 50 --limit-refs 2 --b-intra --psy-rd 0.8 --aq-strength 0.2 --rc-lookahead 40 --output "output" "input"

  10. medium + rd +subme + me
    --crf 20.0 --output-depth 10 --rd 6 --subme 7 --rect --amp --weightb --tu-intra-depth 2 --tu-inter-depth 2 --no-rskip --scenecut 50 --limit-refs 2 --b-intra --me star --psy-rd 0.8 --aq-strength 0.2 --rc-lookahead 40 --output "output" "input"

  11. medium + rd +subme + me -rect -amp
    --crf 20.0 --output-depth 10 --rd 6 --subme 7 --weightb --tu-intra-depth 2 --tu-inter-depth 2 --no-rskip --scenecut 50 --limit-refs 2 --b-intra --me star --psy-rd 0.8 --aq-strength 0.2 --rc-lookahead 40 --output "output" "input"

    エンコード結果

    アニメのPV(85秒 @ 1920x1080 @ 23.976fps)

# 速度(fps) ファイルサイズ(KiB) ビットレート(kbps)
1 0.85 19,139 1843
2 7.93 24,512 2360
3 3.58 18,487 1780
4 3.16 27,807 2677
5 1.53 19,917 1918
6 1.11 19,865 1913
7 1.52 19,917 1918
8 0.85 19,139 1843
9 0.90 17,861 1720
10 0.70 17,800 1714
11 1.10 17,849 1718

sample2(91秒 @ 1920x1080 @ 23.976fps)

# 速度(fps) ファイルサイズ(KiB) ビットレート(kbps)
1 0.74 22,467 2009
2 - - -
3 3.59 22,693 2029
4 - - -
5 1.43 23,983 2144
6 1.05 23,936 2140
7 1.43 23,983 2142
8 0.75 22,467 2009
9 0.89 21,441 1917
10 0.78 21,284 1903
11 1.15 21,331 1907

mediainfo

1

cpuid=1105919 / frame-threads=3 / numa-pools=8 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=1920x1080 / interlace=0 / total-frames=2197 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=4 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=23 / keyint=250 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=40 / lookahead-slices=4 / scenecut=50 / no-intra-refresh / ctu=64 / min-cu-size=8 / rect / amp / max-tu-size=32 / tu-inter-depth=2 / tu-intra-depth=2 / limit-tu=0 / rdoq-level=2 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=3 / limit-refs=2 / limit-modes / me=3 / subme=7 / merange=57 / temporal-mvp / weightp / weightb / no-analyze-src-pics / deblock=0:0 / sao / no-sao-non-deblock / rd=6 / no-early-skip / no-rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=0.80 / psy-rdoq=1.00 / no-rd-refine / analysis-reuse-mode=0 / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=20.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / ipratio=1.40 / pbratio=1.30 / aq-mode=1 / aq-strength=0.20 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=0 / colorprim=2 / transfer=2 / colormatrix=2 / chromaloc=0 / display-window=0 / max-cll=0,0 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / opt-qp-pps / opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp / no-aq-motion / no-hdr / no-hdr-opt / no-dhdr10-opt / analysis-reuse-level=5 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=0 / no-limit-sao / ctu-info=0

3

cpuid=1105919 / frame-threads=3 / numa-pools=8 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=1920x1080 / interlace=0 / total-frames=2197 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=3 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=23 / keyint=250 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=40 / lookahead-slices=6 / scenecut=50 / no-intra-refresh / ctu=64 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=2 / tu-intra-depth=2 / limit-tu=0 / rdoq-level=0 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=2 / limit-refs=2 / no-limit-modes / me=1 / subme=2 / merange=57 / temporal-mvp / weightp / weightb / no-analyze-src-pics / deblock=0:0 / sao / no-sao-non-deblock / rd=3 / no-early-skip / no-rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=0.80 / psy-rdoq=0.00 / no-rd-refine / analysis-reuse-mode=0 / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=20.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / ipratio=1.40 / pbratio=1.30 / aq-mode=1 / aq-strength=0.20 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=0 / colorprim=2 / transfer=2 / colormatrix=2 / chromaloc=0 / display-window=0 / max-cll=0,0 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / opt-qp-pps / opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp / no-aq-motion / no-hdr / no-hdr-opt / no-dhdr10-opt / analysis-reuse-level=5 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=0 / no-limit-sao / ctu-info=0

10

cpuid=1105919 / frame-threads=3 / numa-pools=8 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=1920x1080 / interlace=0 / total-frames=2197 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=3 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=23 / keyint=250 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=40 / lookahead-slices=6 / scenecut=50 / no-intra-refresh / ctu=64 / min-cu-size=8 / rect / amp / max-tu-size=32 / tu-inter-depth=2 / tu-intra-depth=2 / limit-tu=0 / rdoq-level=0 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=2 / limit-refs=2 / no-limit-modes / me=3 / subme=7 / merange=57 / temporal-mvp / weightp / weightb / no-analyze-src-pics / deblock=0:0 / sao / no-sao-non-deblock / rd=6 / no-early-skip / no-rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=0.80 / psy-rdoq=0.00 / no-rd-refine / analysis-reuse-mode=0 / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=20.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / ipratio=1.40 / pbratio=1.30 / aq-mode=1 / aq-strength=0.20 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=0 / colorprim=2 / transfer=2 / colormatrix=2 / chromaloc=0 / display-window=0 / max-cll=0,0 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / opt-qp-pps / opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp / no-aq-motion / no-hdr / no-hdr-opt / no-dhdr10-opt / analysis-reuse-level=5 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=0 / no-limit-sao / ctu-info=0

感想

slowよりmediumのほうが縮むなんてorz

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1