aq-strength seems disabled (0.0)

Issue #224 resolved
rossi mario created an issue

so aq-mode is useless:

#!

ffmpeg2 -hide_banner -ss 2160.0 -i test.mp4 -t 120.0 -an -c:v libx265 -crf:v 22.8  -x265-params rd=2:psy-rd=.9:aq-mode=3:sao=0:rc-lookahead=40:deblock=-3:cutree=0:ssim=1:psnr=1 -preset superfast  -f matroska -map_metadata -1  "prova._1_.mkv 

x265 [info]: HEVC encoder version 1.8+187-da48f2690076
x265 [info]: build info [Linux][GCC 4.9.3][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
x265 [warning]: --psnr used with psy on: results will be invalid!
x265 [warning]: --tune psnr should be used if attempting to benchmark psnr!
x265 [info]: Main profile, Level-3 (Main tier)
x265 [info]: Thread pool created using 4 threads
x265 [info]: frame threads / pool features       : 2 / wpp(13 rows)
x265 [warning]: Source height < 720p; disabling lookahead-slices
x265 [info]: Coding QT: max CU size, min CU size : 32 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 1 / 2
x265 [info]: Keyframe min / max / scenecut       : 23 / 250 / 40
x265 [info]: Lookahead / bframes / badapt        : 40 / 3 / 0
x265 [info]: b-pyramid / weightp / weightb       : 1 / 0 / 0
x265 [info]: References / ref-limit  cu / depth  : 1 / 0 / 0
x265 [info]: Rate Control / qCompress            : CRF-22.8 / 0.60
x265 [info]: tools: rd=2 psy-rd=0.90 early-skip signhide tmvp fast-intra
x265 [info]: tools: strong-intra-smoothing deblock(tC=-3:B=-3)

x265 [info]: frame I:     13, Avg QP:20.00  kb/s: 1509.41   PSNR Mean: Y:49.817 U:51.932 V:52.512  SSIM Mean: 0.992217 (21.088dB)
x265 [info]: frame P:    714, Avg QP:21.86  kb/s: 657.83    PSNR Mean: Y:47.511 U:50.651 V:51.183  SSIM Mean: 0.987808 (19.139dB)
x265 [info]: frame B:   2150, Avg QP:23.76  kb/s: 253.05    PSNR Mean: Y:46.965 U:50.295 V:50.838  SSIM Mean: 0.986797 (18.793dB)
x265 [info]: consecutive B-frames: 0.4% 1.5% 0.0% 98.1% 

encoded 2877 frames in 53.30s (53.97 fps), 359.18 kb/s, Avg QP:23.27, Global PSNR: 48.000, SSIM Mean Y: 0.9870724 (18.885 dB)

add aq-strength=1.0
in -x265-params

#!
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 3 / 1.0 / 32 / 0
x265 [info]: Rate Control / qCompress            : CRF-22.8 / 0.60


x265 [info]: frame I:     13, Avg QP:16.18  kb/s: 2031.39   PSNR Mean: Y:50.642 U:52.918 V:53.531  SSIM Mean: 0.993464 (21.847dB)
x265 [info]: frame P:    714, Avg QP:18.28  kb/s: 928.75    PSNR Mean: Y:48.232 U:51.423 V:51.984  SSIM Mean: 0.989409 (19.751dB)
x265 [info]: frame B:   2150, Avg QP:21.55  kb/s: 349.86    PSNR Mean: Y:47.575 U:50.870 V:51.435  SSIM Mean: 0.988241 (19.296dB)
x265 [info]: consecutive B-frames: 0.4% 1.5% 0.0% 98.1% 

encoded 2877 frames in 59.62s (48.26 fps), 501.12 kb/s, Avg QP:20.71, Global PSNR: 48.639, SSIM Mean Y: 0.9885548 (19.414 dB)

with cutree

#!
ffmpeg2 -hide_banner -ss 2160.0 -i test.mp4 -t 120.0 -an -c:v libx265 -crf:v 22.8  -x265-params rd=2:psy-rd=.9:aq-mode=3:sao=0:rc-lookahead=40:deblock=-3:ssim=1:psnr=1 -preset superfast  -f matroska -map_metadata -1  "prova._3_.mkv"

x265 [info]: HEVC encoder version 1.8+187-da48f2690076
x265 [info]: build info [Linux][GCC 4.9.3][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
x265 [warning]: --psnr used with psy on: results will be invalid!
x265 [warning]: --tune psnr should be used if attempting to benchmark psnr!
x265 [info]: Main profile, Level-3 (Main tier)
x265 [info]: Thread pool created using 4 threads
x265 [info]: frame threads / pool features       : 2 / wpp(13 rows)
x265 [warning]: Source height < 720p; disabling lookahead-slices
x265 [info]: Coding QT: max CU size, min CU size : 32 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 1 / 2
x265 [info]: Keyframe min / max / scenecut       : 23 / 250 / 40
x265 [info]: Lookahead / bframes / badapt        : 40 / 3 / 0
x265 [info]: b-pyramid / weightp / weightb       : 1 / 0 / 0
x265 [info]: References / ref-limit  cu / depth  : 1 / 0 / 0
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 3 / 0.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-22.8 / 0.60
x265 [info]: tools: rd=2 psy-rd=0.90 early-skip signhide tmvp fast-intra
x265 [info]: tools: strong-intra-smoothing deblock(tC=-3:B=-3)

x265 [info]: frame I:     13, Avg QP:24.06  kb/s: 1154.60   PSNR Mean: Y:48.406 U:50.655 V:51.241  SSIM Mean: 0.990249 (20.110dB)
x265 [info]: frame P:    714, Avg QP:26.11  kb/s: 465.72    PSNR Mean: Y:46.021 U:49.403 V:49.909  SSIM Mean: 0.985047 (18.253dB)
x265 [info]: frame B:   2150, Avg QP:29.50  kb/s: 142.26    PSNR Mean: Y:45.171 U:49.208 V:49.721  SSIM Mean: 0.983083 (17.717dB)
x265 [info]: consecutive B-frames: 0.4% 1.5% 0.0% 98.1% 

encoded 2877 frames in 44.46s (64.71 fps), 227.11 kb/s, Avg QP:28.63, Global PSNR: 46.427, SSIM Mean Y: 0.9836025 (17.852 dB)

with aq-strength=1.0

#!

x265 [info]: AQ: mode / str / qg-size / cu-tree  : 3 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-22.8 / 0.60

x265 [info]: frame I:     13, Avg QP:18.65  kb/s: 1673.39   PSNR Mean: Y:49.975 U:52.140 V:52.719  SSIM Mean: 0.992481 (21.239dB)
x265 [info]: frame P:    714, Avg QP:21.13  kb/s: 719.17    PSNR Mean: Y:47.613 U:50.756 V:51.297  SSIM Mean: 0.988289 (19.314dB)
x265 [info]: frame B:   2150, Avg QP:27.01  kb/s: 212.50    PSNR Mean: Y:46.563 U:50.318 V:50.863  SSIM Mean: 0.986419 (18.671dB)
x265 [info]: consecutive B-frames: 0.4% 1.5% 0.0% 98.1% 

encoded 2877 frames in 51.12s (56.28 fps), 344.85 kb/s, Avg QP:25.51, Global PSNR: 47.806, SSIM Mean Y: 0.9869102 (18.831 dB)

dark scenes are ugly ...

Comments (4)

  1. rossi mario reporter

    preset superfast have aq-mode=0, but setting aq-mode 1,2 or 3, i expect that aq-strength=1.0 (default), non 0.0.

  2. Log in to comment