[Cin] Test rendering whit x265

Andrea paz gamberucci.andrea at gmail.com
Tue Jul 27 20:24:36 CEST 2021


I did some tests with the new and old x265. I report some data, while
the terminal output is attached in test-x265.txt.

I used a 5 min video in h264 4.2.0 but good quality. Size= 471 MB.


x265-10bit:  CPU 50-80% (multithread)    27.5 fps    file size 46 MB

x265-12bit:  CPU 50-80% (multi)          25.5 fps    file size 45 MB

x265-Hi:     CPU 80-90% (multi)          10.6 fps    file size 1.7 GB

x265-Lo(w):  CPU 40-70% (single/multi)   34 fps      file size 67.5 MB

HEVC-vaapi   CPU 0-50% (single)          85.8 fps    file size 117 MB
(I could not see the GPU engagement)

Only in x265-lo do I perceive a small decay in quality compared to the
original. All others are comparable.

For me a great news (thanks Andrew!) is the exploitation of
multithread; on the terminal you can read the sentence:
"Thread pool created using 16 threads"
I have a CPU 8c/16t.

The only thing I regret is that the new x265 drivers introduce a CinGG
build delay of 15 min. Before my entire compile was 5 min, now it's 20
min.
-------------- next part --------------
Cinelerra Infinity - built: Jul 26 2021 13:22:56
git://git.cinelerra-gg.org/goodguy/cinelerra.git
(c) 2006-2019 Heroine Virtual Ltd. by Adam Williams
2007-2020 mods for Cinelerra-GG by W.P.Morrow aka goodguy
Cinelerra is free software, covered by the GNU General Public License,
and you are welcome to change it and/or distribute copies of it under
certain conditions. There is absolutely no warranty for Cinelerra.

BC_Theme::get_image: image "mode_reflect" not found.
BC_Theme::get_image: image "mode_average" not found.
BC_Theme::get_image: image "mode_normals" not found.
filebase cpu 16 
filebase cpu 16 
filebase cpu 16 
filebase cpu 16 

x265-10-bit:

tc: 0.000000 
x265 [info]: HEVC encoder version 3.4
x265 [info]: build info [Linux][GCC 11.1.0][64 bit] 10bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [info]: Main 4:2:2 10 profile, Level-4 (Main tier)
x265 [info]: Thread pool created using 16 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 4 / wpp(17 rows)
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 3
x265 [info]: Keyframe min / max / scenecut / bias  : 30 / 30 / 40 / 5.00 
x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 3 / off / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-28.0 / 0.60
x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip mode=1 signhide tmvp
x265 [info]: tools: b-intra strong-intra-smoothing lslices=6 deblock sao
filebase cpu 16 
filebase cpu 16 
filebase cpu 16 

(lv2ui:70326): Gtk-WARNING **: 17:38:22.852: Unable to locate theme engine in module_path: "adwaita",
FFStream::encode_frame: encode failed.
file: /home/store/giulio/risvegli-compressor.mp4
  err: Resource temporarily unavailable
FFStream::flush failed
:file:/home/store/giulio/risvegli-compressor.mp4
  err: Operation not permitted
FFStream::encode_frame: encode failed.
file: /home/store/giulio/risvegli-compressor.mp4
  err: Resource temporarily unavailable
FFStream::flush failed
:file:/home/store/giulio/risvegli-compressor.mp4
  err: Operation not permitted
x265 [info]: frame I:    331, Avg QP:27.08  kb/s: 7753.23 
x265 [info]: frame P:   1781, Avg QP:28.79  kb/s: 2234.51 
x265 [info]: frame B:   5358, Avg QP:34.22  kb/s: 406.44  
x265 [info]: Weighted P-Frames: Y:3.6% UV:1.2%
x265 [info]: consecutive B-frames: 8.3% 12.0% 10.0% 56.9% 12.8% 

encoded 7470 frames in 272.39s (27.42 fps), 1167.83 kb/s, Avg QP:32.61
Render::render_single: Session finished.
** rendered 7500 frames in 272.418 secs, 27.531 fps


x264-12-bit:

tc: 0.000000 
x265 [info]: HEVC encoder version 3.4
x265 [info]: build info [Linux][GCC 11.1.0][64 bit] 12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [info]: Main 4:2:2 12 profile, Level-4 (Main tier)
x265 [info]: Thread pool created using 16 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 4 / wpp(17 rows)
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 3
x265 [info]: Keyframe min / max / scenecut / bias  : 30 / 30 / 40 / 5.00 
x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 3 / off / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-28.0 / 0.60
x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip mode=1 signhide tmvp
x265 [info]: tools: b-intra strong-intra-smoothing lslices=6 deblock sao
filebase cpu 16 
filebase cpu 16 
filebase cpu 16 

(lv2ui:70800): Gtk-WARNING **: 17:45:38.645: Unable to locate theme engine in module_path: "adwaita",
FFStream::encode_frame: encode failed.
file: /home/store/giulio/risvegli-compressor-12.mp4
  err: Resource temporarily unavailable
FFStream::flush failed
:file:/home/store/giulio/risvegli-compressor-12.mp4
  err: Operation not permitted
FFStream::encode_frame: encode failed.
file: /home/store/giulio/risvegli-compressor-12.mp4
  err: Resource temporarily unavailable
FFStream::flush failed
:file:/home/store/giulio/risvegli-compressor-12.mp4
  err: Operation not permitted
x265 [info]: frame I:    318, Avg QP:26.63  kb/s: 7636.39 
x265 [info]: frame P:   1599, Avg QP:28.33  kb/s: 2292.26 
x265 [info]: frame B:   5553, Avg QP:34.18  kb/s: 417.41  
x265 [info]: Weighted P-Frames: Y:7.9% UV:2.3%
x265 [info]: consecutive B-frames: 5.5% 4.9% 7.7% 58.1% 23.9% 

encoded 7470 frames in 293.30s (25.47 fps), 1126.05 kb/s, Avg QP:32.61
Render::render_single: Session finished.
** rendered 7500 frames in 293.328 secs, 25.569 fps


x265-hi:

tc: 0.000000 
x265 [info]: HEVC encoder version 3.4
x265 [info]: build info [Linux][GCC 11.1.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [info]: Main profile, Level-4 (Main tier)
x265 [info]: Thread pool created using 16 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 4 / wpp(17 rows)
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 3
x265 [info]: Keyframe min / max / scenecut / bias  : 30 / 30 / 40 / 5.00 
x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 3 / off / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-5.0 / 0.60
x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip mode=1 signhide tmvp
x265 [info]: tools: b-intra strong-intra-smoothing lslices=6 deblock sao
filebase cpu 16 
filebase cpu 16 
filebase cpu 16 

(lv2ui:71193): Gtk-WARNING **: 17:53:03.285: Unable to locate theme engine in module_path: "adwaita",
FFStream::encode_frame: encode failed.
file: /home/store/giulio/risvegli-compressor-hi.mp4
  err: Resource temporarily unavailable
FFStream::flush failed
:file:/home/store/giulio/risvegli-compressor-hi.mp4
  err: Operation not permitted
FFStream::encode_frame: encode failed.
file: /home/store/giulio/risvegli-compressor-hi.mp4
  err: Resource temporarily unavailable
FFStream::flush failed
:file:/home/store/giulio/risvegli-compressor-hi.mp4
  err: Operation not permitted
x265 [info]: frame I:    336, Avg QP:5.14  kb/s: 109416.75
x265 [info]: frame P:   1792, Avg QP:5.64  kb/s: 78881.00
x265 [info]: frame B:   5342, Avg QP:9.32  kb/s: 33602.69
x265 [info]: Weighted P-Frames: Y:1.8% UV:1.7%
x265 [info]: consecutive B-frames: 8.2% 13.1% 12.0% 52.8% 13.9% 

encoded 7470 frames in 705.55s (10.59 fps), 47874.75 kb/s, Avg QP:8.25
Render::render_single: Session finished.
** rendered 7500 frames in 705.574 secs, 10.630 fps


x265-lo(w):

tc: 0.000000 
x265 [info]: HEVC encoder version 3.4
x265 [info]: build info [Linux][GCC 11.1.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [info]: Main profile, Level-4 (Main tier)
x265 [info]: Thread pool created using 16 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 4 / wpp(17 rows)
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 3
x265 [info]: Keyframe min / max / scenecut / bias  : 30 / 30 / 40 / 5.00 
x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 3 / off / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-25.0 / 0.60
x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip mode=1 signhide tmvp
x265 [info]: tools: b-intra strong-intra-smoothing lslices=6 deblock sao
filebase cpu 16 
filebase cpu 16 
filebase cpu 16 

(lv2ui:71490): Gtk-WARNING **: 18:07:01.832: Unable to locate theme engine in module_path: "adwaita",
FFStream::encode_frame: encode failed.
file: /home/store/giulio/risvegli-compressor-low.mp4
  err: Resource temporarily unavailable
FFStream::flush failed
:file:/home/store/giulio/risvegli-compressor-low.mp4
  err: Operation not permitted
FFStream::encode_frame: encode failed.
file: /home/store/giulio/risvegli-compressor-low.mp4
  err: Resource temporarily unavailable
FFStream::flush failed
:file:/home/store/giulio/risvegli-compressor-low.mp4
  err: Operation not permitted
x265 [info]: frame I:    336, Avg QP:24.36  kb/s: 10106.45
x265 [info]: frame P:   1792, Avg QP:25.77  kb/s: 3424.90 
x265 [info]: frame B:   5342, Avg QP:30.57  kb/s: 674.41  
x265 [info]: Weighted P-Frames: Y:1.8% UV:1.7%
x265 [info]: consecutive B-frames: 8.2% 13.1% 12.0% 52.9% 13.8% 

encoded 7470 frames in 220.13s (33.93 fps), 1758.49 kb/s, Avg QP:29.14
Render::render_single: Session finished.
** rendered 7500 frames in 220.146 secs, 34.068 fps


HEVC-vaapi:

Render::render_single: Session finished.
** rendered 7500 frames in 87.406 secs, 85.806 fps


More information about the Cin mailing list