This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

SVT-AV1 Unexpected Behaviour
#1
Hi Selur,

I'm running Hybrid 2023.01.22.1 on Windows 11 64bit 22H2 and having some strange behavior when encoding HDR10 video using the SVT-AV1 encoder.
I'm getting drastically larger (3.5x input) output file sizes than expected.

With a 1min30 cut of a 2160p DV(HDR10 fallback) file as input and CRF18/Preset 7 as the main settings along with the below the file size goes from an input of 910mb to an output of 3.1gb.
SvtAv1EncApp --input stdin  --enable-hdr 1 --width 3840 --height 2160 --fps-num 24000 --fps-denom 1001 --input-depth 10 --profile 0 --tile-rows 0 --tile-columns 0 --rc 0 --crf 18 --mbr 0 --aq-mode 2 --preset 7 --irefresh-type 1 --lookahead 33 --scm 0 --use-q-file 1 --qpfile GENERATED_QP_FILE --color-primaries 9 --transfer-characteristics 16 --matrix-coefficients 9 --color-range 0 --mastering-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(40000000,50)" --content-light 1000,227 --output "E:\###DoVi_Scripts\###x265 Test Configs\HDR10 DV Source_new.av1"

Doing a comparison to Handbrake using similar settings of CRF18 and Preset 7 results in that same 910mb having an output of 72mb.

Looking at the debug log for Hybrid it also looks like the Master Display settings aren't passed through properly when grabbing from input (likely different format than input) and the setting for Tune of VQ is ignored (always results in PSNR as the tune).
Svt[info]: SVT [version]:    SVT-AV1 Encoder Lib v1.4.1-35-gad82cde15
Svt[info]: SVT [build]  :    GCC 12.2.0     64 bit
Svt[info]: LIB Build date: Jan 19 2023 19:10:17
Svt[info]: -------------------------------------------
Svt[warn]: Invalid mastering display info will be clipped to 0.0 to 1.0
Svt[warn]: Fwd key frame is only supported for hierarchical levels 4 at this point. Hierarchical levels are set to 4
Svt[info]: Number of logical cores available: 32
Svt[info]: Number of PPCS 89
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         : 3840 / 2160 / 24000 / 1001
Svt[info]: SVT [config]: bit-depth / color format                     : 10 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct                     : 7 / PSNR / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type             : 160 / 16 / FWD key frame
Svt[info]: SVT [config]: BRC mode / rate factor                     : CRF / 18
Svt[info]: -------------------------------------------

I tested with a regular HDR10 clip with no DV metadata and had a similar result, with output size exceeding input by a comparable margin.

In the activity output in Handbrake it looks like both Hybrid and Handbrake have the same CRF & Preset but with slightly different versions/builds of SVT and a few negligible (when considering file size outputs) differences in settings.
Svt[info]: SVT [version]:    SVT-AV1 Encoder Lib v1.4.1
Svt[info]: SVT [build]  :    GCC 10.2.0     64 bit
Svt[info]: LIB Build date: Jan 23 2023 17:12:39
Svt[info]: -------------------------------------------
Svt[info]: Number of logical cores available: 32
Svt[info]: Number of PPCS 88
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         : 3840 / 2160 / 24000 / 1001
Svt[info]: SVT [config]: bit-depth / color format                     : 10 / YUV420
Svt[info]: SVT [config]: preset / tune / pred struct                     : 7 / VQ / random access
Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type             : 244 / 16 / key frame
Svt[info]: SVT [config]: BRC mode / rate factor                     : CRF / 18
Svt[info]: -------------------------------------------


I've also tried with a 1080p SDR (BT.709) mkv file as input and the results were completely as expected in terms of compression going from 106mb to 40mb(+/- 2mb) for both Hybrid and Handbrake, so I'm wondering if this is an issue with HDR10 (and/or associated settings) specifically.

I've attached the Debug Output from the 1min30 HDR10 DV clip and can provide the input video file if you want it.

Help would be greatly appreciated.
Thanks!
Reply


Messages In This Thread
SVT-AV1 Unexpected Behaviour - by BCJohn - 29.01.2023, 00:41
RE: SVT-AV1 Unexpected Behaviour - by Selur - 29.01.2023, 08:49
RE: SVT-AV1 Unexpected Behaviour - by BCJohn - 29.01.2023, 11:54
RE: SVT-AV1 Unexpected Behaviour - by Selur - 29.01.2023, 12:22
RE: SVT-AV1 Unexpected Behaviour - by manzing - 05.03.2023, 10:52
RE: SVT-AV1 Unexpected Behaviour - by Selur - 05.03.2023, 11:09
RE: SVT-AV1 Unexpected Behaviour - by manzing - 05.03.2023, 11:25
RE: SVT-AV1 Unexpected Behaviour - by Selur - 05.03.2023, 11:36
RE: SVT-AV1 Unexpected Behaviour - by manzing - 05.03.2023, 11:39
RE: SVT-AV1 Unexpected Behaviour - by Selur - 05.03.2023, 12:01
RE: SVT-AV1 Unexpected Behaviour - by manzing - 05.03.2023, 12:05
RE: SVT-AV1 Unexpected Behaviour - by Selur - 05.03.2023, 12:18
RE: SVT-AV1 Unexpected Behaviour - by manzing - 05.03.2023, 12:33

Forum Jump:


Users browsing this thread: 2 Guest(s)