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 06:20. 
- 
	It's basic avs script, there's nothing special in it. And I use same exact script for other files and they work. 
 update: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
 If I delete only one of them, it still gives the error, no matter which one I leave, but it works if you remove BOTH of them. These two lines are added into one of my default avisynth scripts. And all videos worked up until now.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.
- 
	Groucho2004GuestYour 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.
- 
	Groucho2004GuestLast edited by Groucho2004; 9th May 2017 at 10: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():
 
 Another workaround is to specify what to output -- put return(last) at the end of the script: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
 
 What is "last"? If you don't specify a name for a video stream the name "last" is used instead. So a script that reads: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)
 
 is equivalent to: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, 10:03
- 
  FFT3dfilter script suggestions for this clip?By brassplyer in forum RestorationReplies: 7Last Post: 7th Jul 2013, 10:41
- 
  How can i Use VDub Script[.vcf] into Avisynth Script[.avs] ( Megui )By Maskoff in forum EditingReplies: 1Last Post: 25th Jun 2013, 16:30
- 
  Avisynth script for this TV captured videoBy Anonymous847344 in forum Video ConversionReplies: 10Last Post: 23rd Jun 2013, 15:02
- 
  trouble adding a different script to a trimmed section in my scriptBy unclescoob in forum RestorationReplies: 20Last Post: 11th Aug 2012, 23:59


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			
 Quote
 Quote
