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 > Capturing and Editing Video > Avisynth Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 21st June 2021, 16:47   #161  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,904
It was working, I updated Avisynth on my production server to 3.7.0, now it's throwing this error:



Why?

Edit: Tested on Avisynth 3.7.1 Beta 6, same result, same error.

Edit 2: I'm temporarily using ConverttoYUV422(matrix="PC2020") as a workaround. Technically, it should leave the levels untouched from the Studio RGB...

Last edited by FranceBB; 22nd June 2021 at 10:05.
FranceBB is offline   Reply With Quote
Old 23rd June 2021, 02:12   #162  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 450
avsresize_r7 (pass: hIaK6dSB69uK): fixed frame properties reading.
StvG is offline   Reply With Quote
Old 23rd June 2021, 03:09   #163  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
Thanks
kedautinh12 is offline   Reply With Quote
Old 23rd June 2021, 06:42   #164  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,904
I updated but now I get: RGB Color family cannot have YUV matrix coefficients



if I remove the last conversion and leave it as RGB it works:




Version: Avisynth 3.7.1 Beta 6 x64
OS: Windows 10 Enterprise x64

Last edited by FranceBB; 23rd June 2021 at 06:45.
FranceBB is offline   Reply With Quote
Old 23rd June 2021, 07:23   #165  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 450
Check the last line from the first screenshot: pixel_type=rgb but destination matrix 2020 (yuv).
StvG is offline   Reply With Quote
Old 23rd June 2021, 08:44   #166  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,361
Quote:
Originally Posted by StvG View Post
Check the last line from the first screenshot: pixel_type=rgb but destination matrix 2020 (yuv).
This is one of the many reasons why I started Transforms Pack, no-sense limitations and restrictions in avsresize. YUV 2020 can be converted to RGB 2020, it's even a standard conversion (CL and NCL).
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 23rd June 2021, 09:15   #167  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,904
Quote:
Originally Posted by StvG View Post
Check the last line from the first screenshot: pixel_type=rgb but destination matrix 2020 (yuv).
Daaaamn, this is why I shouldn't test things at 6.42 in the morning before having my breakfast...

Version 7 works like a charm now, thanks!
I'm rolling it on all my production server.
Now I've got a few MJPEG2000 12bit PQ masterfiles to encode in HLG eheheheh
FranceBB is offline   Reply With Quote
Old 29th June 2021, 09:28   #168  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 450
avsresize_r8 (pass: Zz299Qct9i4P): changed MT mode to MT_MULTI_INSTANCE.
StvG is offline   Reply With Quote
Old 29th June 2021, 10:31   #169  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
Thanks
kedautinh12 is offline   Reply With Quote
Old 30th June 2021, 14:05   #170  |  Link
Audionut
Registered User
 
Join Date: Nov 2003
Posts: 1,281
Hi, I'm seeing an issues with levels that begun in r7.

This is what the frames should look like.

And this is the output of ComparisonGen.avsi after updating to r7.

Still same issue in r8.
__________________
http://www.7-zip.org/

Last edited by Audionut; 1st July 2021 at 02:43. Reason: Problem fixed, thankyou
Audionut is offline   Reply With Quote
Old 30th June 2021, 18:01   #171  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 450
avsresize_r9 (pass: au7cG6ztmrW4): do not use the same color range for the destination when frame property available and source/destination color family is different;
- set the correct color range frame property value for destination YUV 32-bit.
StvG is offline   Reply With Quote
Old 1st July 2021, 03:05   #172  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
thanks
kedautinh12 is offline   Reply With Quote
Old 1st July 2021, 12:31   #173  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,904
Thanks for the update!
Time to test and then replace it in our production servers.
FranceBB is offline   Reply With Quote
Old 23rd July 2021, 12:18   #174  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,733
Out of interest, should the value for nominal_luminance be adjusted based on source metadata (=maximum content light level) in case of HDR?
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 24th July 2021, 02:31   #175  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 450
Quote:
Originally Posted by Boulder View Post
Out of interest, should the value for nominal_luminance be adjusted based on source metadata (=maximum content light level) in case of HDR?
Check the first two comments from this issue.
Ideally you want to set it to the frame peak luminance.
StvG is offline   Reply With Quote
Old 24th July 2021, 08:57   #176  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,733
Quote:
Originally Posted by StvG View Post
Check the first two comments from this issue.
Ideally you want to set it to the frame peak luminance.
Thanks, looks like it's not worth it and best just to leave it at the default if unknown. There probably is no tool to find the value by scanning the whole video.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 24th July 2021, 16:27   #177  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,361
@Boulder: runtime yplanemax maybe? Maybe do a first pass analysis.
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 26th July 2021, 20:00   #178  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,904
Quote:
Originally Posted by Boulder View Post
Thanks, looks like it's not worth it and best just to leave it at the default if unknown. There probably is no tool to find the value by scanning the whole video.
PQStat (written by William Swartzendruber, who is also a user of this forum) can do it for you: it's free, open source and written in Rust.
It will scan the whole video and report the right values in nits.
Please note, though, that if you're not scanning a lossless masterfile made of 12bit tiff but rather a consumer relatively low bitrate HEVC .ts file from a broadcasting channel or a consumer UHD-BD HEVC .m2ts file (which also has a low bitrate compared to the master), there are gonna be compression overshooting (i.e outliers) which might affect the overall detection.
(Just as a reference, a ProRes 4K mezzanine file, which is NOT lossless, has 1 Gbit/s as bitrate and it's still losing quality and potentially creating overshooting, so those ARE DEFINITELY GONNA HAPPEN in a "low bitrate" H.265 HEVC file...)

Last edited by FranceBB; 26th July 2021 at 20:02.
FranceBB is offline   Reply With Quote
Old 26th July 2021, 20:36   #179  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,733
Quote:
Originally Posted by FranceBB View Post
PQStat (written by William Swartzendruber, who is also a user of this forum) can do it for you: it's free, open source and written in Rust.
It will scan the whole video and report the right values in nits.
Please note, though, that if you're not scanning a lossless masterfile made of 12bit tiff but rather a consumer relatively low bitrate HEVC .ts file from a broadcasting channel or a consumer UHD-BD HEVC .m2ts file (which also has a low bitrate compared to the master), there are gonna be compression overshooting (i.e outliers) which might affect the overall detection.
(Just as a reference, a ProRes 4K mezzanine file, which is NOT lossless, has 1 Gbit/s as bitrate and it's still losing quality and potentially creating overshooting, so those ARE DEFINITELY GONNA HAPPEN in a "low bitrate" H.265 HEVC file...)
Thanks, I'll check that one out.

Wouldn't it actually be better to use the value, overshooting or not, since it's from the source that the decoder gets anyway?
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 27th July 2021, 10:31   #180  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,904
Quote:
Originally Posted by Boulder View Post
Wouldn't it actually be better to use the value, overshooting or not, since it's from the source that the decoder gets anyway?
Well no.
Simply put: whenever you have a file and it has a waveform and it has a certain set of values and you re-encode it with some kind of compression, those values might not be respected.
What happens is this kind of overshooting, but here's the thing: the overshoot is an outlier.
Simply put: let's suppose that you're looking for the peak brightness in nits in a PQ file and the official metadata say it's 2500 nits. You analyze the file and you find out it's actually 2842 nits. At this point, you set the conversion to respect that and everything looks dark, way darker than it should have been. Why? Easy: the 2842 pixel was indeed the peak, but it was an outlier, which means that although the average was like closer to the right value, every now and then there are few overshoots occurred due to the compression and those will be much higher than the real value. Of course, if you take into account a simple average, what you're gonna get is a skewed result as the outliers are gonna affect the final value of the average brightness, so what you need is to avoid to take those outliers into account, however it would be hard to write a logic around that 'cause you would have to decide how far away a pixel has to go to be considered an outlier, which can be tough. Luckily for us, the standard deviation comes in rescue:



which tells us how much a set of values is disperse/various.
Anyway, we're digressing.
The point is that if you do end up using PQStat or similar tools on compressed files, you're gonna have to take the results with a pinch of salt, so always remember to look at the waveform and to trust your eyes as well.

Last edited by FranceBB; 27th July 2021 at 10:33.
FranceBB 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 02:02.


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