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 31st August 2024, 16:59   #1061  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 3,032
On a more positive news, it looks like Nou Mi is still working on libav's H.266 VVC decoder as he just added manually written AVX2 assemblies: Link
If I find the time (and that's a big "if") this week and I'll compile a new version of FFMpeg to test how the decoder is doing in my series of sample test clips in terms of speed now that AVX2 have been introduced.
Hopefully it will reduce the gap between libav and VVDec.
FranceBB is offline   Reply With Quote
Old 31st August 2024, 21:47   #1062  |  Link
birdie
Artem S. Tashkinov
 
birdie's Avatar
 
Join Date: Dec 2006
Posts: 378
Quote:
Originally Posted by FranceBB View Post
On a more positive news, it looks like Nou Mi is still working on libav's H.266 VVC decoder as he just added manually written AVX2 assemblies: Link
If I find the time (and that's a big "if") this week and I'll compile a new version of FFMpeg to test how the decoder is doing in my series of sample test clips in terms of speed now that AVX2 have been introduced.
Hopefully it will reduce the gap between libav and VVDec.
Last time I checked vvdec was three times faster. I don't think ffmpeg's implementation is even close to closing the gap :-) And palette support is yet to be merged.
birdie is offline   Reply With Quote
Old 3rd September 2024, 05:34   #1063  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 43
They said they were not going to accept libvvdec and that's why Nuo Mi had to write a "native" decoder from scratch (no one forced him of course, but if anyone wants vvc decode in ffmpeg, someone has to write a native one).
It's not like they "forced" people to write native av1 decoder, they just use libdav1d, but hey, what can I say, perhaps the fact that the dav1d is developed by videolan makes them happier.
Z2697 is offline   Reply With Quote
Old 3rd September 2024, 09:55   #1064  |  Link
GeoffreyA
Registered User
 
Join Date: Jun 2024
Location: South Africa
Posts: 49
Quote:
Originally Posted by Z2697 View Post
They said they were not going to accept libvvdec and that's why Nuo Mi had to write a "native" decoder from scratch (no one forced him of course, but if anyone wants vvc decode in ffmpeg, someone has to write a native one).
It's not like they "forced" people to write native av1 decoder, they just use libdav1d, but hey, what can I say, perhaps the fact that the dav1d is developed by videolan makes them happier.
I remember reading the discussion about that. There seemed to be politics going on, where one of the developers was opposing that anything VVC should be included. There was also opposition to the native decoder that Nuo Mi and others had been working on for some time. If I remember correctly, Mi reasoned that, if not the native decoder, using libvvdec for the time being would allow them to work on the CBS module, etc.

Last edited by GeoffreyA; 3rd September 2024 at 12:21.
GeoffreyA is offline   Reply With Quote
Old 3rd September 2024, 11:13   #1065  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,368
Quote:
Originally Posted by Z2697 View Post
They said they were not going to accept libvvdec and that's why Nuo Mi had to write a "native" decoder from scratch (no one forced him of course, but if anyone wants vvc decode in ffmpeg, someone has to write a native one).
You got the timeline mixed up here, vvdec was not accepted because the native decoder was in the works.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 3rd September 2024, 13:05   #1066  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 3,032
Yep, the native decoder was in the works and therefore they pushed back on the inclusion of VVDec much to Adam Wieckowski's disappointment.
I was also a bit disappointed and many people were, 'cause the whole thing wasn't 100% clear back then and many people thought that the patches were being refused 'cause there were some hardcore AV1 supporter that wanted to see H.266 VVC fail. That wasn't true, of course, but the fact that people didn't know that there was a native decoder in the works led to some very speculative (and often rude) comments in the mailing list and on various channels. What's ironic is that the refinement and improvement of the H.266 VVC decoder were done as one of the projects of the Google Summer of Code 2023 Link by Nuo Mi, Anton Khirnov and of course Frank Plowman, so, ironically, Google, the one behind AV1, sponsored that. This obviously brought all the flame and the controversies to an end, but still the amount of disinformation that spread earlier on was astonishing and the whole thing was very sad to read...

Last edited by FranceBB; 3rd September 2024 at 13:08.
FranceBB is offline   Reply With Quote
Old 3rd September 2024, 21:10   #1067  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 43
I didn't really paid attention to the timeline when I saw that conversation, that's true. I can't find it again, anyone has link to that mailing list thread? (where they also discussed libdav1d being integrated and libopus being the only non-experimental encoder for opus, but the main topic is libvvdec)
Z2697 is offline   Reply With Quote
Old 3rd September 2024, 21:44   #1068  |  Link
GeoffreyA
Registered User
 
Join Date: Jun 2024
Location: South Africa
Posts: 49
Quote:
Originally Posted by Z2697 View Post
I didn't really paid attention to the timeline when I saw that conversation, that's true. I can't find it again, anyone has link to that mailing list thread? (where they also discussed libdav1d being integrated and libopus being the only non-experimental encoder for opus, but the main topic is libvvdec)
https://patchwork.ffmpeg.org/comment/60589/
GeoffreyA is offline   Reply With Quote
Old 4th September 2024, 14:36   #1069  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 43
Quote:
Originally Posted by GeoffreyA View Post
That's exactly what I was looking for! Thanks!

So the conversation was indeed happend long before we see the work of native vvc decoder in public, but after being reminded by nevcairiel and FranceBB I realized I shouldn't just imagine some conspiracy based on that. I mean maybe there're non-public developments.

Quote:
Nuo Mi said in that thread:
We will not have a useable native vvc decoder in 0.5~1 years.
I don't know if that "we" refers to a team that Nuo Mi is/was in and was already working on native vvc decoder that moment.

Last edited by Z2697; 4th September 2024 at 14:39.
Z2697 is offline   Reply With Quote
Old 4th September 2024, 15:36   #1070  |  Link
GeoffreyA
Registered User
 
Join Date: Jun 2024
Location: South Africa
Posts: 49
I think it will be hard to know without asking Nuo Mi. If we look at the ffvvc fork where they developed the decoder, the first commits by Mi were after the date of that discussion (except for one related to HEVC).

https://github.com/ffvvc/FFmpeg/comm...354ef8d27c2+34
GeoffreyA is offline   Reply With Quote
Old 5th September 2024, 00:08   #1071  |  Link
hajj_3
Registered User
 
Join Date: Mar 2004
Posts: 1,143
Allegro DVT Launches The Industry’s First Real-Time VVC/H.266 Encoder IP

https://www.allegrodvt.com/news/alle...66-encoder-ip/
hajj_3 is offline   Reply With Quote
Old 5th September 2024, 13:11   #1072  |  Link
birdie
Artem S. Tashkinov
 
birdie's Avatar
 
Join Date: Dec 2006
Posts: 378
Quote:
Originally Posted by hajj_3 View Post
Allegro DVT Launches The Industry’s First Real-Time VVC/H.266 Encoder IP

https://www.allegrodvt.com/news/alle...66-encoder-ip/
That's old news and I mentioned it in the WP article several weeks ago.
birdie is offline   Reply With Quote
Old 6th September 2024, 16:56   #1073  |  Link
ShortKatz
Registered User
 
Join Date: Aug 2018
Location: Germany
Posts: 131
The experimental flag for VVC was removed from FFmpeg today. If you now build mpv with the most recent FFmpeg, you can play VVC files. I've tested this with 5 different VVC samples, all played without issue.
ShortKatz is offline   Reply With Quote
Old 7th September 2024, 02:08   #1074  |  Link
ksec
Registered User
 
Join Date: Mar 2020
Posts: 132
Quote:
Originally Posted by ShortKatz View Post
The experimental flag for VVC was removed from FFmpeg today. If you now build mpv with the most recent FFmpeg, you can play VVC files. I've tested this with 5 different VVC samples, all played without issue.
Which means we should expect this to officially land in 7.1, hopefully this October if not November.

Now we just need an encoder to play with. Unfortunately that is slower than expected. Normally we have experimental encoder first before decoder being officially a feature on FFmpeg.
__________________
Previously iwod
ksec is offline   Reply With Quote
Old 9th September 2024, 08:45   #1075  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 43
Quote:
Originally Posted by ksec View Post
Which means we should expect this to officially land in 7.1, hopefully this October if not November.

Now we just need an encoder to play with. Unfortunately that is slower than expected. Normally we have experimental encoder first before decoder being officially a feature on FFmpeg.
libvvenc is available now, or actually, available for quite some time now.
Z2697 is offline   Reply With Quote
Old 10th September 2024, 17:31   #1076  |  Link
ShortKatz
Registered User
 
Join Date: Aug 2018
Location: Germany
Posts: 131
Yes, you can build FFmpeg with --enable-libvvenc to get VVC encoding support. But encoding speed is very very slow.
ShortKatz is offline   Reply With Quote
Old 12th September 2024, 20:21   #1077  |  Link
frankplow
Registered User
 
Join Date: Sep 2024
Posts: 1
Quote:
Originally Posted by birdie View Post
Last time I checked vvdec was three times faster. I don't think ffmpeg's implementation is even close to closing the gap :-) And palette support is yet to be merged.
VVdeC also does not support the Main 10 4:4:4 profile, which includes the Palette tool.

I think Nuo Mi is focussing on performance now, seeing as the decoder is nearly Main 10 compliant. I haven't seen a difference quite as significant as 3x for some time and the gap is closing.



(i7-8700k, 12 hyperthreads)

Last edited by frankplow; 12th September 2024 at 20:31.
frankplow is offline   Reply With Quote
Old 13th September 2024, 10:18   #1078  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 770
Codec VVenc quality does not pass the test with ffmpeg
https://www.sendspace.com/file/5nfqhn
frame= 0 fps=0.0 q=0.0 size= 1KiB time=N/A bitrate=N/A speed=N/A
ERROR: In function "lastPOCInCache" in RateCtrl.h:185: Accessing empty cache
[vost#0:0/libvvenc @ 000001c546ea4310] Error submitting video frame to the encoder
[vost#0:0/libvvenc @ 000001c546ea4310] Error encoding a frame: Generic error in an external library
[vost#0:0/libvvenc @ 000001c546ea4310] Task finished with error code: -542398533 (Generic error in an external library)
[vf#0:0 @ 000001c54705b300] All consumers returned EOF
[vost#0:0/libvvenc @ 000001c546ea4310] Terminating thread with return code -542398533 (Generic error in an external library)
Jamaika is offline   Reply With Quote
Old 13th September 2024, 16:27   #1079  |  Link
birdie
Artem S. Tashkinov
 
birdie's Avatar
 
Join Date: Dec 2006
Posts: 378
Quote:
Originally Posted by frankplow View Post
VVdeC also does not support the Main 10 4:4:4 profile, which includes the Palette tool.

I think Nuo Mi is focussing on performance now, seeing as the decoder is nearly Main 10 compliant. I haven't seen a difference quite as significant as 3x for some time and the gap is closing.

(i7-8700k, 12 hyperthreads)
I tested the builtin decoder months ago before optimizations and even in your example VVDec is almost twice as fast for the 4K sample so there's plenty room for improvement.

I'm quite sure the builtin decoder will surpass VVDec performance wise eventually but we are not there yet.

Last edited by birdie; 13th September 2024 at 16:38.
birdie is offline   Reply With Quote
Old 14th September 2024, 10:20   #1080  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,079
New uploads: [Windows][GCC 14.2.0][64 bit]

Fraunhofer VVC Encoder ver. 1.12.0 a1996a8

Fraunhofer VVC Decoder ver. 3.0.0-rc1 eb1944e
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH 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 01:46.


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