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
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 2nd February 2021, 17:01   #621  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,314
out16 is simply omitting a final conversion of the intermediate result back to 8 bits. This internal result is always of 16 bits precision for 8 bit sources. This is the same as lsb_out works but the result is not stacked but a real 16 bit clip.
pinterf is offline   Reply With Quote
Old 2nd February 2021, 17:09   #622  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,582
Please look here.
Quote:
Originally Posted by pinterf View Post
out16 is simply omitting a final conversion of the intermediate result back to 8 bits. This internal result is always of 16 bits precision for 8 bit sources. This is the same as lsb_out works but the result is not stacked but a real 16 bit clip.
So why there is so much difference between the results? 16 bit source should give the same result as out16 and 10/12 bit source should be a lot faster than out16 too.
__________________
@turment on Telegram

Last edited by tormento; 2nd February 2021 at 17:11.
tormento is offline   Reply With Quote
Old 2nd February 2021, 17:13   #623  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,314
SMDegrain <> MDegrain
pinterf is offline   Reply With Quote
Old 2nd February 2021, 17:15   #624  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,582
Quote:
Originally Posted by pinterf View Post
SMDegrain <> MDegrain
I understand. As I asked before, would it be possible to have 10 bit internal precision and output for 8 bit source too instead of 16 only?
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 2nd February 2021, 17:37   #625  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by tormento View Post
I understand. As I asked before, would it be possible to have 10 bit internal precision and output for 8 bit source too instead of 16 only?
start read from here https://forum.doom9.org/showthread.p...12#post1835712
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 3rd February 2021, 17:26   #626  |  Link
takla
Registered User
 
Join Date: May 2018
Posts: 184
Quote:
Originally Posted by tormento View Post
I understand. As I asked before, would it be possible to have 10 bit internal precision and output for 8 bit source too instead of 16 only?
Why not do the following with an 8 bit source:

Code:
ConvertBits(16)
MDegrain()
ConvertBits(bits=10, dither=1)
As explained here, 10 to 16 bit makes no difference in speed and so you should either convert to 16bit or don't use out16 / ConvertBits at all.

Last edited by takla; 3rd February 2021 at 17:29.
takla is offline   Reply With Quote
Old 26th March 2021, 14:08   #627  |  Link
joka
Registered User
 
Join Date: May 2010
Posts: 28
If I use MCompensate
s = c.MSuper(pel=2)
vb1 = s.MAnalyse(isb=false, delta=1, blksize=bs, overlap=ov)
cp1 = c.MCompensate(s, vb1)

and provide blksize and overlap I get (depending on the parameters) an unprocessed strip (with cp1 == c) on the bottom and the right border.
Further evaluation shows the same for MDeGrain (output of MDeGrain == c). With MDeGrain it is easier to compare/see. Height / width of strip depends on parameters.

Examples:
blksize/overlap
8/0 ok., nothing
8/4 ok., nothing
16/0 bottom
16/8 ok., nothing
32/0 bottom
32/8 bottom, right
32/16 bottom
64/0 bottom, right

Clip size is 1440x1080.
I use mvtools-2.7.43-with-depans20200602, AMD x64.

Do I something wrong? Is this a known issue? Exists a workaroud?
joka is offline   Reply With Quote
Old 26th March 2021, 15:57   #628  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Joka, try same with 2.2.7.44:- https://github.com/pinterf/mvtools/releases
Quote:
Change log
** 2.7.44 (20201214)**

MAnalyze: fix motion vector generation inconsistencies across multiple runs.
Note: when internal multithreading is used (avstp + mt=true), inconsistencies will still occur by design.
EDIT: Always a good idea to try latest version before reporting problem, if same then re-submit problem report.
__________________
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; 26th March 2021 at 16:08.
StainlessS is offline   Reply With Quote
Old 26th March 2021, 16:35   #629  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 2,314
MDegrain is simply copying 'uncovered' bottom and right regions. Uncovered means that these pixels are not covered by whole blocks of the given blocksize.
pinterf is offline   Reply With Quote
Old 27th March 2021, 15:03   #630  |  Link
joka
Registered User
 
Join Date: May 2010
Posts: 28
Good to know. I tested blksize/overlap - 24/12. This seems to solve it for clip size 1440/1080 and 1920/1080.
Thank you pinterf.
joka is offline   Reply With Quote
Old 6th May 2021, 00:13   #631  |  Link
zorr
Registered User
 
Join Date: Mar 2018
Posts: 447
The current documentation on MAnalyse states about overlap: "Must be even and less than block size (up to blksize/2 for MCompensate)".

However, when I try overlap > blksize/2 I get this error message "MAnalyse: overlap must be less or equal than half block size". I don't have MCompensate in the script. MVTools x64 version 2.7.44.

So is the documentation or the code wrong?

EDIT: Seems like MAnalyse also doesn't accept negative levels.

Last edited by zorr; 6th May 2021 at 00:20.
zorr is offline   Reply With Quote
Old 6th May 2021, 22:02   #632  |  Link
zorr
Registered User
 
Join Date: Mar 2018
Posts: 447
Quote:
Originally Posted by zorr View Post
The current documentation on MAnalyse states about overlap: "Must be even and less than block size (up to blksize/2 for MCompensate)".
I confirmed that this is just an error in the documentation (and it has been like that a long time). I do wonder though would it be possible to get rid of this limitation. It's usually the largest possible overlap that gives the best quality so it would be interesting to see if the trend (larger = better) would continue even with overlap > blksize/2.

Quote:
Originally Posted by zorr View Post
EDIT: Seems like MAnalyse also doesn't accept negative levels.
This was my own error, the levels parameter was just too negative and there weren't any levels left.
zorr is offline   Reply With Quote
Old 3rd June 2021, 10:36   #633  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,361
Would it make sense to implement a half pel option to increase speed for UHD clips or is it the same as increasing blksize and overlap?
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 3rd June 2021, 14:39   #634  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,733
Isn't half pel the same as pel=2?
__________________
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 3rd June 2021, 14:52   #635  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,361
I meant pel=0.5, double pel in mvtools terms
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 3rd June 2021, 15:05   #636  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
I meant pel=0.5, double pel in mvtools terms
Would that not have [a sort of] effect of lowering effective resolutuion of the result clip ?
[would seem to me that pel=1, and bigger blocksize, is the way to go]
__________________
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; 3rd June 2021 at 15:08.
StainlessS is offline   Reply With Quote
Old 3rd June 2021, 15:25   #637  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,361
I don't think so, many prefilters use gaussian type blurs for easier motion search, lowering the resolution is just the same but with less pixels (faster). Also many UHDs are upscaled conversions.

I don't know what others have to say, seems to me that pel=2 would also equal to pel=1 and smaller blocksize?
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Old 4th June 2021, 06:52   #638  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
it is equivalent to performing motion estimation on a downscaled version of the video, then you 2x upscale the motion vectors
feisty2 is offline   Reply With Quote
Old 4th June 2021, 12:49   #639  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
Originally Posted by feisty2 View Post
it is equivalent to performing motion estimation on a downscaled version of the video, then you 2x upscale the motion vectors
And, Would that not have [a sort of] effect of lowering effective resolution of the result clip ?

EDIT: Arh, the new avatar is a cat or something, hard to figure out what it is.
__________________
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; 4th June 2021 at 14:59.
StainlessS is offline   Reply With Quote
Old 4th June 2021, 13:44   #640  |  Link
Dogway
Registered User
 
Join Date: Nov 2009
Posts: 2,361
Quote:
Originally Posted by feisty2 View Post
it is equivalent to performing motion estimation on a downscaled version of the video, then you 2x upscale the motion vectors
Wow, thanks, already updated SMDegrain with the changes, didn't remember MScaleVect
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread
Dogway is offline   Reply With Quote
Reply


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 16:01.


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