OpenVisualCloud / SVT-HEVC

SVT HEVC encoder. Scalable Video Technology (SVT) is a software-based video coding technology that is highly optimized for Intel® Xeon® processors. Using the open source SVT-HEVC encoder, it is possible to spread video encoding processing across multiple Intel® Xeon® processors to achieve a real advantage of processing efficiency.
Other
516 stars 172 forks source link

Bitrate is too large #548

Closed Dillon14281118 closed 4 years ago

Dillon14281118 commented 4 years ago

Why the bitrate of svt-hevc is so large compared with x265? I use CQP mode with qp={22,27,32,37} in svt-hevc and x265,the commands are as below: ./SvtHevcEncApp -i ../sc_desktop_1920x1080_60_8bit_420.yuv -w 1920 -h 1080 -n 90 -rc 0 -q 37 -fps 15 -b out.h265

image

./x265 --input ../sc_desktop_1920x1080_60_8bit_420.yuv --frames 90 --input-res 1920x1080 --input-csp 1 --fps 15 --psnr --tune psnr --qp 37 -o out.h265 image

use ffmpeg to calc psnr: ./ffmpeg -r 15 -i out.h265 -s:v 1920x1080 -c:v rawvideo -pix_fmt yuv420p -r 15 -i ../sc_desktop_1920x1080_60_8bit_420.yuv -frames 90 -lavfi psnr="stats_file=psnr.log" -f null -

The BD-Rate result is as below(x265 is anchor): image

We can found in the result that the bitrate of svt-hevc is about twice that of x265 at the same level psnr. Why the bitrate of svt-hevc is so high? How should I adjust the parameters?

tianjunwork commented 4 years ago

Hey @Dillon14281118 , thanks providing the data. Encoders have their own ways to fine tune trade-off between speed and coding efficiency. It is meaningless to compare BD-rate between different trade-off configs(usually called preset). With default preset of x265 being medium and SVT-HEVC being -encMode 7, according to below preset mapping between x265 and SVT-HEVC, trade-off configs are not at the same level. https://x265.readthedocs.io/en/default/svthevc.html#preset-option-mapping

FYI, link below shows the comparison of AV1/HEVC encoders. https://www.compression.ru/video/codec_comparison/hevc_2019/

Dillon14281118 commented 4 years ago

So the result in svt-hevc is normal? Because the psnr is a little low when bitrate is less than 2000k, I want to make sure if the result is normal.

tianjunwork commented 4 years ago

The PSNR curve is steadily decreasing for both SVT-HEVC and X265, from which I didn't see a warning sign.

tianjunwork commented 4 years ago

Hi @Dillon14281118 , anything to discuss further in this issue?