AMF icon indicating copy to clipboard operation
AMF copied to clipboard

AMF AV1 + 10 BIT HDR

Open MattyFresh68 opened this issue 2 years ago • 1 comments

Is the rdna 3 encoder capable of doing 10 bit using AV1? I believe it can with HEVC. Thanks for taking the time to read/answer!

MattyFresh68 avatar Feb 03 '24 11:02 MattyFresh68

Your answer is yes, AV1 10 bit is supported Here is example.

C:\Users\-----\Videos\test sample>C:\Users\-----\Desktop\Utilites\VCE_Encoder\VCEEncC_x64\\VCEEncC64.exe -i "C:\Users\-----\Videos\test sample\Test_softer.mkv" -o "Test_softer_processed.mkv" --codec av1 --profile main --level 6 --preset slower --output-depth 10 --ref 4 --ltr 3 --vbr 10000 --max-bitrate 15000 --qp-max 36 --pe --vbaq --colorrange auto --colormatrix auto --colorprim auto --transfer auto --chromaloc auto --max-cll copy --master-display copy --atc-sei auto --dhdr10-info copy --audio-copy --chapter-copy --log vceencc_log.txt --log-level info
--------------------------------------------------------------------------------
Test_softer_processed.mkv
--------------------------------------------------------------------------------
avvce/avsw: --dhdr10-info copy is only supported with sw deocde in VCEEnc, switching to --avsw.
VCEEnc (x64) 8.21 (r1577) by rigaya, Dec 10 2023 04:01:37 (VC 1937/Win)
OS:            Windows 11 x64 (22631) [UTF-8]
CPU:           AMD Ryzen 7 5800X3D 8-Core Processor [4.46GHz] (8C/16T)
GPU:           AMD Radeon RX 7800 XT [31.0.24002.92]
AMF:           Runtime 1.4.33 / SDK 1.4.30
Input Info:    avsw: hevc(yv12(10bit))->p010 [AVX2], 3840x2160, 24000/1001 fps
Output:        AV1  main @ Level 6
               3840x2160p 0:0 23.976fps (24000/1001fps)
               avwriter: av1 => matroska
Quality:       slower
VBR:           10000 kbps
Max bitrate:   15000 kbps
QP:            Min: 1:1, Max: 36:36
VBV Bufsize:   10000 kb
Pre Analysis:  off
Ref frames:    4 frames
LTR frames:    3 frames
Motion Est:    full-pel
Tiles:         1
GOP Len:       240 frames
Temporal Lyrs: 1
ScreenContent: on,palette-mode off, force-integer-mv off
VUI:              matrix:bt2020nc,colorprim:bt2020,transfer:smpte2084,range:limited,chromaloc:topleft
Dynamic HDR10     copy
MasteringDisp: G(0.265000 0.690000) B(0.150000 0.060000) R(0.680000 0.320000)
               WP(0.312700 0.329000) L(1000.000000 0.005000)
MaxCLL/MaxFALL:845/196
Others:        skipframe:on deblock aq:off cdef:on cdf-update:on cdf-frame-end-update:on pe

encoded 3861 frames, 28.63 fps, 14360.99 kbps, 275.69 MB
encode time 0:02:14, CPU: 7.7%, VE: 98.0%
frame type IDR   17
frame type I     17,  total size    2.11 MB
frame type P   3844,  total size  273.58 MB

Sadly, only one small downside is that preanalysis is not available for 10 bit. Only preencode. But there is small chance that it will be added later from what i understand?

Another limit is 6.0 encoder level... but, surprisingly it does not limit you from encoding 8k60 videos... I guess it is because general HW is here, but only max potential sample rate, decode rate and bandwidth are limited... Doesn't stop you from encoding under these limits?. Also heh, 8k60 video from YT that takes 794 MB transcoded into 4.24 GB monstrosity. But for some reason YT video stutters, while transcoded one is smooth as ice (both are 8k60 AV1 videos). [Hmm, i guess i could've lowered max-qp to 38... ] [EDIT: Correcting my mistake from lack of experience. As AV1 QP range is 0-255, then i should've lowered max-qp to something around 70-100, i think?]

[Also don't blindly copy what command i used. Transcoding speed is not very nice, only 28.6 FPS (avg 60 FPS on fast preset)... On other hand, it is actually quite fast for whatever i thrown under bus in terms of parameters]

DimkaTsv avatar Feb 04 '24 02:02 DimkaTsv

10-bit AV1 encoding is supported on RDNA 3 according to the Wiki page for GPU and APU HW Features and Support

PreAnalysis is not available for 10-bit.

rhutsAMD avatar Apr 03 '24 18:04 rhutsAMD