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 30th March 2020, 22:14   #101  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,599
I asked here https://forum.doom9.org/showpost.php...1&postcount=69

Code:
z_ConvertFormat(colorspace_op="470bg:470bg:470bg:limited=>709:709:709:limited",dither_type="ordered")
give dark output, is this normal or it bug?
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 30th March 2020, 23:12   #102  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,591
Quote:
Originally Posted by real.finder View Post
I asked here https://forum.doom9.org/showpost.php...1&postcount=69

Code:
z_ConvertFormat(colorspace_op="470bg:470bg:470bg:limited=>709:709:709:limited",dither_type="ordered")
give dark output, is this normal or it bug?
Expected result

The original colormatrix() only changes the matrix, nothing else.

You are are telling avsresize to change matrix, transfer and primaries
poisondeathray is offline   Reply With Quote
Old 30th March 2020, 23:19   #103  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,599
Quote:
Originally Posted by poisondeathray View Post
Expected result

The original colormatrix() only changes the matrix, nothing else.

You are are telling avsresize to change matrix, transfer and primaries
so z_ConvertFormat should be better, right?

but it's not as fast as colormatrix, is it because colormatrix only change matrix?
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 30th March 2020, 23:26   #104  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,591
Quote:
Originally Posted by real.finder View Post
so z_ConvertFormat should be better, right?
"better" in what way?

For HD/SD , the standard of practice is actually to only change matrix . (Not for UHD). For matrix, 470bg and 170m have the same value (SD, 601) . 709 does not

Transfer function value is the same for 601/709 .

Primaries are slightly different between 601/709 .

The list is in the h265 document . Table E4.

But you check with other programs, resolve, premiere , dozens of others, only matrix is ever adjusted. The colors will be slightly shifted in media players, other programs, hardware, displays, AV equipment if you adjust for the primaries - even though it's technically more correct



Quote:
but it's not as fast as colormatrix, is it because colormatrix only change matrix?
I don't know why one is faster

Quality wise colormatrix can produce more pronounced banding artifacts under some conditions. It's more visible in cartoons and anime .

Last edited by poisondeathray; 30th March 2020 at 23:41.
poisondeathray is offline   Reply With Quote
Old 8th April 2020, 02:13   #105  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,599
Quote:
Originally Posted by poisondeathray View Post
"better" in what way?

For HD/SD , the standard of practice is actually to only change matrix . (Not for UHD). For matrix, 470bg and 170m have the same value (SD, 601) . 709 does not

Transfer function value is the same for 601/709 .

Primaries are slightly different between 601/709 .

The list is in the h265 document . Table E4.

But you check with other programs, resolve, premiere , dozens of others, only matrix is ever adjusted. The colors will be slightly shifted in media players, other programs, hardware, displays, AV equipment if you adjust for the primaries - even though it's technically more correct





I don't know why one is faster

Quality wise colormatrix can produce more pronounced banding artifacts under some conditions. It's more visible in cartoons and anime .
I mean better for HD <-> SD convert

also I know colormatrix can produce more pronounced banding artifacts since it 8bit

I did post another time there https://forum.doom9.org/showthread.p...76#post1905976

Code:
z_ConvertFormat(colorspace_op="470bg:601:170m:limited=>709:709:709:limited",dither_type="ordered")
seems fine but aside from matrix how one know for sure the color info in DVD? or if I cap from VHS

and aside from that, can we have update for avsresize? https://forum.doom9.org/showthread.p...49#post1906749

and since the documentation is kinda shortened, is avsresize has all Dither_resize16/fmtconv features like kernel inversion mode and additional Kernels?
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 8th April 2020, 02:46   #106  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,591
Quote:
Originally Posted by real.finder View Post
also I know colormatrix can produce more pronounced banding artifacts since it 8bit
It's not just an 8bit thing; there are some weird noise patterns enhanced by colormatrix on some anime. If you check by disable dithering and use 8bit with zimg, it's still more pronounced with colormatrix . Haven't seen the issue on live action content , it's probably hidden by natural noise and grain

Quote:
Code:
z_ConvertFormat(colorspace_op="470bg:601:170m:limited=>709:709:709:limited",dither_type="ordered")
seems fine but aside from matrix how one know for sure the color info in DVD? or if I cap from VHS

No way to know for sure.

If you assume the colors are correct on the DVD in the first place, you're asking the wrong question. You should be asking what method is your viewing hardware or software using to convert back to RGB for display ? ie. is it using something like ConvertToRGB24(matrix="rec709") ? Because that accounts for matrix only . If you adjust for primaries the colors will be shifted for the HD version when viewing on that hardware or software

I would only adjust matrix, unless you knew primaries were adjusted and the SD image is wrong in the first place

I would always use full=>full . I thought it was a no-op limited=>limited, but it makes a difference on the brightest
and darkest pixels if you look closely . Detectable with metrics too




Quote:

and aside from that, can we have update for avsresize? https://forum.doom9.org/showthread.p...49#post1906749
I would like update too, but I don't know how to compile it

Quote:
and since the documentation is kinda shortened, is avsresize has all Dither_resize16/fmtconv features like kernel inversion mode and additional Kernels?
No ; and available kernels are only the common ones and they are listed in the readme
poisondeathray is offline   Reply With Quote
Old 8th April 2020, 07:44   #107  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,349
zimg integration is on my roadmap but not in the very near future
pinterf is offline   Reply With Quote
Old 8th April 2020, 08:32   #108  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 508
Here update (zimg@5896a26). Added few things (cpu_type, nominal_luminance, approximate_gamma, alpha plane). Check readme for more info.
StvG is offline   Reply With Quote
Old 8th April 2020, 09:17   #109  |  Link
MeteorRain
結城有紀
 
Join Date: Dec 2003
Location: Oregon
Posts: 895
Quote:
Originally Posted by real.finder View Post
seems fine but aside from matrix how one know for sure the color info in DVD? or if I cap from VHS
Some DVD mastering company can't even resize the image correctly (like SAR and over scan stuff). Some staff probably don't even have the skills that we have. God knows how they converted the colors.
__________________
My Projects
x265 - Yuuki-Asuna-mod
TS - ADTS AAC Splitter | LATM AAC Splitter | BS4K-ASS
Neo AviSynth+ filters - F3KDB | FFT3D | DFTTest | MiniDeen | Temporal Median
MeteorRain is offline   Reply With Quote
Old 8th April 2020, 12:14   #110  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,349
Quote:
Originally Posted by StvG View Post
Here update (zimg@5896a26). Added few things (cpu_type, nominal_luminance, approximate_gamma, alpha plane). Check readme for more info.
Thanks. Do you have a github link (also for addgrain stuff), it's hard to follow the changes (and to give you the proper credits on a re-use).
pinterf is offline   Reply With Quote
Old 8th April 2020, 15:25   #111  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,591
Quote:
Originally Posted by StvG View Post
Here update (zimg@5896a26). Added few things (cpu_type, nominal_luminance, approximate_gamma, alpha plane). Check readme for more info.
thanks for the update
poisondeathray is offline   Reply With Quote
Old 8th April 2020, 17:06   #112  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,672
Quote:
Originally Posted by StvG View Post
Here update (zimg@5896a26). Added few things (cpu_type, nominal_luminance, approximate_gamma, alpha plane). Check readme for more info.
Thank you for the update StvG!

Not long ago I added documentation to the wiki: http://avisynth.nl/index.php/Avsresize

I'll will update the documentation with the things that were added.
I see that compatibility aliases "gauss", "lanczos4", "blackman", "sinc" were removed. And also z_BlackmanResize(), z_GaussResize(), z_SincResize() are gone. I know these essentially did nothing since they are just aliases, will they be gone forever?
Reel.Deel is offline   Reply With Quote
Old 8th April 2020, 17:32   #113  |  Link
Stereodude
Registered User
 
Join Date: Dec 2002
Location: Region 0
Posts: 1,436
Quote:
Originally Posted by Reel.Deel View Post
Thank you for the update StvG!

Not long ago I added documentation to the wiki: http://avisynth.nl/index.php/Avsresize

I'll will update the documentation with the things that were added.
I see that compatibility aliases "gauss", "lanczos4", "blackman", "sinc" were removed. And also z_BlackmanResize(), z_GaussResize(), z_SincResize() are gone. I know these essentially did nothing since they are just aliases, will they be gone forever?
It would be nice if you could list the terminology of all the allowed color formats in the wiki or if the plug-in aligned its accepted naming with Avisynth+'s terms. It will not accept some of the names used by AVIsynth+.

Like using RGBP8 gives you a bad pixel type error. It looks like it wants RGBP, not RGBP8.
Stereodude is offline   Reply With Quote
Old 8th April 2020, 21:45   #114  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 11,040
The affected ones look to all have entries in the Remarks column. [ RGBP vs RGBP8, on wiki:- http://avisynth.nl/index.php/Avisynthplus_color_formats ]
Oops, wrong link, FIXED.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 8th April 2020 at 22:16.
StainlessS is offline   Reply With Quote
Old 9th April 2020, 08:29   #115  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 508
Quote:
Originally Posted by pinterf View Post
Thanks. Do you have a github link (also for addgrain stuff), it's hard to follow the changes (and to give you the proper credits on a re-use).
Sorry, I don't have any github links.

Quote:
Originally Posted by Reel.Deel View Post
Thank you for the update StvG!

Not long ago I added documentation to the wiki: http://avisynth.nl/index.php/Avsresize

I'll will update the documentation with the things that were added.
I see that compatibility aliases "gauss", "lanczos4", "blackman", "sinc" were removed. And also z_BlackmanResize(), z_GaussResize(), z_SincResize() are gone. I know these essentially did nothing since they are just aliases, will they be gone forever?
IMO, yes, they are gone "forever" unless zimg adds support for them. For example I had a version compiled without spline64 too (spline64 was spline32 alias) but when zimg added spline64, I added back spline64.

Btw on the wiki page chromaloc_op "top_left" is missing.

Last edited by StvG; 9th April 2020 at 08:40.
StvG is offline   Reply With Quote
Old 9th April 2020, 10:22   #116  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 3,145
Quote:
Originally Posted by MeteorRain View Post
Some staff probably don't even have the skills that we have. God knows how they converted the colors.
You mean morons who don't know how to do these things?
They do it via hardware, mostly.
The reason? They have little to no clue about what they're doing as they're just operators that someone put there and they don't know how to code or use pseudo-scripting softwares like Avisynth, BUT they strictly follow a procedure that someone not too incompetent put in place several years ago back when there was no software at all.
It generally involves a play port (like the Omneon ones), a resizing hardware converter (Evertz and similar), a Softel/Cavena for subtitles and either a DVD itself or a Rec Port.
They generally put the colorbars, then the file, then black at the end, then they route the signal from the playback port to the converter and from the converter to the Softel or Cavena which "plays" the subtitles according to the timecode read from the SDI port and it places it in the inactive lines of the stream while playing and from there to either the DVD itself or to a Rec Port which records the file that is going to be mastered to the DVD.

Stone age at its best as it could be easily done in a fraction of the time with Avisynth or literally anything that isn't from decades ago, but I've seen it with my eyes and years ago I was one of the people who had to do it this way (i.e I was forced to do it this way) because of "sacred procedures"... -.-

Last edited by FranceBB; 9th April 2020 at 10:26.
FranceBB is offline   Reply With Quote
Old 9th April 2020, 15:47   #117  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,672
Quote:
Originally Posted by StvG View Post
IMO, yes, they are gone "forever" unless zimg adds support for them. For example I had a version compiled without spline64 too (spline64 was spline32 alias) but when zimg added spline64, I added back spline64.

Btw on the wiki page chromaloc_op "top_left" is missing.
I've updated the wiki to match these changes and added chromaloc_op "top_left"
Reel.Deel is offline   Reply With Quote
Old 22nd April 2020, 18:46   #118  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,672
Quote:
Originally Posted by Stereodude View Post
It would be nice if you could list the terminology of all the allowed color formats in the wiki or if the plug-in aligned its accepted naming with Avisynth+'s terms. It will not accept some of the names used by AVIsynth+.

Like using RGBP8 gives you a bad pixel type error. It looks like it wants RGBP, not RGBP8.
Done: http://avisynth.nl/index.php/Avsresize#z_ConvertFormat

-----

@StvG

Any thoughts on adding YUV420P8, YUVA420P8, YUV422P8, YUVA42AP8, YUV444P8, YUVA444P8, RGBP8, RGBAP8 aliases?
Reel.Deel is offline   Reply With Quote
Old 23rd April 2020, 21:45   #119  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 508
Here r1e:
- zimg@8815111;
- added pixel type RGBP8, RGBAP8, YUV444, YUV444P8, YUVA444P8, YUV422, YUV422P8, YUVA422P8, YUV420, YUV420P8 , YUVA420P8, YUV411, YUV411P8;
- added version.
StvG is offline   Reply With Quote
Old 27th April 2020, 08:11   #120  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,672
StvG

I updated the wiki accordingly.
Reel.Deel 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 11:24.


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