[Cin] AOM 3.8, again

Andrea paz gamberucci.andrea at gmail.com
Wed Dec 27 09:17:59 CET 2023


> hopefully fixed for good ...
With your libaom.sh (with the correction of libstvav1 to libsvtav1)
the compilation was successful. [All this was before your latest
patch.]
I also loaded your "av1-svt.webm" preset and rendered the exr sequence:

Svt[info]: -------------------------------------------
Svt[info]: SVT [version]:       SVT-AV1 Encoder Lib v1.8.0-dirty
Svt[info]: SVT [build]  :       GCC 13.2.1 20230801      64 bit
Svt[info]: LIB Build date: Dec 16 2023 03:09:40
Svt[info]: -------------------------------------------
Svt[info]: Number of logical cores available: 24
Svt[info]: Number of PPCS 173
Svt[info]: [asm level on system : up to avx2]
Svt[info]: [asm level selected : up to avx2]
Svt[info]: -------------------------------------------
Svt[info]: SVT [config]: main profile   tier (auto)     level (auto)
Svt[info]: SVT [config]: width / height / fps numerator / fps
denominator               : 1200 / 800 / 10 / 1
Svt[info]: SVT [config]: bit-depth / color format
                 : 8 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct
                 : 10 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type
                 : 161 / 32 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor
                 : CRF / 35
Svt[info]: -------------------------------------------
SvtMalloc[info]: SVT Memory Usage:
SvtMalloc[info]:     total allocated memory:       1.29 GB
SvtMalloc[info]:         malloced memory:          372.07 MB
SvtMalloc[info]:         callocated memory:        36.89 MB
SvtMalloc[info]:         allocated aligned memory: 909.30 MB
SvtMalloc[info]:     mutex count: 30125
SvtMalloc[info]:     semaphore count: 2102
SvtMalloc[info]:     thread count: 441
SvtMalloc[info]:     hash table fulless: 0.094474, hash bucket is healthy
SvtMalloc[info]: top 10 malloced memory locations:
SvtMalloc[info]: (66.07 MB):
/usr/src/debug/svt-av1/SVT-AV1/Source/Lib/Encoder/Codec/EbPictureControlSet.c:114
SvtMalloc[info]: (61.07 MB):
/usr/src/debug/svt-av1/SVT-AV1/Source/Lib/Common/Codec/EbBitstreamUnit.c:36
SvtMalloc[info]: (49.00 MB):
/usr/src/debug/svt-av1/SVT-AV1/Source/Lib/Encoder/Codec/EbCodingUnit.c:89
SvtMalloc[info]: (42.95 MB):
/usr/src/debug/svt-av1/SVT-AV1/Source/Lib/Encoder/Codec/EbPictureControlSet.c:115
SvtMalloc[info]: (42.49 MB):
/usr/src/debug/svt-av1/SVT-AV1/Source/Lib/Encoder/Codec/EbPictureControlSet.c:1583
SvtMalloc[info]: (23.60 MB):
/usr/src/debug/svt-av1/SVT-AV1/Source/Lib/Encoder/Codec/EbPictureControlSet.c:1586
SvtMalloc[info]: (13.39 MB):
/usr/src/debug/svt-av1/SVT-AV1/Source/Lib/Encoder/Codec/EbModeDecisionProcess.c:238
SvtMalloc[info]: (13.01 MB):
/usr/src/debug/svt-av1/SVT-AV1/Source/Lib/Encoder/Codec/EbPictureControlSet.c:602
SvtMalloc[info]: (10.61 MB):
/usr/src/debug/svt-av1/SVT-AV1/Source/Lib/Encoder/Codec/EbPictureControlSet.c:1110
SvtMalloc[info]: (7.72 MB):
/usr/src/debug/svt-av1/SVT-AV1/Source/Lib/Encoder/Codec/EbPictureControlSet.c:1078
FFStream::encode_frame: encode failed.
file: /home/paz/test_aom_exr.webm
  err: Resource temporarily unavailable
FFMPEG::mux_video  err: Operation not permitted
SvtMalloc[info]: you have no memory leak
Render::render_single: Session finished.
** rendered 273 frames in 5.586 secs, 48.872 fps

With the normal "av1.webm" preset (and system aom) I rarely get to 48
fps, most of the time it stops at 30 fps.

But the most indicative test is rendering a "dnxhr + h264+ vp9" video;
with av1.webm I get to 12.5 fps. With av1-svt.webm I get to 53 fps!
Trying to use the crf=18 (visually lossless) option I get 59 fps.

av1-vaapi.webm needs next-generation GPUs to run, apparently,
av1-svt.webm needs even just a simple CPU with AVX instructions to
run. I guess those with an Intel Arc/Xe2 video card will have even
better performance.

I will try to test your new patch later.
Thanks for all the work you did and sorry for all my mistakes.


More information about the Cin mailing list