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 19th March 2023, 13:10   #781  |  Link
birdie
Artem S. Tashkinov
 
birdie's Avatar
 
Join Date: Dec 2006
Posts: 313
The SpinDigital latest/last VVC patch series allows ffmpeg to encode and decode (read play in mpv) VVC/H.266 but it's not complete yet.

For instance I couldn't mux an elemental H.266 stream with AAC audio into mkv but it worked for mp4 (or was it vice versa - I don't remember now).

Also, VVC decoding [using vvdec] requires a lot of CPU resources - it's comparable to software decoded AV1.

vvdec really could use more optimizations.

If anyone's interested I can upload/share my ffmpeg/mpv builds for Fedora 37 x86_64. Don't ask for your own distro build as I'm on vacation now and my laptop is not suitable for firing up VMs with your favourite distro, let alone building software.

Last edited by birdie; 19th March 2023 at 13:14.
birdie is offline   Reply With Quote
Old 19th March 2023, 14:56   #782  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,738
It's your lucky day, Artem, 'cause I'm on Fedora xD
FranceBB is offline   Reply With Quote
Old 19th March 2023, 18:02   #783  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 682
Quote:
Originally Posted by birdie View Post
For instance I couldn't mux an elemental H.266 stream with AAC audio into mkv but it worked for mp4 (or was it vice versa - I don't remember now).
Now I see. The funny thing now is that the unfinished decoder is on ffvvc. The MP4 decoder bass plugin for all VVC codecs was made by Martin. When it connects, muxer/demuxer should work thearetically.

Last edited by Jamaika; 20th March 2023 at 06:48.
Jamaika is offline   Reply With Quote
Old 20th March 2023, 06:48   #784  |  Link
birdie
Artem S. Tashkinov
 
birdie's Avatar
 
Join Date: Dec 2006
Posts: 313
Quote:
Originally Posted by FranceBB View Post
It's your lucky day, Artem, 'cause I'm on Fedora xD
mpv / ffmpeg with VVC decoding support for Fedora 37.

The installation instructions are in the archive.

Code:
sha256sum ffmpeg+mpv-with-vvc-decoding-support-f37.tar.xz 
c6fc12b058da084e2695a01e6ac595f5f57bb4c6bc2d3864c0e065531cd79dc0  ffmpeg+mpv-with-vvc-decoding-support-f37.tar.xz

Last edited by birdie; 20th March 2023 at 08:59.
birdie is offline   Reply With Quote
Old 20th March 2023, 14:24   #785  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,738
Thank you!
Tested right up and it's actually working on my Fedora 37
FranceBB is offline   Reply With Quote
Old 20th March 2023, 15:00   #786  |  Link
birdie
Artem S. Tashkinov
 
birdie's Avatar
 
Join Date: Dec 2006
Posts: 313
Quote:
Originally Posted by FranceBB View Post
Thank you!
Tested right up and it's actually working on my Fedora 37
Could you test 4K 60fps video playback? Specifically this one? Other clips.

Can your rig play it without dropping frames? ;-) Press Shift + I too see the statistics - most importantly "Dropped frames".

My Core i5 6200U can barely handle a 1080p clip. Near 100% CPU use and almost zero headroom.

Last edited by birdie; 20th March 2023 at 15:06.
birdie is offline   Reply With Quote
Old 20th March 2023, 17:59   #787  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 682
Test ffmpeg + vvc
ffmpeg.exe -i "iphone6s_4k.mov" -c:v libuvg266 -vb 3000k -c:a ac3 -ac 2 -ab 128k -s 1920x1080 -frames 100 -pix_fmt yuv420p output_uvg266.mts --> OK
ffmpeg.exe -i "iphone6s_4k.mov" -c:v libuvg266 -vb 3000k -c:a ac3 -ac 2 -ab 128k -s 1920x1080 -frames 100 -pix_fmt yuv420p output_uvg266.mov --> decoder ffvvc + vvc_mp4toannexb_bsf.c MartinEesmaa Error {no header}
ffmpeg.exe -i "iphone6s_4k.mov" -c:v libuvg266 -vb 3000k -c:a ac3 -ac 2 -ab 128k -s 1920x1080 -frames 100 -pix_fmt yuv420p output_uvg266.mkv --> no file

ffmpeg.exe -i "iphone6s_4k.mov" -c:v libxeve -vb 3000k -c:a ac3 -ac 2 -ab 128k -s 1920x1080 -frames 100 -pix_fmt yuv420p output_xeve.mts --> no file
ffmpeg.exe -i "iphone6s_4k.mov" -c:v libxeve -vb 3000k -c:a ac3 -ac 2 -ab 128k -s 1920x1080 -frames 100 -pix_fmt yuv420p output_xeve.mov --> OK
ffmpeg.exe -i "iphone6s_4k.mov" -c:v libxeve -vb 3000k -c:a ac3 -ac 2 -ab 128k -s 1920x1080 -frames 100 -pix_fmt yuv420p output_xeve.mkv --> no file

ffmpeg.exe -f avs3 -i "SFTI_1920x1080.bin" -c:v libx264 -vb 3000k -an -s 1920x1080 -pix_fmt yuv420p output_x264.mov --> error {no frames}
ffmpeg.exe -f vvc -i "NovosobornayaSquare_1920x1080.bin" -c:v libx264 -vb 3000k -an -s 1920x1080 -pix_fmt yuv420p output_x264.mov --> error {no file}
[vvc @ 0000025b0ee2b5f0] No start code is found.
[vvc @ 0000025b0ee2b5f0] Error splitting the input into NAL units.
Jamaika is offline   Reply With Quote
Old 21st March 2023, 00:00   #788  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,653
Quote:
Originally Posted by birdie View Post
Also, VVC decoding [using vvdec] requires a lot of CPU resources - it's comparable to software decoded AV1.

vvdec really could use more optimizations.
Honestly "comparable to SW AV1" is a pretty big accomplishment this early in VVC's life cycle, and speaks to a real good job of balancing decoder cost/complexity with compression efficiency gains.

AV1 is a bear to implement in hardware.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 21st March 2023, 00:19   #789  |  Link
hajj_3
Registered User
 
Join Date: Mar 2004
Posts: 1,105
VeriSilicon delivered multi-format hardware video decoder Hantro VC9000D supporting 8K@120FPS VVC/H.266 to customers

source: https://www.verisilicon.com/en/Press.../HantroVC9000D
hajj_3 is offline   Reply With Quote
Old 21st March 2023, 23:24   #790  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,738
Quote:
Originally Posted by birdie View Post
Could you test 4K 60fps video playback?
Dude, you wanna kill my CPU? XD

Jokes aside, I run Fedora on my personal computer at home, so it's not really powerful like the Intel Xeon workstations I have at work (20c/40th) or the servers I have there (56c/112th), it's just a puny little i7 6700HQ with 4c/8th at 2.60GHz and no AVX-512 just AVX2 (yes, it could go higher like 3.5GHz single core or 3.2GHz all cores, but it would start throttling like crazy, so...)
I use it mainly to read my email, browse the internet, post random stuff on Doom9, Facebook, Linkedin, occasionally watch YouTube (mainly Sky News or Linus Tech Tips) etc.
I mean, all very basic stuff.


Anyway, FULL HD H.266 VVC playback, no problem, but with UHD 60p it was begging me to pull the plug as it just wanted to die at 95C, all cores 100%.


TL;DR no, I cannot play UHD 60p H.266 VVC without dropping frames on a 4 core laptop (nor I expected to).

Quote:
Originally Posted by benwaggoner View Post
Honestly "comparable to SW AV1" is a pretty big accomplishment this early in VVC's life cycle
It's not comparable, by the way.
In my test AV1 is lighter than H.266 VVC, probably because they had a lot of time to optimize software decoding.

Last edited by FranceBB; 21st March 2023 at 23:31.
FranceBB is offline   Reply With Quote
Old 22nd March 2023, 09:05   #791  |  Link
birdie
Artem S. Tashkinov
 
birdie's Avatar
 
Join Date: Dec 2006
Posts: 313
Quote:
Originally Posted by FranceBB View Post
Dude, you wanna kill my CPU? XD

Jokes aside, I run Fedora on my personal computer at home, so it's not really powerful like the Intel Xeon workstations I have at work (20c/40th) or the servers I have there (56c/112th), it's just a puny little i7 6700HQ with 4c/8th at 2.60GHz and no AVX-512 just AVX2 (yes, it could go higher like 3.5GHz single core or 3.2GHz all cores, but it would start throttling like crazy, so...)
I use it mainly to read my email, browse the internet, post random stuff on Doom9, Facebook, Linkedin, occasionally watch YouTube (mainly Sky News or Linus Tech Tips) etc.
I mean, all very basic stuff.


Anyway, FULL HD H.266 VVC playback, no problem, but with UHD 60p it was begging me to pull the plug as it just wanted to die at 95C, all cores 100%.


TL;DR no, I cannot play UHD 60p H.266 VVC without dropping frames on a 4 core laptop (nor I expected to).



It's not comparable, by the way.
In my test AV1 is lighter than H.266 VVC, probably because they had a lot of time to optimize software decoding.
LOL. OK ;-) Thanks.

Yeah, sorry, I stand corrected, currently software VVC decoding using VVdeC is considerably more CPU intensive than AV1 decoding.

Sorry for misleading people earlier. My Ryzen 7 5800X chewed VVC 4K 60fps no problem and I didn't quite pay attention to power consumption or CPU usage. It must have been a lot higher than AV1.
birdie is offline   Reply With Quote
Old 22nd March 2023, 12:23   #792  |  Link
birdie
Artem S. Tashkinov
 
birdie's Avatar
 
Join Date: Dec 2006
Posts: 313
From the lead Fraunhofer HHI VVC developer, Adam Wieckowski :

Quote:
AV1 decoding is really much more optimized. The dav1d decoder has more lines of assembly code than Linux kernel. We don't have the knowledge or the resources to put in this kind of work.

To be fair, the best way to improve vvdec right now would be to rewrite it, because the performance is bound by the software structure that we inherited from VTM, even if heavily optimized. And we are not going to do this. We are still working on minor improvements, but don't expect really big leaps for vvdec anytime soon. ffvvc might someday be more efficient than vvdec, but by that time I expect HW support to be fairly broad.

The only bigger thing being worked on right now is the error resilience.
birdie is offline   Reply With Quote
Old 22nd March 2023, 13:54   #793  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,738
Quote:
Originally Posted by birdie View Post
My Ryzen 7 5800X chewed VVC 4K 60fps no problem
ehehehe that's an 8c/16th 3.8GHz (max 4.7GHz) desktop CPU from 2020, no wonder it managed to decode it unlike my 4c/8th 2.6GHz laptop CPU from 2015 :P

Even benchmark values here get to the point of ridiculous in favor of your desktop CPU xD Intel i7 6700HQ vs AMD Ryzen 7 5800X
FranceBB is offline   Reply With Quote
Old 22nd March 2023, 16:14   #794  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,653
Sounds like we need the dav1d equivalent for VVC. Aomdec was similar to the Fraunhofer work here: optimizing the reference decoder, but not attempting to build a ground-up performance optimized decoder for real-world use.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 23rd March 2023, 16:56   #795  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,696
Quote:
Originally Posted by birdie View Post
From the lead Fraunhofer HHI VVC developer, Adam Wieckowski :
Does this quote have a shareable source?
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 23rd March 2023, 19:31   #796  |  Link
birdie
Artem S. Tashkinov
 
birdie's Avatar
 
Join Date: Dec 2006
Posts: 313
Quote:
Originally Posted by LigH View Post
Does this quote have a shareable source?
This.
birdie is offline   Reply With Quote
Old 24th March 2023, 20:00   #797  |  Link
DTL
Registered User
 
Join Date: Jul 2018
Posts: 1,000
Quote:
Originally Posted by birdie View Post
From the lead Fraunhofer HHI VVC developer, Adam Wieckowski :
Simple (and cheap to develop) C-reference implementation may be only for quality comparison. It will be truly free opensource working demo of a new codec. Github friendly. And to show the benefit from new version in compare with old products. For general industry it may be completely zero reason to invest into SIMD-optimized very hard to develop implementation for general purposes CPUs with SIMD co-processors just to make freeware version with no commertial benefit. For the quickly shrinking number of PC real users. The commertial developemnt is oriented into real market with real number of users to get money. May you can found ASIC for VVC decoding in some new smartphone in a few months later and it will outperform many massively-multicore expensive Xeons.

If codec will be accepted by industry it will be implemented in ASIC with all requirement performance for enduser setup (set-top-box or internal display decoder or a chip for handheld smartphone and so on).

Last edited by DTL; 24th March 2023 at 20:05.
DTL is offline   Reply With Quote
Old 6th April 2023, 10:45   #798  |  Link
birdie
Artem S. Tashkinov
 
birdie's Avatar
 
Join Date: Dec 2006
Posts: 313
VVenC 1.8 has been released.

Changes over v1.8.0-rc1
  • deprecated obsolete chroma QP control mechanism (to be removed in the next release)
  • removed deprecated parameters for partitioning control

Changes over v1.7.0
  • vvencFFapp removed from default installation
  • Speedups (~15% for faster/~5% for slower/~10% for other presets)
  • Improved error messages
  • Added temporal ALF APS prediction, closing the efficiency gap between single- and multi-threaded operation
  • Extended BIM by extrapolating parameters to non MCTF-filtered frames
  • Various fixes
  • Usability improvements
  • Various improvements
birdie is offline   Reply With Quote
Old 8th April 2023, 12:18   #799  |  Link
MartinEesmaa
Registered User
 
Join Date: Jun 2022
Location: Anywhere
Posts: 10
I updated FFmpeg and MPV with VVCEasy new builds.

I just want to let note, that I updated new FFmpeg master and MPV with VVCEasy new builds. I tried ffvvc in Windows, but it was error, so I switched from ffvvc to external VVC decoder of my own repository.

https://github.com/MartinEesmaa/VVCE...acc45942bb0420
https://github.com/MartinEesmaa/VVCE...eff0809530813e

- Martin Eesmaa
MartinEesmaa is offline   Reply With Quote
Old 9th April 2023, 12:10   #800  |  Link
Gravitator
Registered User
 
Join Date: May 2014
Posts: 289
Всем привет!
Martin Eesmaa, help?
Code:
ffmpeg -i space_6s.mkv -f yuv4mpegpipe - | vvencapp --y4m -i - --fps 24000/1001 --preset fast -q 30 -o y4m.266
Quote:
av_interleaved_write_frame(): Broken pipe
[out#0/yuv4mpegpipe @ 000001fdd23bac00] Error muxing a packet
[out#0/yuv4mpegpipe @ 000001fdd23bac00] Error writing trailer: Broken pipe
> sample
__________________
Win10x64, Xeon E5450, GTX 750 2GB, DDR3 8GB.
Gravitator 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 23:23.


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