View Full Version : WME9 - Command Line Encoding different Audio and Video File


unas_media
3rd July 2007, 18:19
Hello,

I'm trying to automate the encoding with WME9 at the moment.
The problem is that I have two seperate files. One .avi file which contains only video and a .wav file.

Manually it is only possible to encode this by selecting "Both device and file" in the WME and then just select two files.

Now the problem with the command line is that I don't know how it is possible to tell the encoder to use two different files as input for audio and video.

I tried this line
CScript.exe wmcmd.vbs -input C:\test01.avi -adevice C:\test01.wav -output C:\codiert\ -outputstring _300 -loadprofile C:\codierung\300kb.prx

This returns the error: "Expect integer value for parameter -adevice".

Is there any other possibility to tell WME to use two files as source?

Help would be much appreciated.

buzzqw
3rd July 2007, 18:32
you can use avisynth, create a script like this

video=directshowsource("c:\test01.avi")
audio=wavsource("test01.wav")
return audiodub(video,audio)

then use as input file this file avs

BHH

kevo777
5th July 2007, 21:37
Hello,

I'm trying to automate the encoding with WME9 at the moment.
The problem is that I have two seperate files. One .avi file which contains only video and a .wav file.

Manually it is only possible to encode this by selecting "Both device and file" in the WME and then just select two files.

Now the problem with the command line is that I don't know how it is possible to tell the encoder to use two different files as input for audio and video.

I tried this line
CScript.exe wmcmd.vbs -input C:\test01.avi -adevice C:\test01.wav -output C:\codiert\ -outputstring _300 -loadprofile C:\codierung\300kb.prx

This returns the error: "Expect integer value for parameter -adevice".

Is there any other possibility to tell WME to use two files as source?

Help would be much appreciated.

You would use "-a_input" to specify your audio source, and then the "-input" argument would specify your video source. The "-a_input" argument will override any audio content in your video source file.

Or buzzqw's solution would work also.

unas_media
13th July 2007, 08:51
Hi,

first I want to thank you for your help.
But when I use -a_input I get the errormessage

Invalid parameter: a_input

when I use an .avs file I get the message

interface not supported (this is a translation from the german error message so I'm not sure it would look exactly the same in the english version).

Any other ideas or hints where my mistake could be?

I just post the two command lines I used to try what you suggested below.
Maybe you can find my mistake.

CScript.exe wmcmd.vbs -input C:\highlights_batch\konvert\test.avs -output C:\highlights_batch\konvert\codiert\ -outputstring _300 -loadprofile C:\codierung\300kb.prx

CScript.exe wmcmd.vbs -a_input C:\highlights_batch\konvert\test.wav -input C:\highlights_batch\konvert\test.avi -output C:\highlights_batch\konvert\codiert\ -outputstring _300 -loadprofile C:\codierung\300kb.prx

zambelli
15th July 2007, 04:01
http://www.citizeninsomniac.com/WMV/#WMCmd is what you need. :)