Help. I can't command-line encode!
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
Help. I can't command-line encode!

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Encoders
Author Message
Ariel
Guest





Posted: Sat Dec 17, 2005 1:30 am    Post subject: Help. I can't command-line encode! Reply with quote

I must be doing something (obviously) wrong, because cmd-line encoding should
be easy, right?
But I can't get it to work.
SO, I copied and pasted from the cmd window to here:

C:\Program Files\Windows Media Components\Encoder>cscript.exe wmcmd.vbs
-input E:\MS_AVI -output E:\WMV -a_mode 2 -a_setting Q50_44_2_16 -v_mode 2
-v_quality 60 -v_framerate 29.97 -author "John Smith" -copyright "John
Smith, Inc." -description "A nice movie" -rating G

and it returns this:

Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Invalid parameter: -input


But, the input and output folders exist, and the input folder is filled with
avi's (with a non-proprietary codec). So, why can't I get this to work?

Thanks,
Ariel

Back to top
Ariel
Guest





Posted: Sat Dec 17, 2005 1:30 am    Post subject: RE: Help. I can't command-line encode! Reply with quote

So,
I saved the commands as a .bat file, put it in the encoder's directory and
launched it, but I get an error saying that my .avi's are an invalid file
format. This is strange to me because I can encode them just fine from the
Windows Medie Encoder 9 program.
What am I doing wrong?

"Ariel" wrote:

Quote:
I must be doing something (obviously) wrong, because cmd-line encoding should
be easy, right?
But I can't get it to work.
SO, I copied and pasted from the cmd window to here:

C:\Program Files\Windows Media Components\Encoder>cscript.exe wmcmd.vbs
-input E:\MS_AVI -output E:\WMV -a_mode 2 -a_setting Q50_44_2_16 -v_mode 2
-v_quality 60 -v_framerate 29.97 -author "John Smith" -copyright "John
Smith, Inc." -description "A nice movie" -rating G

and it returns this:

Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Invalid parameter: -input


But, the input and output folders exist, and the input folder is filled with
avi's (with a non-proprietary codec). So, why can't I get this to work?

Thanks,
Ariel
Back to top
Guest






Posted: Wed Dec 21, 2005 9:30 am    Post subject: Re: Help. I can't command-line encode! Reply with quote

Hi Ariel,

I encountered exactly the same issue that you did, as have many others
apparently.

The cause of this issue is bizarre, and rather hilarious, actually.

As another user wrote to this newsgroup back on Aug 29, 2004:
"Eureka. The answer is simply that en dashes (ANSI 150) have been used
in the help file rather than true minus signs (ANSI 45). Commands
copied and pasted from the help file will fail."

So, in other words, simply delete the "-" characters shown in your
command line and replace them with new "-" characters typed from your
own keyboard, and the commands should work fine for you.

I can confirm that it just worked for me.

Good luck. : )

Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Encoders All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB