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 12th July 2019, 00:27   #4801  |  Link
LouieChuckyMerry
Registered User
 
LouieChuckyMerry's Avatar
 
Join Date: Feb 2014
Posts: 311
Back for more. After receiving enough help here to upgrade from 32 bit AviSynth+ to 64 bit--thanks again for all the help --for my usual Blu-ray sources, I'm now trying to learn how to use 64 bit AviSynth+ for my DVD sources. I've found all the required 64 bit .dll's for my upscale scripts except ColorMatrix (to convert from Rec.601 to Rec.709). After much searching and reading, it seems that I can simply replace the 32 bit line:

Code:
ColorMatrix(Mode="Rec.601->Rec.709")
with:

Code:
ConvertTo(Proper Symbols Here)
in 64 bit AviSynth+, but I can't figure out just what the proper symbols are. In case it matters, my script is something like:

Code:
DGSource Here
### Deinterlace ###
TFM(Mode=7,UBSCO=False)
### Color Conversion ###
ColorMatrix(Mode="Rec.601->Rec.709")
### Adjust Color ###
MergeChroma(aWarpSharp2(Depth=16))
### Crop ###
Crop(8,1,-8,0)
### Gibbs Noise Block ###
Edge=MT_Edge("prewitt",ThY1=20,ThY2=40).RemoveGrain(17)
Mask=MT_Logic(Edge.MT_Expand().MT_Expand().MT_Expand().MT_Expand(),Edge.MT_Inflate().MT_Inpand(),"xor").Blur(1.0)
MT_Merge(Minblur(),Mask,Luma=True)
### Overall Temporal Denoise ###
SMDegrain(TR=3,ThSAD=200,ContraSharp=True,RefineMotion=True,Plane=0,PreFilter=2,Chroma=False,n16=True,n16_Out=True)
### Resize ###
EDI_RPow2(CShift="Spline64",FWidth=960,FHeight=720)
aWarpSharp4xx(Depth=5)
### Darken-Thin Lines ###
FastLineDarkenMod4(Strength=24,Prot=6)
aWarpSharp4xx(Blur=4,Type=1,Depth=8,Chroma=2)
### Deband ###
F3KDB(Y=100,Cb=100,Cr=100,GrainY=0,GrainC=0)
As always, thanks for any help.

Edit: Happy Saturday! After banging my (obviously thick) head against the wall for a while longer I realized that MeGUI has a copy of ColorMatrix.dll in its AviSynth_Plugins folder, so I borrowed a copy from the 64 bit version and all is well. I'd still be curious if "ConvertTo(Something)" would do the same job...

Last edited by LouieChuckyMerry; 13th July 2019 at 20:54. Reason: Answered
LouieChuckyMerry is offline   Reply With Quote
Old 14th July 2019, 20:01   #4802  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 1,165
bug in expr? in float(32)

mt_lut( "x range_half - 0.1 * range_half +", scale_inputs="floatf", U=3,V=3 )

not same as

expr( "x range_half - 0.1 * range_half +" ,scale_inputs="floatf")

without scale_inputs="floatf" they are same
__________________
My Avisynth Stuff

Last edited by real.finder; 14th July 2019 at 20:12.
real.finder is offline   Reply With Quote
Old 16th July 2019, 10:02   #4803  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 1,220
Quote:
Originally Posted by real.finder View Post
bug in expr? in float(32)

mt_lut( "x range_half - 0.1 * range_half +", scale_inputs="floatf", U=3,V=3 )

not same as

expr( "x range_half - 0.1 * range_half +" ,scale_inputs="floatf")

without scale_inputs="floatf" they are same
Do you know which one is correct?
pinterf is offline   Reply With Quote
Old 16th July 2019, 15:19   #4804  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 1,165
Quote:
Originally Posted by pinterf View Post
Do you know which one is correct?
the mt_lut one is correct
__________________
My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 16th July 2019, 15:29   #4805  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 1,220
Quote:
Originally Posted by real.finder View Post
the mt_lut one is correct
O.k. thanks, I check them both and found no problem for a quick five-minute investigation, so I need more time.
pinterf is offline   Reply With Quote
Old Yesterday, 08:08   #4806  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 1,220
Quote:
Originally Posted by real.finder View Post
the mt_lut one is correct
This issue was fixed, it's on git already, I'll make a build next week.
pinterf is offline   Reply With Quote
Old Yesterday, 09:12   #4807  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 1,165
Quote:
Originally Posted by pinterf View Post
This issue was fixed, it's on git already, I'll make a build next week.
thank you
__________________
My Avisynth Stuff
real.finder is offline   Reply With Quote
Old Yesterday, 21:38   #4808  |  Link
djonline
Registered User
 
Join Date: Mar 2011
Posts: 38
Quote:
Trim not work after Import, only after DirectShowSource.

DirectShowSource("avisynth-stage1-with-MTS.avs") still not work with LAV splitter 0.71
Quote:
Originally Posted by LigH View Post
Then write the Trim in a separate line, not after a dot.

If the imported script returns a clip, then it should be passed to the usual internal variable "last", which is then implicitly assumed where no explicit clip variable was written.

If it does not return any clip, then it can't be used as video source anyway.
Still not work with Deshaker, video is shaked when using Import

"00425.MTS-pass2.avs"
vid="00425.MTS"
o=DirectShowSource(vid)
o+o.Trim(0,29)
ConvertToRGB32
LoadVirtualDubPlugin ("c:\Program Files\Vdub\vdub64\plugins64\Deshaker_64.vdf", "deshaker",0) deshaker ("19|2|30|4|1|0|1|0|640|480|1|2|1000|1000|2000|2000|4|0|6|2|8|30|300|3|f:\\00425.MTS.1.1000.1000.2000.2000.log|0|0|0|0|0|0|0|0|0|0|0|0|0|1|70|70|10|30|1|1|30|30|0|0|0|0|1|0|1|10|1000|1|88|1|1|20|30000|100|20|1")

00425.MTS-loader.avs
#DirectShowSource("00425.MTS-pass2.avs").Trim(30,0)
Import("00425.MTS-pass2.avs")
Trim(30,0) #video is shaked with this
djonline is offline   Reply With Quote
Old Yesterday, 21:51   #4809  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 6,844
Code:
# "00425.MTS-pass2.avs"
vid="00425.MTS"
o=DirectShowSource(vid)
# o+o.Trim(0,29)  # Join o.trim(0,29) to END OF o
o.Trim(0,29) # presume this is required
ConvertToRGB32
LoadVirtualDubPlugin ("c:\Program Files\Vdub\vdub64\plugins64\Deshaker_64.vdf", "deshaker",0)
deshaker ("19|2|30|4|1|0|1|0|640|480|1|2|1000|1000|2000|2000|4|0|6|2|8|30|300|3|f:\\00425.MTS.1.1000.1000.2000.2000.log"
 \ + "|0|0|0|0|0|0|0|0|0|0|0|0|0|1|70|70|10|30|1|1|30|30|0|0|0|0|1|0|1|10|1000|1|88|1|1|20|30000|100|20|1")
__________________
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; Yesterday at 22:13.
StainlessS 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 05:35.


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