I want to take DV video - some of it 4:3, some of it 16:9, deinterlace with QTGMC cropping out the switching noise and blank areas on the side, convert to HuffYuv, clean with NeatVideo, use the Gunnar Thalin deshaker within VirtualDub, upconvert to 720P - pillarboxed in the case of the upconverted 4:3 video.
The process I currently envision would take 3 steps:
1. Load this avs script into Virtualdub
SetMTMode(3, 4)
FFMpegSource2("msourcefile.avi", atrack=-1)
AssumeBFF()
ConverttoYv12(interlaced=true)
SetMtMode(2) # uses less memory than mode 3
QTGMC (Preset="medium") #
Crop(8,0,-8,-8) <=== in the case of the 4:3 which is analog video and requires cropping.
and save to mysourcefile.avi as a 59.94 fps Huff file.
2. Process the resulting "mysourcefile.avi" with the Thalin deshaker within Virtualdub
3. Clean with Neatvideo and upconvert the resulting deshaken file to 1280x720 with a resize filter within Virtualdub.
The Thalin deshaker requires 2 passes so it seems it would prevent me from doing anything with the file in the same step as deshaking it. No interest in using the Avisynth stabilizer filter - from what I've seen it's a much bigger pain to use than the Thalin deshaker and doesn't work as well.
Thanks for all input
*Update - when I tried to do step 3 above - Neatvideo and resize in one step I eventually got a system out of memory error. It ended up saving about a minute of the video.
		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 5 of 5
			
		- 
	Last edited by brassplyer; 31st Jul 2013 at 21:26. 
- 
	...which alters the aspect ratio of the original frame if black borders aren't added to restore the original frame size, which in turn will be exaggerated somewhat when the video is resampled. 
 
 However, because it appears that average viewers don't visually discriminate that well, and the overall style in processing these days is who-gives-a-crap, then a difference of 16 pixels in width (which becomes about 28 pixels in width after upsampling), could probably be dismissed. Most people watch videos stretched or squished even worse all the time and don't even know it.Last edited by sanlyn; 25th Mar 2014 at 10:58. 
- 
	I was resizing to 720 x 480 with Virtualdub to retain the AR but now am doing it with the Resize command in Avisynth. 
 
 
 I find that I'm running into this problem even running NV alone.
 
 
 According to this thread on the NV forums, apparently NV only accepts RGB video. The Avisynth script I'm using converts to Yv12, wondering if this could be causing a problem. However NV does process the video to a point. The reason I'm including the ConvertToYv12 command is that there are glitches in the video if I don't.
 
 The avisynth script I'm using to deinterlace:
 
 SetMemoryMax(768)
 SetMTMode(3, 4)
 FFMpegSource2("X:\Disney\Magic Kingdom\main st phil flag.avi", atrack=-1)
 AssumeBFF()
 ConverttoYv12(interlaced=true)
 SetMtMode(2) # uses less memory than mode 3
 QTGMC (Preset="medium") #
 Crop(8,0,-8,-8)
 LanczosResize(720, 480)
- 
	It doesn't matter, for 3 reasons. 1) vdub will convert to rgb anyways with most filters 2) deshaker export will be RGB anyways (you should set huffyuv to RGB for the export at that stage ) 3) you 've separated the steps already. neat video isn't "seeing" your original script - You've already applied to script to a lossless intermediate a few steps earlier 
 
 So split out the NV step to another lossless intermediate export, then upscale that in another step if you have memory problems, or use setmemorymax()
- 
	Whether you do that in VirtualDub or in Avisynth, it's the same thing. Besides, Lanczos leaves edge artifacts IMO. 
 On display, your image will be stretched horizontally. Slightly. by about 12 pixels wide and maybe 1 or 2 high, but it won't be 4:3.
 
 If you upsize a second time to 1440x1080, you'll start seeing quality loss.Code:Crop(8,0,-8,-8).AddBorders(8,4,8,4) Spline36Resize(720, 480) 
 
 BTW, how do you get bottom-border head switching noise out of DV? If you captured VHS to lossy DV, then encode again, you've lost something more. Ever heard of encoding once and resizing once? I don't know...I guess it's more efficient to do it all twice.
   Last edited by sanlyn; 25th Mar 2014 at 10:59. 
Similar Threads
- 
  Help tweak code please? (h264)By suchanoob in forum Video ConversionReplies: 4Last Post: 6th Apr 2013, 00:45
- 
  Upconvert SD to HD using software?By videomaniac in forum Video ConversionReplies: 16Last Post: 21st Feb 2011, 02:22
- 
  AviSynth Tweak color correction assistanceBy lordzer0 in forum RestorationReplies: 2Last Post: 14th Jun 2010, 05:44
- 
  DSL connection problem - tweakBy Jeremiah58 in forum ComputerReplies: 8Last Post: 14th Feb 2010, 19:16
- 
  How can I tweak Vista32 for best Performance?By nyfsmith in forum Newbie / General discussionsReplies: 0Last Post: 31st Aug 2008, 14:58


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

 Quote
 Quote