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 9th December 2018, 11:10   #81  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 697
Use file "yuv"
Code:
ffmpeg.exe -y -loglevel error -i Untitled.mp4 -an -f yuv4mpegpipe -frames 1 -vf scale=1920:1080:in_color_matrix=bt709:in_range=limited:out_color_matrix=bt709:out_range=limited,format=yuv420p 111.yuv | 
vvc.exe -i 111.yuv -b video.vvc -wdt 1920 -hgt 1080 --FrameRate=25000/1000 --InputBitDepth=8 --InputChromaFormat=420 --QP=0 --Profile=next 
--QuadtreeTULog2MaxSize=5 --QuadtreeTUMaxDepthIntra=4 --QuadtreeTUMaxDepthInter=4 --IntraPeriod=1 --DecodingRefreshType=1 --GOPSize=1 --FramesToBeEncoded=1 
--ConformanceWindowMode=0 --SEIDecodedPictureHash=3 --CTUSize=32
The parameters in red must be entered.
Jamaika is offline   Reply With Quote
Old 9th December 2018, 23:23   #82  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
Just tested it; it works. Thanks ^_^
FranceBB is offline   Reply With Quote
Old 20th January 2019, 12:04   #83  |  Link
hajj_3
Registered User
 
Join Date: Mar 2004
Posts: 1,120
VVC Test Model v3.2 has been released: https://vcgit.hhi.fraunhofer.de/jvet/VVCSoftware_VTM

Hopefully some of you guys will do some new compression comparisons to h265, vp9, x264 and av1.

changelog: https://vcgit.hhi.fraunhofer.de/jvet...tware_VTM/tags

Last edited by hajj_3; 20th January 2019 at 12:11.
hajj_3 is offline   Reply With Quote
Old 28th January 2019, 23:39   #84  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
Quote:
Originally Posted by hajj_3 View Post
VVC Test Model v3.2 has been released: https://vcgit.hhi.fraunhofer.de/jvet/VVCSoftware_VTM
Oh, that's interesting.

Quote:
Originally Posted by hajj_3 View Post
Hopefully some of you guys will do some new compression comparisons to h265, vp9, x264 and av1.

changelog: https://vcgit.hhi.fraunhofer.de/jvet...tware_VTM/tags
I will indeed as I have an 8K 4:2:0 SDR footage at 60fps progressive.
LigH, can you compile the new version?
FranceBB is offline   Reply With Quote
Old 30th January 2019, 00:27   #85  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,750
Quote:
Originally Posted by FranceBB View Post
I will indeed as I have an 8K 4:2:0 SDR footage at 60fps progressive.
I am profoundly curious to hear how long it takes to encode that!

Previous test models for VVC were quite a bit faster than AV1, at least. But 8K...

It would be interesting to compare 8K HEVC v. VVC. I've heard suggestions that both EVC and VVC will have higher relative gains to HEVC at 8K.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 6th February 2019, 18:21   #86  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,752
VVCSoftware VTM-4.0rc1 4add4da (MSYS2, MinGW32 + GCC 7.4.0 / MinGW64 + GCC 8.2.1)
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 12th February 2019, 17:44   #87  |  Link
Tommy Carrot
Registered User
 
Tommy Carrot's Avatar
 
Join Date: Mar 2002
Posts: 863
Thanks for the new builds. The quality/efficiency is improving steadily with each major version. The encoding speed is getting slower and slower, but that's to be expected as they add more tools into the encoder. Now it's around 3 times slower than the slowest preset of aomenc.
Tommy Carrot is offline   Reply With Quote
Old 26th February 2019, 19:15   #88  |  Link
EwoutH
Registered User
 
Join Date: Feb 2019
Location: Delft, Netherlands
Posts: 15
VTM-4.0.1 is released

Changes
  • Fix tickets #153, #183, #185, #188, #190, #191, #193, #194, #195, #196, #197, #199, #200
  • Add JVET-M0277 on PCM and loop filter
  • Add JVET-M0428 on deblocking optimization
  • Add JVET-M0451 on interop syntax
  • Add JVET-M0600 on rate control
  • Add encoder speedup for JVET-M0102 (ISP)
  • Add macro to disable MMVD
  • Other minor improvements

Windows builds
EwoutH is offline   Reply With Quote
Old 13th March 2019, 14:54   #89  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,752
New upload: VVCSoftware VTM-4.0.1 ccf7079 (MSYS2, MinGW32 + GCC 7.4.0 / MinGW64 + GCC 8.3.0)
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 1st April 2019, 00:10   #90  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
I tried to encode an 8K 12bit video on my Windows Server 2019, but it outputs:

Error: The internalBitDepth must not be greater than the bitDepthConstraint value

Which basically means that the profile I'm trying to use doesn't support such an high bit-depth.
Is there a 12bit profile that I can use or do I have to encode at 8bit/10bit only?
I ended up encoding at 10bit with a few tests, like:

Code:
ffmpeg.exe -i "\\VBOXSVR\Share_Windows_Linux\Production\AVS\test2.avs" -strict -1 -an -f yuv4mpegpipe -vf scale=7680:4320:in_color_matrix=bt709:in_range=limited:out_color_matrix=bt709:out_range=limited,format=yuv444p 111.yuv | vcc.exe -i 111.yuv -b "raw_video.vvc" -wdt 7680 -hgt 4320 --Profile=next --FrameRate=60000/1001 --InputBitDepth=12 --OutputBitDepth=10 --InternalBitDepth=10 --InputChromaFormat=444 --QP=8 --FramesToBeEncoded=5220 --GOPSize=1 --IntraPeriod=1 --ConformanceWindowMode=0 --SEIDecodedPictureHash=3 --CTUSize=32 --BitstreamFile=vvc.bitsteam

pause
Which parameters do I have to set to set Reframe equal to 4?
I tried with --GOPSize=2 --IntraPeriod=4 as Intra must be a multiple of the GOPSize, but it fails to encode.
Also --GOPSize=4 --IntraPeriod=-1 fails to encode.
If I manage to get it right, I'll share the encode at different --QP. The only bad thing is that it takes minutes (yes, minutes) to encode even a single frame on my home system and it's a faster (but still slow as hell) on my work machine. What speed do you usually get on your systems?


Last but not least, in case anyone needs this to encode SD/HD/FULL HD 8bit contents, here is VVCSoftware_VTM_V4.1.0 (Encoder and Decoder) for Windows XP x86: Link

Working example (Image): Link

The reason why I specified the resolution and the bit depth is only 'cause above FULL HD you'll end up using too much RAM and it's gonna crash. (Not that everyone wants to encode an 4K/8K on such a system).
FranceBB is offline   Reply With Quote
Old 2nd April 2019, 08:06   #91  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 697
Hi FranceBB
Profile NEXT is the successor of only profile MAIN.
Profile MAIN is only 8bit and has chroma format of 420.
As you added 10 bitdepth the encoder automatically changed to the profile MAIN10, which has nothing to do with the VVC codec. At least this is recommended in the .cfg settings.
Of course you can change the parameters so that the encoder changes for the 12 bitdepth profile settings to MAINREXT.
Code:
m_bitDepthConstraint     = ( ( m_profile == Profile::MAINREXT || m_profile == Profile::NEXT ) ? 16 : 8 );
Jamaika is offline   Reply With Quote
Old 2nd April 2019, 16:41   #92  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,750
Quote:
Originally Posted by Jamaika View Post
Hi FranceBB
Profile NEXT is the successor of only profile MAIN.
Profile MAIN is only 8bit and has chroma format of 420.
Nooo! We can't have ANOTHER generation of codecs that have a default profile that's 8-bit only. We are entering the HDR era, and 10-bit really need to be the baseline for everything.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 2nd April 2019, 16:46   #93  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,341
Quote:
Originally Posted by benwaggoner View Post
Nooo! We can't have ANOTHER generation of codecs that have a default profile that's 8-bit only. We are entering the HDR era, and 10-bit really need to be the baseline for everything.
There should always be different profiles for 8-bit and 10-bit. The difference is only how you word the spec to make supporting both "main" profiles mandatory at the same time. HEVC already did a pretty good job at that, and 10-bit decoders are pretty wide-spread.
What is a "default profile" beyond an implementation detail, anyway?

Even if you shove both into one profile, if someone really wants to, they'll still make a 8-bit only decoder. So lets at least have the clarity we need and call them different.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is online now   Reply With Quote
Old 2nd April 2019, 17:41   #94  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,750
Quote:
Originally Posted by nevcairiel View Post
There should always be different profiles for 8-bit and 10-bit. The difference is only how you word the spec to make supporting both "main" profiles mandatory at the same time. HEVC already did a pretty good job at that, and 10-bit decoders are pretty wide-spread.
What is a "default profile" beyond an implementation detail, anyway?

Even if you shove both into one profile, if someone really wants to, they'll still make a 8-bit only decoder. So lets at least have the clarity we need and call them different.
Good point. 8-bit SDR content should be encoded at 8-bit. It's more about setting the standard that 10-bit should always be decodable.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 4th April 2019, 02:47   #95  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,883
Quote:
Originally Posted by Jamaika View Post
Hi FranceBB
Profile NEXT is the successor of only profile MAIN.
Profile MAIN is only 8bit and has chroma format of 420.
As you added 10 bitdepth the encoder automatically changed to the profile MAIN10, which has nothing to do with the VVC codec. At least this is recommended in the .cfg settings.
Of course you can change the parameters so that the encoder changes for the 12 bitdepth profile settings to MAINREXT.
Code:
m_bitDepthConstraint     = ( ( m_profile == Profile::MAINREXT || m_profile == Profile::NEXT ) ? 16 : 8 );
Oh, ok, I got it. When I have time, I'm gonna try to make a few tests and I'm gonna be back here with the results. I was thinking about running some ssim/psnr tests, but since there are no decoders available to natively read it, I would have to re-encode it to a lossless format and then run ssim/psnr; the only problem is that I have no idea how to do that. Is there something to actually re-encode a VVC file? Otherwise I think I'm just gonna use my eyeballs.
FranceBB is offline   Reply With Quote
Old 4th April 2019, 04:56   #96  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 697
I created VVC ver.4.2 8-12bit codec only for color sample 420 with the profile NEXT associated with profile MAINREXT. Of course, there is no specification for VVC.
The second one is currently a codec toy. You need to add the appropriate parameters to each frame of the movie. A very burdensome function `--frameX="..."`
Errors codec for movies than 8bit. Can not be used yuv4mpegpipe
Code:
ffmpeg.exe -y -loglevel error -i "video.mp4" -an -f rawvideo -frames 16 
-vf scale=1280:720:in_color_matrix=bt709:in_range=limited:out_color_matrix=bt709:out_range=limited,format=yuv420p12le -strict -1 111.yuv
Code:
EncoderApp.exe --SummaryVerboseness -c "encoder_randomaccess_vtm.cfg" --InputFile=111.yuv --BitstreamFile=video.vvc --SourceWidth=1280 --SourceHeight=720 --FrameRate=25 --ReshapeSignalType=1 
--InputBitDepth=12 --InternalBitDepth=12 --OutputBitDepth=12 --MSBExtendedBitDepth=12 --InputChromaFormat=420 --ChromaFormatIDC=420 --ConformanceWindowMode=0 --FramesToBeEncoded=16
Delete InternalBitDepth in files cfg.
Code:
DecoderApp.exe -b video.vvc -d 12 --SEIDecodedPictureHash=0 -o 112.yuv
Code:
ffplay.exe -pixel_format yuv420p12le -video_size 1280x720 112.yuv
Quote:
Originally Posted by benwaggoner View Post
We are entering the HDR era, and 10-bit really need to be the baseline for everything.
Maybe. For a VVC codec it isn't a significant SDR or HDR. It doesn't distinguish between bitdepth. This is just an info function ReshapeSignalType

https://www.sendspace.com/filegroup/...ylKrR13h57SViQ

Last edited by Jamaika; 4th April 2019 at 05:07.
Jamaika is offline   Reply With Quote
Old 5th April 2019, 08:48   #97  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,752
The media-autobuild suite enabled compiling with split parallelism.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 11th April 2019, 07:50   #98  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 697
JVET-N0671: Support of 4:4:4 and 4:2:2 chroma formats in VVC
Jamaika is offline   Reply With Quote
Old 12th April 2019, 07:54   #99  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 697
Quote:
Originally Posted by LigH View Post
The media-autobuild suite enabled compiling with split parallelism.
I didn't succeed. Under Windows doesn't work with gcc.
OpenMP software needs assembler, although creators sometimes add in cmake.
https://github.com/jb-alvarado/media...c62f5831737dd5
Jamaika is offline   Reply With Quote
Old 12th April 2019, 08:21   #100  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,752
Would you report that as issue there? I don't know what it lacks exactly. NASM is available in MABS.
__________________

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 10:50.


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