View Full Version : Script stopped working after going to Win7 64
helplessandlost
28th May 2013, 06:32
I have a simple script that I have been using for sometime:
AVISource("filename.avi",pixel_type="RGB32")
ConvertToYV12
Loadplugin("C:\Program Files (x86)\AviSynth 2.58\plugins\hd2sd_sd2hd\FFT3DFilter.dll")
FFT3DFilter(sigma=2.0, plane=0, bw=48, bh=48, bt=3, ow=16, oh=16, sharpen=0.5, interlaced=true)
ConvertToRGB32
I use this as a finishing script for video files that I produce, I was previously using Vista 64, but due to a crash of my system I am now using Windows 7 64. I did use Vdub 32 bit to run my scripts before but for the life of me I can not remember how I set everything up to work properly (and believe me I've tried many things) and am on a dead line as I had to wait over 45 days for this replacement system.
Thank you in advance for anyone who can walk me through getting set back up again.
fvisagie
28th May 2013, 09:06
I'm not sure exactly what the problem is? I.e., once Avisynth and VirtualDub have been installed, you can simply open your scripts in the latter.
If you've gotten this far but things don't work properly and/or you get error messages, perhaps you could describe your problem more specifically.
If the rest of your workflow does not require RGB32, you could simplify your script as follows
AVISource("filename.avi",pixel_type="YV12")
Loadplugin("C:\Program Files (x86)\AviSynth 2.58\plugins\hd2sd_sd2hd\FFT3DFilter.dll")
FFT3DFilter(sigma=2.0, plane=0, bw=48, bh=48, bt=3, ow=16, oh=16, sharpen=0.5, interlaced=true)
Fewer conversions, slightly faster and slightly less quality loss. Perhaps a whole lot less quality loss if you're working with unnormalised luma and/or chroma values which will get clipped in RGB. :)
Cheers,
Francois
pandy
28th May 2013, 09:11
I have a simple script that I have been using for sometime:
AVISource("filename.avi",pixel_type="RGB32")
ConvertToYV12
Loadplugin("C:\Program Files (x86)\AviSynth 2.58\plugins\hd2sd_sd2hd\FFT3DFilter.dll")
FFT3DFilter(sigma=2.0, plane=0, bw=48, bh=48, bt=3, ow=16, oh=16, sharpen=0.5, interlaced=true)
ConvertToRGB32
I use this as a finishing script for video files that I produce, I was previously using Vista 64, but due to a crash of my system I am now using Windows 7 64. I did use Vdub 32 bit to run my scripts before but for the life of me I can not remember how I set everything up to work properly (and believe me I've tried many things) and am on a dead line as I had to wait over 45 days for this replacement system.
Thank you in advance for anyone who can walk me through getting set back up again.
Try VirtualdubMod - i use on regular base 1.5.10.3
http://www.videohelp.com/tools/VirtualdubMOD
Or give a chance to VirtualdubModPlus (link on same page)
And if i can recommend something - Do not convert RGB to YV12 unless this is necessary - if you must work with YCbCr then convert to YUY2 (i don't ask why you insist to request RGB32 in source).
StainlessS
28th May 2013, 11:24
See:
http://forum.doom9.org/showthread.php?t=154941
http://forum.doom9.org/showthread.php?p=1622268#post1622268
May also need AVSRecursion for some plugs:
http://avisynth.org/warpenterprises/
helplessandlost
28th May 2013, 12:12
Thanks, attached is the error I get, even if I simply put in "version ()
I tried the link for VirtualdubMOD, but that won't even load :(
StainlessS
28th May 2013, 12:18
Have you read above links, you need the extra dll.
Also, your attachment may take several days to be approved. Simple text messages would be better.
EDIT:
fftw3.dll
libfftw3f-3.dll
Last two above are actually same dll under different names, FFT3DFilter requires 1st name, dfttest 2nd (I think).
in SYSWOW64
wow!, attachment already approved.
Dont think you need Avisynth_c.dll, was for pre v2.7 avisynth I think.
Just use LoadCPlugin() for C plugs.
Also, Avisynth_c.dll should really NOT be in your AutoLoad plugins directory.
Groucho2004
28th May 2013, 12:37
Also, Avisynth_c.dll should really NOT be in your AutoLoad plugins directory.
It's actually the .avsi that is causing the problem.
This autoload feature in AVS is such a bad idea, particularly for noobs and "GUI" users...
StainlessS
28th May 2013, 12:41
It's actually the .avsi that is causing the problem.
This autoload feature in AVS is such a bad idea, particularly for noobs and "GUI" users...
Arh yes, thought that was obvious, perhaps it was not.
Although I use an autoload AVSI, but only to get MPEG2Source
from a DGIndex directory, so that I dont use two differing versions of it.
Groucho2004
28th May 2013, 12:47
Arh yes, thought that was obvious, perhaps it was not.
It's not obvious to the OP, which was my point.
helplessandlost
28th May 2013, 13:00
Thanks for all the help, and putting up with this nub :)
For whatever reason my old plugins directory - which I copied over directly from my old hard drive was causing issues. Don't know why don't care now that it's working :)
Here is the actual script I use, posted wrong one up last night, tired and burned out trying to figure out what my issue was. I would appreciate if you kind people could tell me if this is best, or could suggest a different script for my purposes. I need it to end up as RGB.
Thanks!
AVISource("Interviews.avi",pixel_type="RGB32")
ConvertToYV12
Loadplugin("C:\Program Files (x86)\AviSynth 2.5\plugins\FFT3DFilter.dll")
FFT3DFilter(sigma=2.0, plane=0, bw=48, bh=48, bt=3, ow=16, oh=16, sharpen=0.5, interlaced=false)
ConvertToRGB32
Levels(0, 1, 255, 16, 235, coring=false)
StainlessS
28th May 2013, 13:18
Magic. :)
Dont forget to update you old hard drive plugins dir for next time you reinstall.
EDIT: @ Grouchy, my previous post above was intended to be an admission of fault on my part.
helplessandlost
28th May 2013, 14:10
Magic. :)
Dont forget to update you old hard drive plugins dir for next time you reinstall.
EDIT: @ Grouchy, my previous post above was intended to be an admission of fault on my part.
Once I'm done setting everything up, I'm going to image the drive :)
Groucho2004
28th May 2013, 15:27
@ Grouchy, my previous post above was intended to be an admission of fault on my part.
What fault? Also - me, grouchy? never. :D
StainlessS
28th May 2013, 15:35
Dont think I would be so grouchy if I lived in Barcelona, Freddie and Montserrat seemed to like it. :)
helplessandlost
29th May 2013, 03:23
Psst, script edit request in here :)
fvisagie
29th May 2013, 07:50
I just noticed the "I need it to end up as RGB". In that case try
AVISource("Interviews.avi",pixel_type="YV12")
Loadplugin("C:\Program Files (x86)\AviSynth 2.5\plugins\FFT3DFilter.dll")
FFT3DFilter(sigma=2.0, plane=0, bw=48, bh=48, bt=3, ow=16, oh=16, sharpen=0.5, interlaced=false)
Levels(0, 1, 255, 16, 235, coring=false)
ConvertToRGB32
=> 1 fewer conversion, and levels are normalised prior to ConvertToRGB32 to avoid too much clipping by the latter.
In addition, suitability of the Levels() command depends on the nature of your footage. The mapping you specify is suitable for changing luma in the [16,255] range to the [16,235] range (approx.). If you want a more exact mapping especially of the blacks, have a look at this post (http://forum.videohelp.com/threads/354292-Preparing-this-Rec-601-YV12-clip-for-Rec-709-MPEG-2-encoding?p=2226658&viewfull=1#post2226658).
Cheers,
Francois
helplessandlost
30th May 2013, 21:50
I just noticed the "I need it to end up as RGB". In that case try
AVISource("Interviews.avi",pixel_type="YV12")
Loadplugin("C:\Program Files (x86)\AviSynth 2.5\plugins\FFT3DFilter.dll")
FFT3DFilter(sigma=2.0, plane=0, bw=48, bh=48, bt=3, ow=16, oh=16, sharpen=0.5, interlaced=false)
Levels(0, 1, 255, 16, 235, coring=false)
ConvertToRGB32
=> 1 fewer conversion, and levels are normalised prior to ConvertToRGB32 to avoid too much clipping by the latter.
In addition, suitability of the Levels() command depends on the nature of your footage. The mapping you specify is suitable for changing luma in the [16,255] range to the [16,235] range (approx.). If you want a more exact mapping especially of the blacks, have a look at this post (http://forum.videohelp.com/threads/354292-Preparing-this-Rec-601-YV12-clip-for-Rec-709-MPEG-2-encoding?p=2226658&viewfull=1#post2226658).
Cheers,
Francois
Thanks, I'm taking AVCHD footage, rendered out with Cineform and using this to prep it for DVD usage. As stated I'm a nub with this stuff, and my eyes crossed when I tried to read that post :)
Should I be using different settings for my levels command?
paradoxical
30th May 2013, 21:57
Your script is for encoding for DVD? Then why are you having it output RGB?
helplessandlost
30th May 2013, 22:59
Your script is for encoding for DVD? Then why are you having it output RGB?
Because I do my encoding with TMPGENC and it requires it...
When I try to use the above script suggestion I get:
"AVISOURCE: the video decompressor couldn't produce yv12 output"
I have loaded ffdshow, and yuvcodecs and still getting that error :(
If you remove the pixel_type argument, what format does your codec output by default?AVISource("Interviews.avi")
Info()
helplessandlost
31st May 2013, 03:11
If you remove the pixel_type argument, what format does your codec output by default?AVISource("Interviews.avi")
Info()
I'll be honest, how do I tell? I have got it to work with the following:
AVISource("Speehes.avi")
ConvertToYV12
Loadplugin("C:\Program Files (x86)\AviSynth 2.5\plugins\FFT3DFilter.dll")
FFT3DFilter(sigma=2.0, plane=0, bw=48, bh=48, bt=3, ow=16, oh=16, sharpen=0.5, interlaced=false)
Levels(0, 1, 255, 16, 235, coring=false)
ConvertToRGB32
StainlessS
31st May 2013, 03:14
AVISource("Speehes.avi")
return Info()
Or just exactly as IanB said, he wanted to know what comes out without you converting or otherwise messing with the video.
helplessandlost
31st May 2013, 03:36
And sorry not trying to be a complete nub, understand the question now:
http://i1259.photobucket.com/albums/ii547/tmoore323/info_zpse3c710b6.png (http://s1259.photobucket.com/user/tmoore323/media/info_zpse3c710b6.png.html)
Of course you could have just typed "YUY2" instead of the 52KB, 1024x640 white bordered screenshot.
And you could probably usefully replaceLevels(0, 1, 255, 16, 235, coring=false)
ConvertToRGB32with justConvertToRGB32(matrix="PC.601")
fvisagie
31st May 2013, 06:51
"AVISOURCE: the video decompressor couldn't produce yv12 output"
It may be helpful if you could post a few seconds of sample footage.
EDIT: beaten to the post, ignore!
Cheers,
Francois
StainlessS
31st May 2013, 07:03
AVISOURCE: the video decompressor couldn't produce yv12 output
I think that message can occur if you do not have a YUV converting codec in system, used to happen a lot years
ago when people used to have to install DIVX and/or mess with the registry (problem with MS crystal.ax, or something like that I think),
I think another cure is to intall Helix YUV codec.
EDIT: come to think of it, it was I think quartz.dll not crystal.ax.
helplessandlost
31st May 2013, 17:18
I think that message can occur if you do not have a YUV converting codec in system, used to happen a lot years
ago when people used to have to install DIVX and/or mess with the registry (problem with MS crystal.ax, or something like that I think),
I think another cure is to intall Helix YUV codec.
Did that, as well as ffdshow
helplessandlost
1st June 2013, 03:16
What's striking me as odd, is this works:
AVISource("filename.avi")
ConvertToYV12
Loadplugin("C:\Program Files (x86)\AviSynth 2.5\plugins\FFT3DFilter.dll")
FFT3DFilter(sigma=2.0, plane=0, bw=48, bh=48, bt=3, ow=16, oh=16, sharpen=0.5, interlaced=false)
Levels(0, 1, 255, 16, 235, coring=false)
ConvertToRGB32
I may try this in my next edit, but want to keep this consistent
ConvertToRGB32(matrix="PC.601")
What do you think is odd?
AVISource, gets the most suitable format available, in this case YUY2. Yes YV12 would be nice but your codec cannot oblige.
ConvertToYV12 because FFT3DFilter needs that format. It maybe halves the vertical chroma. If the original image was actually 4:2:0 then a trip to 4:2:2 and back is pretty lossless.
FFT3DFilter the filter of choice here.
Levels, squeeze the luma from 0..255 into 16..235 you suffer quantisation here going from 256 states to 219 states.
ConvertToRGB32, convert to RGB you suffer quantisation a second time doing YUV to RGB.
Where as with ConvertToRGB32(matrix="PC.601"), you would only get one dose of quantisation doing just the YUV to RGB.
StainlessS
1st June 2013, 17:37
I'm wondering why you have a LoadPlugin line there to load a plug from the plugin AUTOLOAD directory.
It should already be available unless your registry is broken.
(Having said that, you're not the only one who does this).
helplessandlost
2nd June 2013, 02:43
Thanks for all the help, so if I'm reading this right I should change my script from:
AVISource("filename.avi")
ConvertToYV12
Loadplugin("C:\Program Files (x86)\AviSynth 2.5\plugins\FFT3DFilter.dll")
FFT3DFilter(sigma=2.0, plane=0, bw=48, bh=48, bt=3, ow=16, oh=16, sharpen=0.5, interlaced=false)
Levels(0, 1, 255, 16, 235, coring=false)
ConvertToRGB32
too:
AVISource("filename.avi")
ConvertToYV12
Loadplugin("C:\Program Files (x86)\AviSynth 2.5\plugins\FFT3DFilter.dll")
FFT3DFilter(sigma=2.0, plane=0, bw=48, bh=48, bt=3, ow=16, oh=16, sharpen=0.5, interlaced=false)
ConvertToRGB32(matrix="PC.601")
helplessandlost
2nd June 2013, 02:44
I'm wondering why you have a LoadPlugin line there to load a plug from the plugin AUTOLOAD directory.
It should already be available unless your registry is broken.
(Having said that, you're not the only one who does this).
Not sure, guess I could try without, does it cause any issues/delay?
helplessandlost
2nd June 2013, 02:46
And I finalize this whole thing with, is there something better I can be doing here? I convert my footage to both YouTube format, and of course DVD/Blu-ray. If I'm shooting myself in the foot with any of my steps I would be more then receptive to better scripts...
Thanks!
StainlessS
2nd June 2013, 03:34
Not sure, guess I could try without, does it cause any issues/delay?
Assuming that your registry is not broken, then the autoload functionality should work just fine and there would be no need to use LoadPlugin AGAIN as the FFT3DFilter will already be available.
"issues/delay",
it would not have to load the dll twice.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.