Using Windows Media Encoding Script, you can encode multichannel audio, which means you can encode audio for a surround sound playback in six or 8 channels. Your content source must be either a single 6-channel or 8-channel file that has a WAVE_FORMAT_EXTENSIBLE format, or you can source from six mono channel .wav files.
To source from a single file, you set up a command that identifies the file as your input. You must also specify the Windows Media Audio 9 Professional codec. For example:
cscript.exe wmcmd.vbs –input C:\My-source_files\6_channel.wav -output C:\My_song.wma -a_codec WMA9PRO -a_setting 640_48_6_24
-or-
cscript.exe wmcmd.vbs –input C:\source_files\8_channel.wav -output C:\My_song.wma -a_codec WMA9PRO -a_setting 384_48_8_24
It is not possible to source from six mono channel .wav files directly from Windows Media Encoding Script. Instead, you can set up a multichannel audio session by using Windows Media Encoder. You can then save the session and refer to the session file in your command. For example:
cscript.exe wmcmd.vbs –wme C:\My_multichannel_session.wme
When sourcing from multichannel audio, you can also include the -a_folddown6to2 parameter in the command. This parameter specifies how the six channels are folded down into two channels for playback on stereo speakers.
The user playing your content must have Microsoft Windows XP and a player that is based on the Windows Media Format 9 Series Software Development Kit (SDK); otherwise, the audio is folded down automatically to two channels for stereo speakers.