I tested this on x32 and x64 MeGUI, but after I index this .mkv file (either FFMS or LSMASH) and click Apply Preview, I get this error:
I tested my MeGUI with other files and they work and apply preview fine except this video.
+ Reply to Thread
Results 1 to 8 of 8
-
Last edited by midts; 9th May 2017 at 05:20.
-
It's basic avs script, there's nothing special in it. And I use same exact script for other files and they work.
HTML Code:LoadPlugin("C:\MeGUIx64\tools\lsmash\LSMASHSource.dll") LWLibavVideoSource("C:\sample.mkv") LoadPlugin("C:\MeGUIx64\tools\avisynth_plugin\TIVTC.dll") SetMemoryMax(7168) #deinterlace #crop #resize #denoise
okay thats funny, preview works if I delete BOTH the
HTML Code:LoadPlugin("C:\MeGUIx64\tools\avisynth_plugin\TIVTC.dll") SetMemoryMax(7168)
-
As already mentioned before elsewhere: Requesting up to 7 GB (Gigabytes!) of RAM for such a basic script is nonsense, and will probably disturb other applications due to a lack of RAM left for them.
And why import a plugin which is never used with any of its provided functions?
Furthermore, sometimes the order of commands in a script is important. If you need a SetMemoryMax at all (not here, only for very complex multi-threaded scripts), use it as early as possible. And load all required plugins before using any filter. -
Groucho2004Guest
Your script doesn't return a clip because you added statements after the source filter. You should familiarize yourself with Avisynth grammar, particularly the "last" variable.
Besides, why do you load a plugin if you're not using it? Also, the "SetMemoryMax" statement should be at the beginning of the script (I'm just ignoring the utterly insane value you set there).
Edit - Ligh was faster. -
Groucho2004Guest
Last edited by Groucho2004; 9th May 2017 at 09:05.
-
Putting SetMemoryMax() and LoadPlugin() at the start of your script is good practice -- but not strictly necessary. To clarify things a bit...
If you don't specify what to output AviSynth will output the result of the last command (comments don't count). SetMemoryMax() does not output a video clip, hence the error. LoadPlugin() will have the same problem. So you can work around the current problem by putting those two commands above LWLibAvVideoSource():
Code:SetMemoryMax(7168) LoadPlugin("C:\MeGUIx64\tools\lsmash\LSMASHSource.dll") LoadPlugin("C:\MeGUIx64\tools\avisynth_plugin\TIVTC.dll") LWLibavVideoSource("C:\sample.mkv") #deinterlace #crop #resize #denoise
Code:LoadPlugin("C:\MeGUIx64\tools\lsmash\LSMASHSource.dll") LWLibavVideoSource("C:\sample.mkv") LoadPlugin("C:\MeGUIx64\tools\avisynth_plugin\TIVTC.dll") SetMemoryMax(7168) #deinterlace #crop #resize #denoise return(last)
Code:SetMemoryMax(7168) LoadPlugin("C:\MeGUIx64\tools\lsmash\LSMASHSource.dll") LWLibavVideoSource("C:\sample.mkv") FlipVertical()
Code:SetMemoryMax(7168) LoadPlugin("C:\MeGUIx64\tools\lsmash\LSMASHSource.dll") last = LWLibavVideoSource("C:\sample.mkv") last = FlipVertical(last) return(last)
Similar Threads
-
How can I create a 2 sec solid black video clip without a video camera?
By haggis999 in forum Newbie / General discussionsReplies: 47Last Post: 21st Mar 2014, 09:03 -
FFT3dfilter script suggestions for this clip?
By brassplyer in forum RestorationReplies: 7Last Post: 7th Jul 2013, 09:41 -
How can i Use VDub Script[.vcf] into Avisynth Script[.avs] ( Megui )
By Maskoff in forum EditingReplies: 1Last Post: 25th Jun 2013, 15:30 -
Avisynth script for this TV captured video
By Anonymous847344 in forum Video ConversionReplies: 10Last Post: 23rd Jun 2013, 14:02 -
trouble adding a different script to a trimmed section in my script
By unclescoob in forum RestorationReplies: 20Last Post: 11th Aug 2012, 22:59