Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 19th March 2018, 19:09   #1  |  Link
zub35
Registered User
 
Join Date: Oct 2016
Posts: 56
"Visual-lossless" comparison x264 x265

"Visual-lossless" comparison x264 x265 8bit

x265 2.7+14 vs x264 r2851
source: crowd_run_2160p50.y4m (60 frames) + park_joy_2160p50.y4m (60 frames) + in_to_tree_2160p50.y4m (60 frames)
Code:
a=rawsourceplus("crowd_run_2160p50.y4m").trim(1,60)
b=rawsourceplus("park_joy_2160p50.y4m").trim(1,60)
c=rawsourceplus("in_to_tree_2160p50.y4m").trim(1,60)
a+b+c
ConvertToRGB(chromaresample="spline64")
Spline64Resize(1920,1080)
ConvertToYV12(chromaresample="spline64")
AssumeFPS(30)

avs2yuv64.exe raw.avs -o raw_1080p30.y4m
x265 --preset placebo --bitrate 20000 --merange 57 --subme 7 --no-sao --no-strong-intra-smoothing --aq-mode 3 --aq-motion --psy-rd 4 --psy-rdoq 10 --pass 1/2 -o 265.h265 raw_1080p30.y4m
x264 --level 4.1 --preset placebo --bitrate 20000 --me umh --bframes 8 --psy-rd 1.1:0.20 --aq-mode 3 --pass 1/2 -o 264.h264 raw_1080p30_2.y4m

Encode files: https://yadi.sk/d/tr0z84A63TTY5b

apng (1 frame - source, 2 frame - encode)
55 frame - 264 / 265
105 frame - 264 / 265
165 frame - 264 / 265

full size
55 frame - source / 264 / 265
105 frame - source / 264 / 265
165 frame - source / 264 / 265

Metric:
SSIM(Y) (Luma) http://images2.imagebam.com/8b/bb/2b...1784719843.png
SSIM(U+V)/2 (Chroma) http://images2.imagebam.com/28/5e/d6...3786605333.png
MSU Blurring(Y) (Luma) http://images2.imagebam.com/90/36/df...b786522933.png
MSU Blurring(U+V)/2 (Chroma) http://images2.imagebam.com/cf/dd/35...8786522943.png

The difference between the AVG values of x265 and x264:
ssim: Y~1%, UV~2%
blur: Y~55%, UV~98% (!) I. e., the SSIM metric is easy to cheat by blur and for this, an additional blur test is needed.

no-sao and psy the flags which made it possible to get rid of the blur.
But when you use them, the probability of artifacts increases dramatically, even at such high bitrates ;( (105 frame - wood, 165 frame - sky)

Last edited by zub35; 19th March 2018 at 19:33.
zub35 is offline   Reply With Quote
Old 19th March 2018, 22:32   #2  |  Link
Gser
Registered User
 
Join Date: Apr 2008
Posts: 418
I'm still not quite sold on --aq-mode 3, I use 1 on both codecs. And using negative deblock values might decrease some blur.

Last edited by Gser; 19th March 2018 at 22:36.
Gser is offline   Reply With Quote
Old 20th March 2018, 02:50   #3  |  Link
zub35
Registered User
 
Join Date: Oct 2016
Posts: 56
Gser aq3 and deblock 0:0 because the resulting quantifier values for both IPB codecs are x265(x264) - I:19.96(22.20) P:23.72(27.03) B:28.25(29.90) Avg:27.18(29.19)
With such QP values, and sao disabled, visual quality is at the edge, not to be completely in the artifacts (although they and so there is)

p.s. This is simple resize. If you use ResizeShader-SSIM, alas, or extremely strong artifacts, or sao-on=blur or 30+ Mbps (But at the same time, x264 can compress and at 20Mbps without blur)

Last edited by zub35; 20th March 2018 at 03:22.
zub35 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 21:19.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.