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 Usage

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 27th March 2011, 18:49   #521  |  Link
Robert Martens
Registered User
 
Join Date: Feb 2010
Location: New York
Posts: 116
Beautiful, thanks for the rundown! I'll update myself accordingly.
Robert Martens is offline  
Old 27th March 2011, 19:07   #522  |  Link
-Vit-
Registered User
 
Join Date: Jul 2010
Posts: 448
The plugins package in the OP now adheres to the terms of the GNU GPL v2. Please advise of any issues with respect to that.
-Vit- is offline  
Old 28th March 2011, 17:33   #523  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
"written offer" 2b) clause ?
-Vit-, do you really want to send CD with source codes?
Why not upload the (separate) full source code package?
http://www.gnu.org/licenses/old-lice...ngedJustBinary

and please do not forget GPL inself (with binaries too).
http://www.gnu.org/licenses/old-lice...hyMustIInclude
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick
I usually do not provide a technical support in private messages.
Fizick is offline  
Old 28th March 2011, 18:55   #524  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,718
Is using "noiseprocess=0", "tr2=0" and "smode=0" the way to minimize both the denoising and sharpening effect of QTGMC? I'm looking to output high quality smart bobbed video and then do the denoising and sharpening using different tools on the result.
__________________
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  
Old 28th March 2011, 19:47   #525  |  Link
-Vit-
Registered User
 
Join Date: Jul 2010
Posts: 448
Fizick: The final paragraph of clause 3 clearly sets out that there only needs to be equivalency of distribution channel between binary and source. So whilst a product distributed physically would require a physical source distribution, in this case I only need an offer of equivalent access, i.e. internet distribution. [The v3 FAQ alludes to this distinction for v2 - note the reference to distribution on physical media]. Furthermore, as long as the OP has a link to the source code that is valid and synchronized then I am offering access to the dll and source from the same place, which essentially meets the stipulations of clause 3 anyway. The text in the zip is just for good measure. I have added the GPL text to the zip.

Boulder: I do this all the time. You want SourceMatch and EZKeepGrain for that. Something like this is near transparent. It will be slow:
Code:
QTGMC( "Slow", SourceMatch=2, Lossless=2, EZKeepGrain=0.4, Sharpness=0.1 )

Last edited by -Vit-; 28th March 2011 at 22:26.
-Vit- is offline  
Old 28th March 2011, 19:57   #526  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,718
Thanks, I will try those settings out
__________________
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  
Old 28th March 2011, 23:39   #527  |  Link
hydra3333
Registered User
 
Join Date: Oct 2009
Location: crow-land
Posts: 540
Using MT 2.5.7 and x264.exe crashes randomly with this script (a tad disconcerting 6 hours into an encode)...
Code:
SetMTmode(mode=5,threads=4) # start with mode=5 forAVIsource http://forum.doom9.org/showthread.ph...16#post1067216 
SetMemoryMax(384) 
LoadPlugin("C:\SOFTWARE\DGindex\DGDecodeNV.dll")  
LoadPlugin("C:\SOFTWARE\DGindex\DGDecode.dll") 
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\Yadifmod.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\DePan.dll") 
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\AGC.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\Cnr2.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\dctfilter.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\fft3dfilter.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\degrainmedian.dll") 
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\Convolution3d.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\despot.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\WarpSharp.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\aWarpSharp.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\mt_masktools-25-broke-backward-compatibility.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\mvtools2.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\Unfilter.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\AddgrainC.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\hqdn3d.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\Colormatrix.dll") 
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\NNEDI2.dll") 
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\NNEDI3.dll") 
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\EEDI2.dll") 
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\EEDI3.dll") 
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\VerticalCleanerSSE3.dll") 
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\dfttest.dll") 
# ------------------------------------------------------------------------------------- 
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\VariableBlur.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\FFTQuiver.dll")  
# ------------------------------------------------------------------------------------- 
#LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\RemoveGrain.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\RemoveGrainSSE2.dll")  
#LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\Repair.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\RepairSSE2.dll")  
#LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\RemoveDirt.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\RemoveDirtSSE2.dll")  
Import("C:\Program Files (x86)\AviSynth 2.5\LimitedSharpenFaster.avs") 
Import("C:\Program Files (x86)\AviSynth 2.5\Deblock_QED_MT2.avs") 
Import("C:\Program Files (x86)\AviSynth 2.5\QTGMC-3.31.avsi") 
MPEG2Source("G:\HDTV\the-file.d2v",info=0,ipp=true,cpu=4) 
AssumeTFF() 
Assumefps(25) 
changefps(last,last,true) # http://forum.doom9.org/showthread.ph...45#post1473445 
SetMTmode(mode=2,threads=4) 
QTGMC(Preset="Fast",EdiThreads=2,Sharpness=1.2,SLMode=1) # result is double framerate progressive, so re-interlace it later 
Lanczos4resize(720,576) 
# Re-Interlace and halve framerate 
AssumeTFF() #choose the SAME field order like before deinterlacing 
SeparateFields().SelectEvery(4,0,3).Weave() #reinterlace. 
# 
ColorMatrix(interlaced=true,mode="Rec.709->Rec.601") 
AssumeTFF() #choose the SAME field order like before deinterlacing 
AssumeFPS(25) 
SetPlanarLegacyAlignment(True) 
Distributor()
Remove the MT components and it works fine.
Suggestions appreciated.
hydra3333 is offline  
Old 28th March 2011, 23:58   #528  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by hydra3333 View Post
Remove the MT components and it works fine.
Suggestions appreciated.
Looks like you have the solution right there.
only half-joking
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline  
Old 29th March 2011, 00:18   #529  |  Link
-Vit-
Registered User
 
Join Date: Jul 2010
Posts: 448
I could never get stability from 2.57MT. I have only heard a couple of reports from those who could. Try one of SEt's builds, 2.58MT or 2.6MT.
-Vit- is offline  
Old 29th March 2011, 03:32   #530  |  Link
hydra3333
Registered User
 
Join Date: Oct 2009
Location: crow-land
Posts: 540
OK ... now I'm off to locate and research "SEt's builds, 2.58MT or 2.6MT" (for known bugs, limitations) ... I recall looking at them some months ago and thought they appeared too fragile then; hope things have improved.

edit: Seems to me like "choose your poison" as all versions crash ...

Not so good for 2.5.8 MT -
Quote:
Originally Posted by Didée View Post
a) Where TGMC + SetMTmode(2,4~6) would crash occasionally in Avisynth 2.5.8.5.MT, it seems rock stable in Avisynth 2.6 (SEt's 09-19 build).
b) in Avisynth 2.5.8.5.MT, QTGMC + SetMTmode(2,4~6) crashes more often for me than TGMC does. Can't tell why, it just is like that.
Not so good for 2.6 MT either -
Quote:
Originally Posted by Fullmetal Encoder View Post
Well, I can now happily report that I have completely resolved my bizarre KERNELBASE and unknown exception crashes with Avisynth 2.6. It occurred to me to go back and check to make sure that there weren't any memory access issues since this is 32-bit softwares. I found Avisynth crashing with these errors after running up to 1.6GB of RAM used. At first I didn't get it because previously I had tested my script with SetMemoryMax and had gotten the same errors. But I thought I'd test again with a very low limit at 1.2GB and when I did it worked flawlessly, zero crashes. I tested different values and got it up as far as 1500MB without crashing. I took a look at the script with which I had previously tested SetMemoryMax (I kept a record of all the scripts I had been testing) and found that the lowest I had gone in setting the memory limit was 1600MB.
Quote:
Originally Posted by yup View Post
I find that YToUV() with YUY2 do not work for Set 2.6 build. VirtualDub try show half horizontal size frame and crash. This reason why do not work nnedi3_rpow2().
Quote:
Originally Posted by Emulgator View Post
SEt's avisynth.dll 32 MT Build 2.6.0 2009 09 19 in sysWOW64 on a Win7U64.
CPU i7920XM, 8GB RAM, SetMemoryMax=1536
...
Renders 50 frames in VirtualDub 1.9.10, then raises unknown exception.
No matter if script uses SetMTMode or not. Lowering SetMemoryMax to 768 did not help.
...
The same script on same engine, same system
with straight avisynth.dll 2.5.8.5 non-MT in sysWOW64 :
Both MemoryMax values run properly.
VirtualDub uses ~600MB.

Last edited by hydra3333; 29th March 2011 at 03:55.
hydra3333 is offline  
Old 29th March 2011, 08:28   #531  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,308
@hydra3333

Just out of curiosity, have you tried the 2.5.8MT you can find here ?
I'm interested on what could the results be. These versions are updated regularly, so, maybe they could have fixes and could be more stable.
jpsdr is offline  
Old 29th March 2011, 08:50   #532  |  Link
-Vit-
Registered User
 
Join Date: Jul 2010
Posts: 448
That all versions of Avisynth crash is a given, the Avisynth multithreading code is buggy and could do with a rewrite. However, SEt did fix some bugs in his version, which makes them slightly less prone. However, each system is different in which version suits best. You cannot search for the answer to this dilemma, you must practically try each version and see which works best for you.

There are no code fixes in xhmikosr's builds, in fact I see no code changes over SEt's 2.58MT. The fact that it's a clean VS2010 build might help a little, so worth a try.
-Vit- is offline  
Old 29th March 2011, 09:42   #533  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,718
It looks like Avisynth 2.6 with MT support is not going to be here anytime soon.. IanB has said that he's not going to go the SetMTMode way so that means that MT code will basically have to be written from scratch. And as Avisynth 2.6.0 hasn't seen an official alpha release in over a year and a half, things are probably not going to process too fast Too bad since MT-capable CPUs have become very common items.

-Vit-, did you ever notice any improvements regarding stability by using customized plugins you mentioned earlier in this thread (the correct header files)?
__________________
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  
Old 29th March 2011, 10:44   #534  |  Link
hydra3333
Registered User
 
Join Date: Oct 2009
Location: crow-land
Posts: 540
On another tack, I am attempting to do a "high quality" size reduction from PAL 1440x1088i "HDTV" to 720x576i to burn a DVD.

The capture is a fast-movement sports action clip. Here is a 3Mb sample from the HDTV capture. http://www.mediafire.com/?awxorf6fo8q3520

I must be doing something wrong. I'd thought QTGMC would give me a very high quality "smooth movement" double-framerate deinterlaced result without shimmers etc which I could re-interlace to preserve "fluidity" of fast movement.

However, the result with this script ... well, look at the "50m arc" white line it jaggies and shimmers.


Maybe nothing can be done, it just "is" ? Suggestions appreciated.
Code:
SetMemoryMax(384) 
LoadPlugin("C:\SOFTWARE\DGindex\DGDecode.dll") 
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\Yadifmod.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\DePan.dll") 
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\AGC.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\Cnr2.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\dctfilter.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\fft3dfilter.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\degrainmedian.dll") 
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\Convolution3d.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\despot.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\WarpSharp.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\aWarpSharp.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\mt_masktools-25-broke-backward-compatibility.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\mvtools2.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\Unfilter.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\AddgrainC.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\hqdn3d.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\Colormatrix.dll") 
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\NNEDI2.dll") 
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\NNEDI3.dll") 
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\EEDI2.dll") 
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\EEDI3.dll") 
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\VerticalCleanerSSE3.dll") 
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\dfttest.dll") 
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\VariableBlur.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\FFTQuiver.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\RemoveGrainSSE2.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\RepairSSE2.dll")  
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins-zzz\RemoveDirtSSE2.dll")  
Import("C:\Program Files (x86)\AviSynth 2.5\LimitedSharpenFaster.avs") 
Import("C:\Program Files (x86)\AviSynth 2.5\Deblock_QED_MT2.avs") 
Import("C:\Program Files (x86)\AviSynth 2.5\QTGMC-3.31.avsi") 
MPEG2Source("G:\HDTV\AFL\MP4\2\test.d2v",info=0,ipp=true,cpu=4) 
#
QTGMC(Preset="Slow",EdiThreads=2,Sharpness=1.2,SLMode=1) # result is double framerate progressive, so re-interlate it later 
Lanczos4resize(720,576) 
AssumeTFF() #choose the SAME field order like before deinterlacing 
SeparateFields().SelectEvery(4,0,3).Weave() #reinterlace. 
ColorMatrix(interlaced=true,mode="Rec.709->Rec.601") 
AssumeTFF() #choose the SAME field order like before deinterlacing 
AssumeFPS(25) 
SetPlanarLegacyAlignment(True)

Last edited by hydra3333; 29th March 2011 at 10:53.
hydra3333 is offline  
Old 29th March 2011, 11:05   #535  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,389
Try SLmode=2 instead of SLmode=1.

Can't predict if that's the culprit here, but generally, the (spatial) limiting of SLmode=1|3 can cause shimmering on sharp/thin detail.
__________________
- We´re at the beginning of the end of mankind´s childhood -

My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!)
Didée is offline  
Old 29th March 2011, 11:11   #536  |  Link
hydra3333
Registered User
 
Join Date: Oct 2009
Location: crow-land
Posts: 540
SLmode=2 yields almost identical result. I guess it must be a function of (re)interlacing. The larger-scale interlaced source appears to have very minor similar issues. The double-framerate progressive before re-interlacing looks very reasonable.

I do wish the PAL DVD spec included 576p50

Last edited by hydra3333; 29th March 2011 at 11:15.
hydra3333 is offline  
Old 29th March 2011, 11:29   #537  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,389
Ah, so you're talking about playback of the re-interlaced 576i stream.

You're probably missing the vertical lowpass. Are you watching this on a PC, or on a LCD TV set, or on an old-school tube TV?

Code:
Lanczos4resize(720,576) 
AssumeTFF() #choose the SAME field order like before deinterlacing 
Blur(0,1).SeparateFields().SelectEvery(4,0,3).Weave() #reinterlace.
__________________
- We´re at the beginning of the end of mankind´s childhood -

My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!)
Didée is offline  
Old 29th March 2011, 11:39   #538  |  Link
-Vit-
Registered User
 
Join Date: Jul 2010
Posts: 448
Boulder: I always use my own mods of all the plugins which include SEt's fixes and a nasty hack of my own. They do help, but I haven't had a chance to thoroughly test in order to release. As they have all been converted to VS2010/Intel builds so there is scope for problems - I already get enough support queries on QTGMC...

hydra3333: Just run the QTGMC line from your script and the result is clean and shimmer free. It's the rest of the script that is the problem - <snip> ah... already other answers coming in...
-Vit- is offline  
Old 29th March 2011, 11:53   #539  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,389
Yes, seems that hydra3333 is fighting the basic technical shortcomings of interlacing.

Have a B/W photo (mpeg source), color it up with a nifty colorizer (QTGMC), then print it out on a B/W laser printer (reinterlacing).

Hey, it's only grey! Why are the final colors bad again?
__________________
- We´re at the beginning of the end of mankind´s childhood -

My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!)
Didée is offline  
Old 29th March 2011, 12:42   #540  |  Link
hydra3333
Registered User
 
Join Date: Oct 2009
Location: crow-land
Posts: 540
Quote:
Originally Posted by Didée View Post
Ah, so you're talking about playback of the re-interlaced 576i stream.

You're probably missing the vertical lowpass. Are you watching this on a PC, or on a LCD TV set, or on an old-school tube TV?

Code:
Lanczos4resize(720,576) 
AssumeTFF() #choose the SAME field order like before deinterlacing 
Blur(0,1).SeparateFields().SelectEvery(4,0,3).Weave() #reinterlace.
LCD TV and PC LCD. Appears on all. Yes it seems I do not understand the technical limitations of interlacing ... I had thought the issues would have been less visible. Blur(0,1) coming up.

edit: as an aside, the reduced-size 576p50 in a .mp4 from x264 looks very nice indeed from a WDTVlive on a 32"LCD TV... almost better than the original 1440x1080i ! No good for a DVD though

Last edited by hydra3333; 29th March 2011 at 12:53.
hydra3333 is offline  
Closed Thread

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 - 2024, vBulletin Solutions Inc.