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 19th September 2021, 14:26   #1521  |  Link
Frank62
Registered User
 
Join Date: Mar 2017
Location: Germany
Posts: 234
Quote:
Originally Posted by Katie Boundary View Post
...the two fields be from slightly different images.
That exactly is how "motion" in connection with video is "defined", at least used: The two fields contain different images. Shot at a slightly different time. So what happened from the first to the second point in time is "motion" of some or all objects in the pictures.
If you can't accept this, w_m seems to be right with his last sentence. A question of terminology.
Frank62 is offline   Reply With Quote
Old 19th September 2021, 18:06   #1522  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
Shot at a slightly different time.
So progressive is temporally from the same position in time [excluding time taken for left to right, top to bottom, raster scan],
and interlaced fields are from temporally and also spatially different positions in time and space.
Katie should really teach herself to code, then she could better acquaint herself with the problem, that would be an education.
Miss Boundary is real exasperating, I bet its hell in their hourse deciding whats for supper.
__________________
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; 19th September 2021 at 18:29.
StainlessS is offline   Reply With Quote
Old 20th September 2021, 09:35   #1523  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,902
Quote:
Originally Posted by StainlessS View Post
Katie should really teach herself to code, then she could better acquaint herself with the problem, that would be an education.
Hear hear.
(Ok, I might have been watching the house of commons channel too much xD)

Jokes aside, she would grasp some of those things much much better if she was able to read and write code herself 'cause this way she would be able to actually test her ideas while right now she can only "trust" us with what we're telling her.

Quote:
Originally Posted by StainlessS View Post
I bet its hell in their house deciding whats for supper.
ROTFL
Think about the chat with her husband, like:

Honey, how did your day go?

- Fine, I went to work, it was a normal day, I got stuck in traffic a bit on my way back home, but anyway... What about you?

Terrible, I came up with a revolutionary idea about duplicates detection, but everyone on Doom9 is saying it can't be used as it's not that simple...

Last edited by FranceBB; 20th September 2021 at 09:38.
FranceBB is offline   Reply With Quote
Old 22nd September 2021, 03:20   #1524  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 1,056
Quote:
Originally Posted by Frank62 View Post
That exactly is how "motion" in connection with video is "defined", at least used:
No. Motion means that a thing used to be in one place in space, and now it's in another.

Quote:
Originally Posted by FranceBB View Post
Think about the chat with her husband,
I'm not likely to ever have a husband, given that I'm only attracted to women.
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.
Katie Boundary is offline   Reply With Quote
Old 22nd September 2021, 13:30   #1525  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,902
Quote:
Originally Posted by Katie Boundary View Post
Motion means that a thing used to be in one place in space, and now it's in another.
Let's just stick with "difference" and we're good XD
No, jokes aside, we understand what you're saying, honestly, we do, but on the other hand it's just not as easy to detect differences (motion in your case) through an algorithm, but hey, if in the future someone will try to improve TDecimate and co. further he's gonna be more than welcome, but right now, if it doesn't fulfill your / our needs with any of the modes available, I guess we're just gonna have to live with it... :')

Quote:
Originally Posted by Katie Boundary View Post
I'm not likely to ever have a husband, given that I'm only attracted to women.
Ah! Of course! Sorry, my fault, everything makes sense now eheheh.

(I'm joking of course )

Ok, I should really get back to work now, I shouldn't check stuff on Doom9 while I'm at work, but I'm... like... addicted to this forum as I end up here most of the time anyway since I use Avisynth at work on a daily basis. :P

Last edited by FranceBB; 22nd September 2021 at 13:32.
FranceBB is offline   Reply With Quote
Old 23rd September 2021, 00:14   #1526  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 1,056
Quote:
Originally Posted by FranceBB View Post
Let's just stick with "difference" and we're good XD
No, jokes aside, we understand what you're saying, honestly, we do, but on the other hand it's just not as easy to detect differences (motion in your case) through an algorithm,
It totally is. There's an unlimited number of algorithms that you can make based on the guidelines that I posted, but pretty much any algorithm based on those guidelines will be better than the options present in TFM.


Example algorithm 1:

Find average of A and E.
Find average of B and D.
If C is closer to the average of A and E than to the average of B and D, then treat C as interlaced.

Example algorithm 2:

m1 = |A-B|
m2 = |B-C|
m3 = |C-D|
m4 = |D-E|
n1 = |A-C|
n2 = |B-D|
n3 = |C-E|
If m1, m2, m3, and m4 are all bigger than n1, n2, and n3, then treat C as interlaced.
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.

Last edited by Katie Boundary; 23rd September 2021 at 00:25.
Katie Boundary is offline   Reply With Quote
Old 23rd September 2021, 11:43   #1527  |  Link
Frank62
Registered User
 
Join Date: Mar 2017
Location: Germany
Posts: 234
Quote:
Originally Posted by Katie Boundary View Post
No. Motion means that a thing used to be in one place in space, and now it's in another.
That's correct. But I wrote: "In connection with video", where your explanation/definition never happens. We are talking of pixels, bits, information, representations of pictures, not of "things".
Frank62 is offline   Reply With Quote
Old 24th September 2021, 19:53   #1528  |  Link
SaurusX
Registered User
 
Join Date: Feb 2017
Posts: 135
Anyone ever run into this problem with TFM? The field matching fails to use the correct field combination and you end up with chunky aliased edges, particularly apparent in animation lines. It never happens if the source is completely stable, but if there's gate weave from a film source then hold on to your hat. You have to manually override with the correct field combo.

https://imgsli.com/NzA0MjU

This is a small-fry example. On occasion the entire frame will be huge chunky (but not combed) scanlines.
SaurusX is offline   Reply With Quote
Old 25th September 2021, 03:37   #1529  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 989
Quote:
Originally Posted by SaurusX View Post
This is a small-fry example.
Share a short snippet of original video and your script.
VoodooFX is offline   Reply With Quote
Old 25th September 2021, 18:38   #1530  |  Link
SaurusX
Registered User
 
Join Date: Feb 2017
Posts: 135
Quote:
Originally Posted by VoodooFX View Post
Share a short snippet of original video and your script.
Check out frame 32 and 33 in this clip using the following script.

Code:
MPEG2SOURCE("E:\Media\Video Editing Tools\MeGUI-2913-64\scripts\SwatKats\Tests\SwatKats Example.d2v")
TFM(slow=2,pp=4,mode=4)
TDecimate(mode=1)
https://mega.nz/file/qjpgXRqK#kS4NW-...OPjYM7B-Y-mYmE
SaurusX is offline   Reply With Quote
Old 25th September 2021, 20:56   #1531  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 989
Quote:
Originally Posted by SaurusX View Post
Anyone ever run into this problem with TFM?
Many times, especially on animations like this.

Instead of TFM try this line (check if it fixes more than it destroys):
QTGMC(Preset="Slower").SelectOdd.TDecimate(mode=1).QTGMC( Preset="Medium", InputType=1, Sharpness=0.2)
VoodooFX is offline   Reply With Quote
Old 26th September 2021, 08:35   #1532  |  Link
Katie Boundary
Registered User
 
Katie Boundary's Avatar
 
Join Date: Jan 2015
Posts: 1,056
Quote:
Originally Posted by Frank62 View Post
I wrote: "In connection with video", where your explanation/definition never happens.
LOL, are you high? It happens all the time in video. It's the primary cause of differences between frames.
__________________
I ask unusual questions but always give proper thanks to those who give correct and useful answers.
Katie Boundary is offline   Reply With Quote
Old 27th September 2021, 08:57   #1533  |  Link
Frank62
Registered User
 
Join Date: Mar 2017
Location: Germany
Posts: 234
Senseless.
Frank62 is offline   Reply With Quote
Old 9th October 2021, 01:25   #1534  |  Link
markfilipak
Registered User
 
markfilipak's Avatar
 
Join Date: Jul 2016
Location: Mansfield, Ohio (formerly San Jose, California)
Posts: 280
Katie Boundary! Hahaha... The joke's on you, folks. I visualize a T.Rex eating a guy who's sitting on a toilet as a comet streaks across the sky.

Edit: Oh, I see "Miss Boundary" has a T.Rex as an avatar -- that, after enlarging it to see it well. Well, "Miss Boundary", you need a better looking/better defined avatar. People are missing the joke.

Last edited by markfilipak; 9th October 2021 at 01:42.
markfilipak is offline   Reply With Quote
Old 9th October 2021, 14:22   #1535  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
I think you are the only guy that missed it.
videoh is offline   Reply With Quote
Old 9th October 2021, 17:32   #1536  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 989
Quote:
Originally Posted by Katie Boundary View Post
Unless it's around a scene change. Or it's a fade. Or there's literally any other change in the image that isn't caused by motion (someone turns a light on, for example).
But photons are moving from a bulb to a camera's lens...
A scene change and a fade... thermodynamics would tell that there is no motion, but quantum mechanics would disagree, I think. Anyway, a film editor moved his hand to make those effects, so literally they are caused by motion too.
VoodooFX is offline   Reply With Quote
Old 9th October 2021, 20:32   #1537  |  Link
markfilipak
Registered User
 
markfilipak's Avatar
 
Join Date: Jul 2016
Location: Mansfield, Ohio (formerly San Jose, California)
Posts: 280
Quote:
Originally Posted by videoh View Post
I think you are the only guy that missed it.
I missed it? Hahaha... Missed what? I laughed my ass off. This whole thread segment with "Miss Boundary" is the silliest thing I've read in a long time. Thanks for the laughs.
markfilipak is offline   Reply With Quote
Old 10th October 2021, 13:46   #1538  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,780
Well, unfortunately it distracts from the topic. Much of the "discussion of basics of interlacing" deserves a separate thread. And a lot less personal insults. After all the time and number of involved people, it is now a bit hard to separate.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 16th September 2022, 00:55   #1539  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
Latest ver:
https://github.com/pinterf/TIVTC/releases
kedautinh12 is offline   Reply With Quote
Old 16th September 2022, 20:21   #1540  |  Link
Blankmedia
Registered User
 
Join Date: Oct 2011
Location: Dans le nord
Posts: 65
From time to time I get this error with requestlinear:

"avs+ [FLAW]: RequestLinear: internal error (frame not cached)! occurred while reading frame 0"

And this is while running the same script, like I stopped the encode for whatever reason, start it back, get the error, flush intermediate files, get the error, reboot, get the error, type this message, no more error and encode is proceding (??).

Maybe I have trouble settings the parameters, so is there bigger documentation somewhere with requestlinear.

I run it because apparently there's a random bug in mvtools where it shoots a random frames from time to time.

This is the line I use :

RequestLinear(rlim=60, clim=100, elim=40)

it seem more stable than what I used before

RequestLinear(rlim=50, clim=100, elim=25)

Edit:

I run the script through x265 patman.

And even in avsmeter it started to fail. Avsmeter doesn't say anything, it just close quickly.

Edit 2:
it is not more stable.

I don't get it.

PHP Code:
ClearAutoloadDirs()
#~ AddAutoloadDir("D:\A encoder\avs_simpsons_plugin")
AddAutoloadDir("D:\A encoder\simps_s02_60FPSv3\simps_s02_60FPSv3_plugin")
AddAutoloadDir("D:\A encoder\simps_s02_60FPSv3\simps_s02_60FPSv3_plugin\SMDegrain v3.5.3d")
SetMemoryMax(8192*3)
SetCacheMode(0)

chemin "D:\A encoder\simpsons s02_enc\Simpsons_S02E01.d2v"

d2vsource(cheminidct=5)


RequestLinear(rlim=50clim=100elim=25)
# RequestLinear(rlim=60, clim=100, elim=40)

RoboCrop(LeftAdd=2TopAdd=0RightAdd=0BotAdd=0)
Convertbits(16)
QTGMCpPreset="Very Slow"SourceMatch=3Lossless=2Tr2=3Nnsize=3NNeurons=3EdiMode="BWDIF+NNEDI3").Selecteven()
TDecimate(Mode=1)

### Color Conversion ###
fmtc_bitdepth(bits=32fulls=Falsefulld=True)
fmtc_resample (css="444")
fmtc_matrix (mats="601"col_fam="RGB")
fmtc_transfer (transs="1886"transd="linear")
#~ fmtc_primaries (prims="470bg", primd="709")
fmtc_primaries (prims="601-525"primd="709")
fmtc_transfer (transs="linear"transd="1886")
fmtc_matrix (mat="709"col_fam="YUV")
fmtc_resample (css="420")
fmtc_bitdepth(bits=16dmode=1fulls=Truefulld=False)

### Adjust Color ###
MergeChroma(aWarpSharp2(Depth=14))


### Gibbs Noise Block ###
a=last
ex_boxblur
(0,1,mode="mean")
turnright()
ex_median("verticalS")
turnleft()
ex_median("IQM")

# Valley Mask
edge=FlatMask(1scale=10).removegrain(2)
Mask=ex_makediff(Edge.MT_Inflate().ex_Expand(4).ex_gaussianblur(6,UV=1),Edge.MT_Inflate(),dif=false).Blur(1.0#.ex_gaussianblur(6,UV=2)

a.MT_Merge(a.ex_median("EMF").ex_median("EMF").ex_Minblur(1).ex_median("STWM"),Mask,Luma=True)

# ex_adddiff(mask.converttoyuv420(), dif=False)


### Derainbow ###

masklisse ex_median("IQM").blur(0.25).Removegrain(17).Flatmask(lo=4,MSR=80,scale=8).ex_inflate(2).Removegrain(7).Removegrain(17)    #.maa2().ex_median("STWM") #.ex_expand(1,"disk").ex_inpand(1,"disk")#.mt_binarize(threshold=25).ex_smooth(2,sharp=true)
masklisse masklisse.ex_Expand(2"disk").ex_median("STWM")
MT_Merge(last ChubbyRain3().DFMDeRainbow(maskthresh=10mc=Falseuse_Flux5framesT=False).ex_median("STWM"),masklisse,Luma=True)
#~ return ex_adddiff(masklisse.converttoyuv420(), dif=False)

### Overall Temporal Denoise ###
ConvertBits(bits=8)
#~ TemporalDegrain2(degrainTR=3, grainLevel=2, postFFT=5, postSigma=0.75, fftthreads=8,degrainPlane=0)
TemporalDegrain2(degrainTR=4grainLevel=3postFFT=5postSigma=0.75fftthreads=8,degrainPlane=0)
ConvertBits(bits=16)

### Resize ###
Crop(2,2,-2,-2)
deep_resize(960720,flat="nnedi3",grain=0,qual=1)

aWarpSharp2(type=1,Depth=4)
Sharpen(0.2)

### Darken-Thin Lines ###

#~ F=last
#~ S=F.FastLineDarkenMod(Strength=24,Prot=6).aWarpSharp2(Blur=4,Type=1,Depth=9,Chroma=2)
#~ D=ex_MakeDiff(S,F)
#~ ex_adddiff(Last,D,Dif=True,UV=2)

F=last
S
=F.FastLineDarkenMod4(Strength=72,Prot=36,thinning=36).halobuster(thr=2elast=2).aWarpSharp2(Blur=4,Type=1,Depth=4,Chroma=1)
D=ex_MakeDiff(S,F,UV=1)
ex_adddiff(Last,D,Dif=True,UV=2)

# F=last
# S=F.FastLineDarkenMod4(Strength=72,Prot=36,thinning=36).halobuster(thr=2, elast=2).aWarpSharp2(Blur=4,Type=1,Depth=4,Chroma=1).DRK(10)
# D=ex_MakeDiff(S,F,UV=1)
# ex_adddiff(Last,D,Dif=True,UV=2)

### Resize ###
deep_resize(14401080,flat="nnedi3",grain=0,qual=1)

# aWarpSharp2(Blur=16,Type=1,Depth=3,Chroma=4)

# LSFplus(preset="slow", strength=50, smode=5, edgemode=0, preblur="""ex_median("IQM")""")
LSFplus(preset="slow"strength=150smode=5edgemode=0preblur="""ex_median("IQM")""")

### Deband ###
# GradFun3plus(ThR=0.45,SMode=2) # 0.45 ep 1 à 6
# Merge(GrainFactory3mod(),0.225) # 0.225 ep 1 à 6

GradFun3plus(ThR=0.55,SMode=2# 0.45 ep 1 à 6
Merge(GrainFactory3mod(),0.3# 0.225 ep 1 à 6



# trim(9000,12000)
# trim(9000,9200)
trim(9000,10000)
# Prefetch(12,8) # 1.491
# Prefetch(4,8) # 1.096
# Prefetch(8,8) # 1.254
# Prefetch(12,12) # 1.557
Prefetch(2,8
Edit 3:

I have now split the code in 2 pass, just after the Gibbs noise block.

I can run 5 encode simultaneously without problems. At least in some tests. I will let it run over night to see what happens.

Yesterday I ran 3 encode at same time in one script and I had no problem. ¯\_(ツ)_/¯

I someone have input as to why it could happen I'm open.

Also I know the script seems intense, and it is. I'm open about it. But they get pretty clean. At least cleaner than Disney+

Last edited by Blankmedia; 17th September 2022 at 04:25.
Blankmedia is offline   Reply With Quote
Reply

Tags
tdeint, tivtc

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


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