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. |
17th June 2024, 12:22 | #1022 | Link |
Artem S. Tashkinov
Join Date: Dec 2006
Posts: 378
|
Whelp, here it is.
Open the PNG files and check how vvenc abso-fecking-lutely crushed the thumb fine details. The difference is night and day. And I've not even used any fancy x265 encoding flags. And the encoding time for vvenc was about 20 times longer. It's a disaster. And that's why I don't trust PSNR and other fancy automatic video quality assessment metrics. You may get better numbers but the net result will be utter crap. Last edited by birdie; 17th June 2024 at 13:39. |
17th June 2024, 13:29 | #1023 | Link |
Registered User
Join Date: Aug 2009
Posts: 374
|
Why do people still use PSNR other than a complementary metric? It should be well-known by this point that PSNR doesn't accurately measure picture quality because it tends to favor blur over maintaining psychovisual quality. Use SSIM (or VMAF).
|
17th June 2024, 13:58 | #1024 | Link | |
Artem S. Tashkinov
Join Date: Dec 2006
Posts: 378
|
Quote:
Contrast edges are the image areas where you can clearly see lines and other abrupt changes that are not gradients. Video codecs have been able to encode gradients with a very high efficiency lately but that's not what video encoding IMO is in general about. There have been a number of AI encoding companies that have popped up recently, and that's exactly what they're doing. They use AI techniques to identify the areas of the frame that are gradients or something that doesn't require a lot of bitrate and the areas that have fine detail. Then they tell the video codec how to use its bitrate allocation for that frame, and the result is spectacular. SSIM is probably it but I've heard that encoders have learned to cheat this metric as well, so I still prefer to use my eyes to judge the end result. |
|
17th June 2024, 14:18 | #1025 | Link |
Artem S. Tashkinov
Join Date: Dec 2006
Posts: 378
|
And vmaf straight out lies about my encodes:
Code:
$ vmaf -r source.y4m -d vvenc.y4m VMAF version 2.3.0 30 frames ⡃⢐ 31.97 FPS vmaf_v0.6.1: 99.889631 $ vmaf -r source.y4m -d x265.y4m VMAF version 2.3.0 30 frames ⡃⢐ 31.61 FPS vmaf_v0.6.1: 99.843432 $ vmaf -r source.y4m -d source.y4m VMAF version 2.3.0 30 frames ⡃⢐ 31.01 FPS vmaf_v0.6.1: 99.914262 2. It assigns near perfect scores to the encodes both of which are hardly visually lossless 3. When the source is equal to the result the score is not 100. That's just funny. Last edited by birdie; 17th June 2024 at 14:20. |
17th June 2024, 14:32 | #1026 | Link |
Artem S. Tashkinov
Join Date: Dec 2006
Posts: 378
|
And SSIM doesn't seem to paint the right picture either Image similarity comparison simulating human perception :
Code:
$ dssim img-source.png img-vvenc.png img-x265.png 0.002890 img-vvenc.png 0.003232 img-x265.png It's only PNG that seems to get it right: Code:
ls -l *png 587014 img-vvenc.png 657898 img-x265.png 689009 img-source.png Last edited by birdie; 17th June 2024 at 14:37. |
17th June 2024, 14:40 | #1027 | Link |
Registered User
Join Date: Aug 2009
Posts: 374
|
Most modern codecs allow you to "tune" for a particular metric (at least for psnr or ssim), x265 does, does vvcenc have the ability to "tune" for a particular metric? If so, try comparing x265 and vvcenc both "tuned" for the same metric.
And then there is always the possibility that vvcenc sucks for 1080p SDR content compared to x265. |
17th June 2024, 14:41 | #1028 | Link | |
Artem S. Tashkinov
Join Date: Dec 2006
Posts: 378
|
Quote:
Exactly what I claimed earlier: modern codecs, AV1/VVC are optimized for 4K/HDR/10/12bit videos. |
|
17th June 2024, 18:16 | #1029 | Link | |
Registered User
Join Date: Aug 2009
Posts: 374
|
Quote:
But anyway, the correct procedure is to use the same tuning or disable any tunings, no matter what the default settings are. |
|
17th June 2024, 19:49 | #1031 | Link | |||
Artem S. Tashkinov
Join Date: Dec 2006
Posts: 378
|
Quote:
You'd think that a brand new codec with roughly three times more instruments (algos) to conserve bitrate doesn't need some special options not to blur everything out, no? Anyways, I've reenabled SAO for x265, the result is slightly softer but still substantially better than for vvenc at the same bitrate. All the files have been uploaded to the same shared mega folder. Quote:
Edit: Quote:
Last edited by birdie; 17th June 2024 at 20:07. |
|||
18th June 2024, 03:34 | #1032 | Link | |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,876
|
Quote:
Like any ML model, VMAF does pretty well in interpolating values within the range of things tested in its ground truth data corpus, but is going to be a lot less predictable at extrapolating values for content that has attributes outside of what it has been trained on. Still, it's about as good as we have for "objective" metrics. The p1204 metric in full reference mode but excluding bitstream data may do as well or better. As always in the early days of encoder development and tuning, we need to rely on our eyeballs first and foremost until we get updated metrics and/or some experience with how to usefully apply existing metrics. |
|
22nd June 2024, 13:29 | #1033 | Link | |
Registered User
Join Date: Dec 2013
Location: Berlin, Germany
Posts: 396
|
That is... a Mystery!
Quote:
M4 eh? When I look at the vvenc source the x86 specific folder has around 900kb of files, the arm specific folder 50kb. Good Luck ..
__________________
My github... |
|
2nd July 2024, 16:02 | #1034 | Link |
Registered User
Join Date: Jan 2004
Posts: 16
|
Just a notification about a VVC/H266 capable Windows video player.
The latest Mpxplay-MMC v3.21 uses FFmpeg v6.1.1 with VVdec Fraunhofer Versatile Video Decoder v2.3.x (20240625) to play VVC encoded content. AV1 sw/hw decoding and DVB devices are also supported. There are 32/64 bit and installer/portable versions. Homepage: https://mpxplay.sourceforge.net FB page: https://www.facebook.com/mpxplay Last edited by MZ/X; 3rd July 2024 at 08:53. |
3rd July 2024, 00:06 | #1035 | Link |
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 3,032
|
Looks like there's gonna be some joy for those running Linux as well as far as H.266 hardware decoding is concerned.
In the last release of libva (2.22) from Intel the changelog says: - Added VVC decode LibVA interface. This is almost definitely for the GPUs included in the upcoming Intel Lunar Lake processors, so come September of this year whoever is gonna buy those processors is gonna have VA-API support for H.266 hardware decoding, which means MPV hardware decoding straight out of the box. Now that's pretty cool. |
3rd July 2024, 08:05 | #1036 | Link | |
Artem S. Tashkinov
Join Date: Dec 2006
Posts: 378
|
Quote:
|
|
3rd July 2024, 13:08 | #1038 | Link |
Registered Developer
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,368
|
It does not mean that. You still need a decoder to actually utilize the libva interface for that - eg. ffmpeg needs to implement it. And with expensive mobile-only hardware being the only testbed .. unless Intel sponsors a developer to do that by providing hardware, might take a while.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders |
4th July 2024, 00:50 | #1040 | Link |
Registered User
Join Date: Jun 2013
Posts: 102
|
Intel and AMD do support and play well with the open-source graphics stack. So, early support in libva is more of an expectation rather than a pleasant surprise.
VK_KHR_video_decode_vvc getting added to Vulkan, and subsequently getting implemented by some Mesa drivers, now that would be an interesting development (if/when it happens).
__________________
https://github.com/MoSal |
Thread Tools | Search this Thread |
Display Modes | |
|
|