VideoHelp Forum
+ Reply to Thread
Results 1 to 18 of 18
Thread
  1. AviSynth/VirtualDub greetings!

    I got the below sample script from "https://forum.videohelp.com/threads/388933-Slowing-Down-Video-Gradually":

    LoadPlugin ("Path to\SickJumps.dll")
    AviSource ("Path to\Clip.avi")
    ConvertToYV12(matrix="Rec709")

    SickJumps(clip c, int "first_frame", int "last_frame",
    float "start_multiplier", float "full_multiplier",
    float "up_seconds", float "down_seconds",
    string "script_variable", float "end_multiplier")

    SickJumps(100, 590, 1.0, 0.5, 2.0, 1.0)
    return Last

    #Comments:
    ##........100, where things start
    ##........590, where things end
    ##........1.0, starts normally
    ##........0.5, slows down to 1/2 speed
    ##........2.0, speeds up to 2x speed
    ##........1.0, slows down to normal speed

    ## THIS EXAMPLE:
    ## play 1x speed to "first_frame"
    ## over the next 2 sec (OUTPUT TIME), ramp down to 0.5x speed
    ## stay at 0.5x until 3 sec (OUTPUT TIME) before source frame "last_frame"
    ## over the next 3 sec (OUTPUT TIME), ramp up to 1x speed and play to end

    #Requirements
    #Avisynth 2.6 or greater, or Avisynth+
    #Microsoft's Visual C++ 2015 Redistributable
    #Plugin SickJumps.dll

    #The audio changes pitch with speed. The sound is smooth; no glitches - very impressive......

    ..........Then, an AviSynth open failure/script error: "Expected a, or ) line X, column Y" (here: SickJumps(clip c,.....). Column Y is the 'comma' after c.

    Tried versions x86 and x64 of SickJumps, still the same error.
    Any ideias?
    Thanks


    O.S. Win7x64 Home Premium
    Visual C++ 2015 Redistributable installed.
    AviSynth+ installed
    Quote Quote  
  2. comment out or erase the usage instructions

    Code:
    LoadPlugin ("Path to\SickJumps.dll")
    AviSource ("Path to\Clip.avi")
    ConvertToYV12(matrix="Rec709")
    
    SickJumps(100, 590, 1.0, 0.5, 2.0, 1.0)
    Quote Quote  
  3. To poisondeathray:
    Everything below "return last" is commented out.
    Quote Quote  
  4. Originally Posted by Virtual McCoy View Post
    To poisondeathray:
    Everything below "return last" is commented out.
    That's not what I'm referring to

    The text above the call is not commented out - it's not a function definition. You need erase or comment it out. The actual plugin is a .dll

    Code:
    SickJumps(clip c, int "first_frame", int "last_frame",
    float "start_multiplier", float "full_multiplier",
    float "up_seconds", float "down_seconds",
    string "script_variable", float "end_multiplier")
    Erase that or comment it out
    Quote Quote  
  5. Sorry, newbie here, not a programmer (so "the text just above the call...." didn't ring a bell), just a casual AviSynth user.
    Wouldn't you, as a polite canadian, just show me the stripped script?
    Quote Quote  
  6. He already did in post #2.
    Quote Quote  
  7. Thank you, friends! It worked! But, for some reason, just for the x86 version of SickJumps. No matter. it's working.
    Quote Quote  
  8. Originally Posted by Virtual McCoy View Post
    But, for some reason, just for the x86 version of SickJumps.
    What is the problem with x64 version ? Describe the issue

    x64 works for me v0.1.1
    https://github.com/ItEndsWithTens/SickJumps/releases

    Do you have the requirements ?
    http://avisynth.nl/index.php/SickJumps#Requirements
    Quote Quote  
  9. "What is the problem with x64 version ? Describe the issue"
    Avisynth open failure: Cannot load the plugin (though I am on x64 OS)

    Anther (half) problem):
    When I said.... "It works!"....Not quite...It seems I rushed things a bit.
    The "slowing down and back to normal" parts of the scripts are ok. But it doesn't speed up.
    Quote Quote  
  10. Originally Posted by poisondeathray View Post
    Originally Posted by Virtual McCoy View Post
    But, for some reason, just for the x86 version of SickJumps.
    What is the problem with x64 version ? Describe the issue

    x64 works for me v0.1.1
    https://github.com/ItEndsWithTens/SickJumps/releases

    Do you have the requirements ?
    http://avisynth.nl/index.php/SickJumps#Requirements
    Same x64 version: 0.1.1
    MS Visual Basic 2015 installed
    AviSynth+ installed
    Quote Quote  
  11. Originally Posted by Virtual McCoy View Post
    "What is the problem with x64 version ? Describe the issue"
    Avisynth open failure: Cannot load the plugin (though I am on x64 OS)
    Are you loading the plugin explicitly?

    LoadPlugin("PATH/SickJumps.dll")

    Is there another plugin interfering or the wrong plugin in the autoload directory ? Clean out the plugins directory


    Anther (half) problem):
    When I said.... "It works!"....Not quite...It seems I rushed things a bit.
    The "slowing down and back to normal" parts of the scripts are ok. But it doesn't speed up.
    You only have 4 value arguments, (besides 100, 590 which are the start and end frames)

    Use the full text for the commands, there should be 5 entries besides the start, end frames

    (first_frame= , last_frame=, start_multiplier=, full_multiplier=, up_seconds=, down_seconds=, end_multiplier=) etc...
    Quote Quote  
  12. "Are you loading the plugin explicitly?
    LoadPlugin("PATH/SickJumps.dll")
    Is there another plugin interfering or the wrong plugin in the autoload directory ? Clean out the plugins directory"
    -----------------------------------------------------------------------------------------------------------------------------
    LoadPlugin ("Path to\SickJumps.dll") x86 DLL. THIS WORKED
    LoadPlugin ("Path to\SickJumps.dll") x64 DLL. THIS DIDN'T(*)
    AviSource ("Path to\Timeline2.avi")
    ConvertToYV12(matrix="Rec709")

    With some more input from "http://avisynth.nl/index.php/SickJumps", the script is now OK...:

    SickJumps(first_frame=0, last_frame=framecount-1, start_multiplier=0.5, full_multiplier=1.5, up_seconds=30, down_seconds=30, end_multiplier=1.0).

    return Last

    (*) Path checked. I removed all other DLLs to no avail (Avisynth open failure: Cannot load SickJumps.dll).
    Thank you poisondeathray!
    Quote Quote  
  13. Do you have 2 avisynth versions installed? You have to use avisynth x64 to load x64 plugins

    The program calling avisynth or used to preview will determine what version is used - eg. if you open .avs in vdub x64, or mpchc x64, or avspmod x64 - it will be avisynth x64 initialized. But if you used vdub2 x86, or mpchc x86, or avspmod x86, then it will be avisynth x86 initialized.
    Quote Quote  
  14. AviSynth+ uninstalled AviSynth 2.5.
    In Control Panel there is only one instance of AviSynth (the plus version).
    The current installation has 4 plugins folders: Plugins and Plugins64 (imported from AviSynth 2.5, I suppose. Both empty) and Plugins+ and Plugins64+, from the current installation.
    Quote Quote  
  15. I edit video with VirtualDub.
    Under Program Files I have VirtualDub 1.10 and under Program Files (x86) I have VirtualDub 1.8.8 (the one I use).
    Quote Quote  
  16. Originally Posted by Virtual McCoy View Post
    and under Program Files (x86) I have VirtualDub 1.8.8 (the one I use).
    That's why x64 plugin does not load; you're using vdub x86, so avisynth x86 is being used - not x64

    avisynth x64 requires x64 plugins ; avisynth x86 requires x86 plugins

    For the most part, you cannot mix and match (there is mp_pipeline that can mix/match within a single host)
    Quote Quote  
  17. Yes! That's it!
    Program Files\VirtualDub 1.10(x64) + Program Files\Avisynth+\SickJumps.dll(x64) worked just fine.
    Quote Quote  
  18. Originally Posted by Delinger View Post
    I LoadPlugin ("Path to\SickJumps.dll") x86 DLL. THIS WORKED
    LoadPlugin ("Path to\SickJumps.dll") x64 DLL. THIS DIDN'T(*)
    AviSource ("Path to\Timeline2.avi")
    ConvertToYV12(matrix="Rec709")
    -----------------------------------------------------------------------------------------------
    After I started using the x64 version of VirtualDub, the x64 version of SickJumps (installed under AviSynth+) worked flawlessly.
    Quote Quote  
Visit our sponsor! Try DVDFab and backup Blu-rays!