VideoHelp Forum




+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 47
  1. Member
    Join Date
    Apr 2005
    Location
    Dover NH
    Search Comp PM
    Hi all,

    Back in November on this forum, I crash-coursed on AVISynth, and thanks to manono, Al, LigH.de, LMotlow, jagabo, and
    several others who are very patient, I was up and running.

    Today I'm attempting to start working on my film project again after not touching it since then - and nothing's working.

    So, with my tail between my legs, I must once again ask for your help to try and get back to where I was.
    To put it simply, none of my scripts will open an in VDub. The error message is 'Unable to open file: C:\AVS TEST SCRIPT.avs'.
    This is the same error I get with every script I try to use. Nothing more specific than that.
    All of my scripts were working fine two months ago.

    Here's my setup and what I've tried today:

    Windows XP Pro SP3 32bit; AVISynth 2.60; Virtual Dub 1.10.

    - Reinstalled AVISynth 2.60
    - Reinstalled AVISynth folder Plugins
    - Reinstalled Microsoft Visual C++ Redistributable - all versions from 2010 up
    - Reinstalled fftw3.dll and libfftw3f-3.dll in Windows System 32 folder

    Here's my AVISynth plugins folder list:

    Click image for larger version

Name:	AVISynth Plugins.png
Views:	893
Size:	15.8 KB
ID:	35163

    Here's one of the the scripts I'm trying to use (AVS TEST SCRIPT.avs):

    Import("C:\Program Files\Avisynth\plugins\sRestore.avs")
    AVISource("TEST2.avi")
    ConvertToYV12(interlaced=true)
    QTGMC(Preset="faster")
    Srestore(Frate=19.98)
    AssumeFPS(12)
    Crop(8,0,-8,0)
    LanczosResize(640,480)


    Thanks
    Quote Quote  
  2. Make a simple script with just:

    Code:
    Version()
    Can VirtualDub open that?

    Also, try removing the ffmpeg source plugin for VirtualDub.
    Quote Quote  
  3. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    Make sure you are attempting to "Open Video File", not "Run Script". The run script option is for Vdub process/batch/edit scripts, not AVISynth scripts (which should appear to Vdub as video).

    Scott
    Quote Quote  
  4. Member
    Join Date
    Apr 2005
    Location
    Dover NH
    Search Comp PM
    Originally Posted by Cornucopia View Post
    Make sure you are attempting to "Open Video File", not "Run Script". The run script option is for Vdub process/batch/edit scripts, not AVISynth scripts (which should appear to Vdub as video).

    Scott
    Yes, I'm attempting 'Open Video File'.

    Thanks.
    Quote Quote  
  5. Member
    Join Date
    Apr 2005
    Location
    Dover NH
    Search Comp PM
    Originally Posted by jagabo View Post
    Make a simple script with just:

    Code:
    Version()
    Can VirtualDub open that?

    Also, try removing the ffmpeg source plugin for VirtualDub.
    The ffmepeg plugin is not in the VDub plugins folder.

    Do you mean try a script with simply 'Version()' written?
    Quote Quote  
  6. Originally Posted by bvdd View Post
    Do you mean try a script with simply 'Version()' written?
    Yes. AviSynth will create a small video with the version number stamped onto it. This removes most other dependencies that might cause problems. If you can't open that script AviSynth probably isn't installed properly. Keep in mind that 64 bit VirtualDub requires 64 bit AviSynth and 64 bit filters. 32 bit Virtualdub requires 32 bit AviSynth and 32 bit filters. The two systems, 64 bit and 32 bit, can't see each others' components.
    Quote Quote  
  7. Member
    Join Date
    Apr 2005
    Location
    Dover NH
    Search Comp PM
    Ok, it's not opening, but let's make sure I did this right:
    Image Attached Files
    Quote Quote  
  8. Member
    Join Date
    Apr 2005
    Location
    Dover NH
    Search Comp PM
    Ok, now it's opening. I wrongly assumed I needed to add the version number in the ().

    So that means AVISynth is installed correctly ?
    Quote Quote  
  9. Originally Posted by bvdd View Post
    So that means AVISynth is installed correctly ?
    Yes, that's what it means. It's a standard test to make sure AviSynth itself isn't the problem.

    The next step might be to try your script again, but with everything commented out but the source plugin:

    #Import("C:\Program Files\Avisynth\plugins\sRestore.avs")
    AVISource("TEST2.avi")
    #ConvertToYV12(interlaced=true)
    #QTGMC(Preset="faster")
    #Srestore(Frate=19.98)
    #AssumeFPS(12)
    #Crop(8,0,-8,0)
    #LanczosResize(640,480)


    See if that opens and, if not, what the error message is.
    Quote Quote  
  10. Member
    Join Date
    Apr 2005
    Location
    Dover NH
    Search Comp PM
    Originally Posted by manono View Post
    Originally Posted by bvdd View Post
    So that means AVISynth is installed correctly ?
    Yes, that's what it means. It's a standard test to make sure AviSynth itself isn't the problem.

    The next step might be to try your script again, but with everything commented out but the source plugin:

    #Import("C:\Program Files\Avisynth\plugins\sRestore.avs")
    AVISource("TEST2.avi")
    #ConvertToYV12(interlaced=true)
    #QTGMC(Preset="faster")
    #Srestore(Frate=19.98)
    #AssumeFPS(12)
    #Crop(8,0,-8,0)
    #LanczosResize(640,480)


    See if that opens and, if not, what the error message is.
    That opened.
    So now I try adding each line in one at a time, correct?
    Quote Quote  
  11. Member
    Join Date
    Apr 2005
    Location
    Dover NH
    Search Comp PM
    Ok, so I've added every line back in (except 1 & 5 - sRestore) and it opens.
    I add either of those in and it fails.

    The problem is with sRestore, correct?
    Last edited by bvdd; 9th Jan 2016 at 17:29.
    Quote Quote  
  12. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    Correct.
    Quote Quote  
  13. Now you need to figure out why SRestore() isn't working. If you re-enable just the import line what error message do you get?
    Quote Quote  
  14. Member
    Join Date
    Apr 2005
    Location
    Dover NH
    Search Comp PM
    The same error: Unable to open file: ..
    Quote Quote  
  15. Member
    Join Date
    Apr 2005
    Location
    Dover NH
    Search Comp PM
    I tried replacing srestore v.2.7e with v.2.7h - no luck
    Quote Quote  
  16. SRestore normally comes as a .AVSI file that autoloads when it's in AviSynth's plugins folder. Did you rename it to .AVS?
    Quote Quote  
  17. Member
    Join Date
    Apr 2005
    Location
    Dover NH
    Search Comp PM
    Originally Posted by jagabo View Post
    SRestore normally comes as a .AVSI file that autoloads when it's in AviSynth's plugins folder. Did you rename it to .AVS?
    Yes, here's my plugins folder once again, just in case something's amiss:
    Image Attached Thumbnails Click image for larger version

Name:	AVISynth Plugins.png
Views:	569
Size:	14.0 KB
ID:	35172  

    Quote Quote  
  18. Apparently QTGMC is autoloading on your system. So try renaming SRestore.AVS to SRestore.AVSI, removing the import line in your script, and see if it autoloads.

    Are you using 32 bit AviSynth on a 64 bit system? Then the folder name is
    Code:
    C:\Program files (x86)\...
    not
    Code:
    C:\Program Files\...
    Quote Quote  
  19. Member
    Join Date
    Apr 2005
    Location
    Dover NH
    Search Comp PM
    That worked!

    I'm using 32 bit AviSynth on a 32 bit system.

    So, can I run it like this with no issues?
    Quote Quote  
  20. Member
    Join Date
    Apr 2005
    Location
    Dover NH
    Search Comp PM
    Check that - it only opens if I have both the Import line AND the "sRestore(Frate=19.98)" line removed.

    Doesn't that mean sRestore is not loading at all?
    Quote Quote  
  21. Open SRestore.AVS with a text editor. Does it look OK? No obvious corruption?
    Quote Quote  
  22. Member
    Join Date
    Apr 2005
    Location
    Dover NH
    Search Comp PM
    I'm not good enough with code to know.
    Here's the file, can you tell?
    Image Attached Files
    Last edited by bvdd; 9th Jan 2016 at 20:35.
    Quote Quote  
  23. Looks OK to me. I compared it to v2.7g on my system and there's only a few lines different. Nothing corrupt. Replacing the older version with that version works fine.
    Quote Quote  
  24. Member
    Join Date
    Apr 2005
    Location
    Dover NH
    Search Comp PM
    So if I have both 'srestore' lines commented out in the script, how is it loading?

    #Import("C:\Program Files\Avisynth\plugins\sRestore.avs")
    AVISource("TEST2.avi")
    ConvertToYV12(interlaced=true)
    QTGMC(Preset="faster")
    #sRestore(Frate=19.98)
    AssumeFPS(12)
    Crop(8,0,-8,0)
    LanczosResize(640,480)
    Quote Quote  
  25. SRestore isn't loading or being used.
    Quote Quote  
  26. Member
    Join Date
    Apr 2005
    Location
    Dover NH
    Search Comp PM
    I thought srestore was necessary to remove both duplicate and blended frames - Not true?

    Removing those is something I definitely need to be able to do.
    Last edited by bvdd; 9th Jan 2016 at 22:53.
    Quote Quote  
  27. How do you know it's supposed to become 19.98fps? Maybe it's time for you to provide a short 10-second sample from your source.

    I thought srestore was necessary to remove both duplicate and blended frames - Not true?
    It's true.
    Removing those is something I definitely need to be able to do.
    It does nothing with the line commented out (the '#' in front).
    Quote Quote  
  28. Member
    Join Date
    Apr 2005
    Location
    Dover NH
    Search Comp PM
    Originally Posted by manono View Post
    How do you know it's supposed to become 19.98fps? Maybe it's time for you to provide a short 10-second sample from your source.

    I thought srestore was necessary to remove both duplicate and blended frames - Not true?
    It's true.
    Removing those is something I definitely need to be able to do.
    It does nothing with the line commented out (the '#' in front).
    I think I've been tripping over myself this time, just trying to get the script to open up in VDub.

    When I first started this project two months ago, jagabo suggested the frame rate was around 12fps, which looks about right to me.
    But I don't know enough about scripts/code to know which line is affecting the final processed frame rate, so I may be using a script with commands that contradict each other.

    All I want to accomplish is getting close to the correct speed and removing duplicate/blended frames. I'll be thrilled to get that far.

    Here's another 10 sec clip from the original capture:
    (I tried to convert this to mp4 but the quality was horrible)
    Image Attached Files
    Quote Quote  
  29. Originally Posted by bvdd View Post
    But I don't know enough about scripts/code to know which line is affecting the final processed frame rate

    Code:
    Import("C:\Program Files\Avisynth\plugins\sRestore.avs")
    This line imports SRestore.avs as if you had included all the text of that script in your current script. This makes the SRestore function available (assuming it succeeded) for use in this script.

    Code:
    AVISource("TEST2.avi")
    This opens your AVI file making the video and audio streams available as a stream called "last". Any time you don't explicitly name a stream it is given the name last. Anytime you don't specify a stream the stream named last is used.

    Code:
    ConvertToYV12(interlaced=true)
    This converts last from whatever color format it is in (RGB in the case of the video you uploaded) to YV12, interlaced. So the previous two lines of this script are equivalent to:

    Code:
    last  = AVISource("TEST2.avi")
    last = ConvertToYV12(last, interlaced=true).
    From here on out I'll stop explaining the use of "last".

    Code:
    QTGMC(Preset="faster")
    This converts each field of the interlaced source into a frame. Your source is 29.97 fps so after QTGMC last is 59.94 fps.

    Code:
    Srestore(Frate=19.98)
    This discards frames, preferentially blended and duplicate frames, leaving 19.98 fps.

    Code:
    AssumeFPS(12)
    This slows the 19.98 fps video down to 12 fps (equivalent to slowing a projector), increasing the running time by a factor of 19.98/12. If you left out SRestore() the incoming frame rate here would be 59.94 fps and it would be slowed to 12 fps, extending the run time by a factor of 59.94/12, about 5x.

    Code:
    Crop(8,0,-8,0)
    This cuts away 8 columns from the left of the frame and 8 columns from the right of the frame.

    Code:
    LanczosResize(640,480)
    This resizes the frame that's left (704x480) to 640x480.

    The result of the full script attached.
    Image Attached Files
    Last edited by jagabo; 10th Jan 2016 at 11:18.
    Quote Quote  
  30. Member
    Join Date
    Apr 2005
    Location
    Dover NH
    Search Comp PM
    Fabulous explanation!

    So in my case, at least so far, I can't get sRestore to load - which means I have no way to discard blended and duplicate frames, correct?

    Is there another way? I'm reading about TDecimate. Should I pursue that or figure out the sRestore issue?
    It worked just fine 2 months ago.

    Thank you so much for staying with me.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!