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
+ Reply to Thread
Results 1 to 6 of 6
-
-
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 -
There are no spaces in the path or file name. This is driving me crazy!Does anyone have any ideas? Thanks
Chris -
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.
Similar Threads
-
Windows Media Encoder (WME) Error Log.
By nomo0808 in forum Video Streaming DownloadingReplies: 1Last Post: 6th Oct 2011, 02:41 -
XML Error in windows media player
By Dj-Viper in forum Software PlayingReplies: 0Last Post: 10th Dec 2009, 15:41 -
WMA with markers & script does not work in Windows Media Player 11
By musomn in forum AudioReplies: 0Last Post: 16th Oct 2009, 09:24 -
error to start Windows Media Encoder
By George2 in forum ProgrammingReplies: 14Last Post: 20th May 2009, 23:31 -
Windows Media Player Error message
By visjds1 in forum MediaReplies: 2Last Post: 10th Nov 2008, 14:15