VideoHelp.com Forum
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. I've made this simple vbscript some time ago because I hated to create those .avs files each time. I could write an installer that does all the work if anyone likes, but this is very easy

    - requirements: virtualdub, avisynth, directshow codecs

    installation:
    ========
    1) place a file called "DirectShow 4 VirtualDub.vbs" with the following lines into your virtualdub folder



    Code:
    Option Explicit
    
    Dim q,vdubEXE,Arg,Argstr,fo,sh,f,file,pos,AVSfile,tcreate
    
    q=Chr(34)
    
    vdubEXE=Left(wscript.ScriptFullName,Len(wscript.ScriptFullName)-Len(wscript.ScriptName))+"VirtualDub.exe"
    
    Set Arg = WScript.Arguments
    
    Argstr=Arg.Item(0)
    
    Set fo = CreateObject("Scripting.FileSystemObject") 
    Set sh = CreateObject("Wscript.Shell")
    
    Set f = fo.GetFile(Argstr)
    
    file=f
    AVSfile=file+".avs"
    Set tcreate=fo.CreateTextFile(AVSfile,1)
    tcreate.writeLine("DirectShowSource("+q+file+q+")")
    tcreate.Close()
    sh.run q+vdubEXE+q+" "+q+AVSfile+q,,True
    
    fo.DeleteFile(AVSfile)
    
    set fo = Nothing
    set sh = Nothing
    2) create a shortcut of this file on your desktop
    3) give it a virtualdub icon and the name you want, for example (Vdub Dshow)

    Now if you drop a .rm file or whatever on that icon a .avs is created next to it (with the same name) and virtualdub is opened with that file, when you are done and close virtualDub the file is removed.
    Quote Quote  

  2. Member
    Join Date: Dec 2005
    Location: none
    Or use VirtualDubMod and it's built in AviSynth DirectShowSource option. That will create the AVS script and open it.

    Quote Quote  

  3. that's nice, I even didn't know that existed.
    Quote Quote  




Similar Threads

  1. VirtualDub Now Has a Directshow Driver Plugin
    By Soopafresh in forum Video Conversion
    Replies: 30
    Last Post: 11th Nov 2011, 19:43
  2. A problem with Directshow and VirtualDub
    By CrystalClear47 in forum Newbie / General discussions
    Replies: 23
    Last Post: 7th Jun 2011, 02:34
  3. Simple Script to Prepare Your DivX/Xvid AVIs for Transcoding
    By Soopafresh in forum Video Conversion
    Replies: 17
    Last Post: 13th Jul 2009, 20:30
  4. Replies: 0
    Last Post: 17th Sep 2008, 16:40
  5. Trying to write a simple batch script for VDubMod
    By mob in forum Newbie / General discussions
    Replies: 1
    Last Post: 17th Aug 2007, 19:39
Search   Contact us   About   Advertise   Forum   RSS Feeds   Statistics   Tools