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 > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 29th March 2020, 23:52   #1  |  Link
Banda.Bassotti
Registered User
 
Join Date: Mar 2020
Posts: 1
Request for encoding course in HEVC HDR10

Good evening guys. I am new to this blog. I have been encoding in HEVC 1080p and 720p since 2014. I would like to switch to encoding in HEVC 4K HDR10 but the software that I use does not allow me to encode in HDR10. I run 10bit encodings but they said I'm not HDR. Do any of you know or know how to indicate a post or video of a complete course for HDR10 encoding? Where are all the software and commands to be used for encoding indicated? Thanks in advance.
Banda.Bassotti is offline   Reply With Quote
Old 30th March 2020, 00:10   #2  |  Link
stax76
Registered User
 
Join Date: Jun 2002
Posts: 6,309
Maybe there are not many tutorials if any, it has something to do with not many people still encode but rather watch netflix and it has something to do with complexity got out of control due to the ever growing amount of formats and tools, half of them useless or obsolete.
stax76 is offline   Reply With Quote
Old 30th March 2020, 03:33   #3  |  Link
cool advertise
Registered User
 
cool advertise's Avatar
 
Join Date: Aug 2008
Location: Italy
Posts: 22
Knowledge of x265 encoder and avisynth are the basics for getting started.
I use MeGUI as software, but I believe there are many others that I don't use and don't know.
I wouldn't rule out that there are other software that simplifies everything.
It is difficult to say if and how deeply someone here can go to explain every single x265 command; I think a developer could do it or a person with a great knowledge of x265; since the guide is very technical and difficult to understand, and the function and modification of each single x265 parameter is very wide to discuss.
Personally I have learned MeGUI by attempts, so the advice I can give you on MeGUI is: try, try and try again until you do not succeed.

Last edited by cool advertise; 30th March 2020 at 05:49.
cool advertise is offline   Reply With Quote
Old 30th March 2020, 06:42   #4  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 3,198
Quote:
Originally Posted by cool advertise View Post
Knowledge of x265 encoder and avisynth are the basics for getting started.
I use MeGUI as software, but I believe there are many others that I don't use and don't know.
I wouldn't rule out that there are other software that simplifies everything.
As someone who has probably done more HDR-10 encoding than the rest of you put together, I can't imagine using AVISynth or MeGUI, neither of which has any idea about any non 709 color volume. If I have to do it with free tools, it's ffmpeg piped into x265, carefully not doing any scaling or other processing. Using PQ well means doing everything in linear light. You can't just average code values like all SDR stuff has used.

So, from the get go, you're talking tools that can work in 32-bit float linear light to do even basic scaling or compositing. Even the 2020 Adobe tools are really tricky to get right with this, with a lot of expensive hardware. There is only one AJA board that can output real-time previews to a HDR TV, and that's only been available the last year. Practical use typically involves ColorFront or Lustre.

Plus working with 4K with 128 bits/pixel requires a whole lot of RAM and a serious GPU. My HDR workstation has 256 GB RAM, dual Xeon Gold 6240s, a Quadro RTX 6000, a high end AJA board, and 48 TB of RAID storage.

Yeah, the GPU has 24 GB of VRAM.

And I still can't open 8K HDR in After Effects without crashing, and regularly get seconds-per-frame rendering times for even moderately complicated anything.

By EOY 2020 I hope 4K HDR is reasonable on the desktop for $5-6K, with new software tools.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 30th March 2020, 07:28   #5  |  Link
cool advertise
Registered User
 
cool advertise's Avatar
 
Join Date: Aug 2008
Location: Italy
Posts: 22
Quote:
Originally Posted by benwaggoner View Post
I can't imagine using AVISynth or MeGUI, neither of which has any idea about any non 709 color volume. If I have to do it with free tools, it's ffmpeg piped into x265, carefully not doing any scaling or other processing.
Sorry I meant MeGUI with AviSynth+ portable.
I made some 4K encoding with MeGUI software in x265 64 bit, HDR10, bit depth: 10 bit, primary colors: BT.2020, AviSynth+ portable without any problems.
ffmpeg piped into x265, is a process that automates megui...

Last edited by cool advertise; 30th March 2020 at 07:45.
cool advertise is offline   Reply With Quote
Old 30th March 2020, 15:39   #6  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Hollola, Finland
Posts: 4,807
Quote:
Originally Posted by benwaggoner View Post
If I have to do it with free tools, it's ffmpeg piped into x265, carefully not doing any scaling or other processing. Using PQ well means doing everything in linear light. You can't just average code values like all SDR stuff has used.
If I'm not entirely mistaken, you can use ResampleHQ to scale in Vapoursynth. It will do scaling in linear light, using single float precision and correct matrix and transfer characteristics.

EDIT: doesn't the x265 encoder itself work a bit silly since it seems to do all the work on a flat image?
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...

Last edited by Boulder; 30th March 2020 at 15:44.
Boulder is offline   Reply With Quote
Old 30th March 2020, 16:24   #7  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 3,198
Quote:
Originally Posted by Boulder View Post
If I'm not entirely mistaken, you can use ResampleHQ to scale in Vapoursynth. It will do scaling in linear light, using single float precision and correct matrix and transfer characteristics.
Right, Vaporsynth is a lot more capable. I've not tried it for this scenario personally, but it's what I would try.

Quote:
EDIT: doesn't the x265 encoder itself work a bit silly since it seems to do all the work on a flat image?
x265 works fine, but relies on having the correct pixel value inputs. x265 doesn't do any scaling or other image processing, so it doesn't need linear light. It's a matter of setting the output metadata to match the characteristics of the source.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 30th March 2020, 20:46   #8  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,680
Yep, I do all my HDR10 encoding in ffmpeg using libx265. I get studio accepted results coming from ProRes 422 HQ or ProRes 4444 XQ.
Blue_MiSfit is offline   Reply With Quote
Old 1st April 2020, 01:25   #9  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 3,198
Quote:
Originally Posted by Blue_MiSfit View Post
Yep, I do all my HDR10 encoding in ffmpeg using libx265. I get studio accepted results coming from ProRes 422 HQ or ProRes 4444 XQ.
Do you do any scaling in ffmpeg? Without a real linear light model, I'm worried weird edge enhancement problems would happen. The average of PQ 256 and 768 isn't a code value of 512!
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 1st April 2020, 04:49   #10  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,680
Yep.

We set flags=spline+accurate_rnd and have passed the studio golden eyes QC.

Linear light scaling may indeed be better, but it seems in practice this isn't an issue for us.
Blue_MiSfit is offline   Reply With Quote
Old 2nd April 2020, 21:48   #11  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 3,198
Quote:
Originally Posted by Blue_MiSfit View Post
Yep.

We set flags=spline+accurate_rnd and have passed the studio golden eyes QC.

Linear light scaling may indeed be better, but it seems in practice this isn't an issue for us.
Probably fine for most content. But if you do something like alternating black and white lines scaled down 50%, the resulting gray isn't going to be the same nits as the mean of the white and black lines. I'd keep an eye out for changes in sharp edges. The results will be monotonic at least.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner 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 06:14.


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