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 > New and alternative video codecs

Reply
 
Thread Tools Search this Thread Display Modes
Old 10th June 2021, 16:34   #41  |  Link
nhw_pulsar
Registered User
 
Join Date: Apr 2017
Posts: 51
Hi,

Just a quick message as I finally could test VVC intra image compression thanks to Jamaika's bpgenc_jvetvvc and DecoderApp then I use IrfanView to convert the yuv420 file to bmp image.

For now there is a slight discoloration (colorspace slight mismatch between bpg and IrfanView), so hope that it does not distort too much the evaluation... but however it can give a first idea/review of VVC intra.

For now I have just tested on 10 high quality images I have at NHW -l9 high compression setting, and for me (and again only for me) NHW is visually competitive with VVC intra at high compression, as for me NHW performs very well on these images but VVC intra is also very good.

I just tested on 2 images at -l13 compression setting, and I think that VVC intra starts to be very impressive at very high/extreme compression.

For the complexity, JVET VVC (VTM) takes in average 60sec to encode and 55ms-85ms to decode to yuv420, and totally unoptimized NHW takes 30ms to encode and 15ms to decode (VVC VTM has SIMD, and I also think multithreading).

But again globally, VVC intra seems very good notably visually, which is also in a way normal given the time it takes to compute!...

Cheers,
Raphael
nhw_pulsar is offline   Reply With Quote
Old 11th June 2021, 21:16   #42  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 3,751
Wow, a minute for how big an image?

I don't sweat reference encoder speed much, because there are hugely unoptimized. I'm sure intra-only will be 100x faster in practical implementations. And decode only being 4x more at this point bodes very well.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 11th June 2021, 22:03   #43  |  Link
nhw_pulsar
Registered User
 
Join Date: Apr 2017
Posts: 51
Hello,

It is actually a one minute encode for a 512x512 image.

The VVC decoder is 4x slower than totally unoptimized NHW decoder, but with the same level of optimization, as my computer has 4 threads and AVX2 SIMD, then NHW decoder could be nearly 4x5=20x faster and so 80x faster than VVC decoder...
nhw_pulsar is offline   Reply With Quote
Old 12th June 2021, 08:14   #44  |  Link
Gravitator
Registered User
 
Join Date: May 2014
Posts: 206
Здравствуй!
Make a demo like this for an example > https://eclipseo.github.io/image-comparison-web/
__________________
Win10x64, Xeon E5450, GTX 750 2GB, DDR3 8GB.
Gravitator is offline   Reply With Quote
Old 12th June 2021, 09:54   #45  |  Link
nhw_pulsar
Registered User
 
Join Date: Apr 2017
Posts: 51
Hello!

Yes I should make an image comparison like this one.I can not use exactly the same example you pointed out, but I've seen few online websites that offer similar image comparison viewers (that will be easier for me...).

Also I will not be able to use these example images as NHW doesn't encode for now such image sizes, but also the problem is that my high quality images on which NHW works well, have copyright and so I don't think I am allowed to publish them on the Internet...

But I will try to find a solution with an online image comparison provider website, as you're right it is very needed, but please be patient as I am very lazy currently...

Cheers,
Raphael
nhw_pulsar is offline   Reply With Quote
Old 13th June 2021, 15:46   #46  |  Link
nhw_pulsar
Registered User
 
Join Date: Apr 2017
Posts: 51
Quote:
Originally Posted by nhw_pulsar View Post
Hello,

It is actually a one minute encode for a 512x512 image.

The VVC decoder is 4x slower than totally unoptimized NHW decoder, but with the same level of optimization, as my computer has 4 threads and AVX2 SIMD, then NHW decoder could be nearly 4x5=20x faster and so 80x faster than VVC decoder...
Hi benwaggoner,

Sorry for my aggressive unrealistic decoder speed number.To be exact, when I tested in 2008-2009, x264 image compression (which was called UCI codec), I measured quickly that NHW was 1.2x faster to decode than x264, but my computer at that time had 2 threads and SSE2 if I remember correctly, so I estimated that NHW was 1.2x2x2.5= 6x faster than x264/H.264 to decode.From that number, I estimated that NHW was around 15x faster to decode than HEVC, and now all the benchmarks converge to say that VVC is 1.8x slower to decode than HEVC, so normally NHW is 15x1.8= 27x faster to decode than VVC.

So again I apologize for my little aggressiveness, I know that VVC is a well-respected professional codec, and that NHW beside is a total amateur project that won't lead to an industry project.But it's still great to have places like here, where we can talk all kinds of codecs.

Cheers,
Raphael
nhw_pulsar is offline   Reply With Quote
Old 14th June 2021, 20:36   #47  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 3,751
HEVC and VVC are also better-suited for parallel processing and SIMD in decoding single frames than older codecs. With Wavefront Parallel Processing, you can get one thread per 64 lines of the frame.

AVIF also benefits from SIMD quite a lot, and can get parallelism from tiles. It's much improved from VP8/9 which were essentially serialized for single-frame decode.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 14th June 2021, 21:29   #48  |  Link
nhw_pulsar
Registered User
 
Join Date: Apr 2017
Posts: 51
Ok, thanks for the info.

That's right that I don't know how much NHW is parallelizable and optimisable with SIMD, but really the NHW decoder algorithm has been thought to be extremely fast.And so it could be added to it an efficient post-processing stage that would remove aliasing for example...
nhw_pulsar 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 11:27.


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