VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. I am trying to batch encode a bunch of avi files with Windows Media Encoder 9 using the scripting language from a command prompt. No matter what I do I get the error "Invalid Parameter: -input".

    I even tried reinstalling everything as well as making a .cmd file to run the script from, the only suggestions found elsewhere on the web. I've got a couple of hundred short clips I want to batch encode, so any ideas would be greatly appreciated. Running XP SP0. Thanks.

    Chris
    Quote Quote  
  2. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    Post your syntax
    Quote Quote  
  3. I used syntax indentical in format to that in the Windows Media Script Enconding help document ("Encoder_Utility.doc"):

    cscript.exe wmcmd.vbs –input C:\My-clips\Myfile.avi –output C:\My-clips-coded\Myfile.wmv

    Of course I substituted a valid path/filename. I keep getting that input parameter error! Any advice would be greatly appreciated. Thanks.

    Chris
    Quote Quote  
  4. Member ebenton's Avatar
    Join Date
    Jul 2003
    Location
    The WINDY state (Florida)
    Search Comp PM
    Does your path or filename have any spaces in it?
    Quote Quote  
  5. There are no spaces in the path or file name. This is driving me crazy!Does anyone have any ideas? Thanks

    Chris
    Quote Quote  
  6. Member ebenton's Avatar
    Join Date
    Jul 2003
    Location
    The WINDY state (Florida)
    Search Comp PM
    Since I don't know anything about the "Encoder_Utility.doc", I can only guess. Sometimes help files have things in them like "-input" and "-output" when in fact they don't mean for you to take them literally. Perhaps that where it says, "-input C:\My-clips\Myfile.avi" you only need to put,"C:\My-clips\Myfile.avi " or at the most, "-C:\My-clips\Myfile.avi ". The same might be true for your output, except that the program has stopped at the first error and not gone past it to see any subsequent errors. So maybe you should also change the "-output C:\My-clips-coded\Myfile.wmv" to "C:\My-clips-coded\Myfile.wmv" or maybe "-C:\My-clips-coded\Myfile.wmv".
    Many programs that use command-line strings like this often assume that the file\path after the first space is the input, with another space after it, and then the desired output is the second path\file after that space.
    Just a guess. Good luck.
    Quote Quote  



Similar Threads

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