Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: How to set up Converter for WMA 9 (Read 139743 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How to set up Converter for WMA 9

Reply #51
WM Encoder 9 Fix for Windows 7 and Vista:
http://download.microsoft.com/download/0/3...929182-intl.exe

It really works...


hello,
this fix is nonsense.
since win7 MS use a new WMA interface. WM9Encoder.exe / WM9Encoder64.exe cant be install and never works.

i made a small console app that convert to wma.

see this topic
http://www.hydrogenaudio.org/forums/index....st&p=738082

How to set up Converter for WMA 9

Reply #52
hello,
this fix is nonsense.
since win7 MS use a new WMA interface. WM9Encoder.exe / WM9Encoder64.exe cant be install and never works.

THIS is nonsense. At least WMEncoder64.exe works flawlessly on my Windows7 64-bit.

How to set up Converter for WMA 9

Reply #53
hello,
this fix is nonsense.
since win7 MS use a new WMA interface. WM9Encoder.exe / WM9Encoder64.exe cant be install and never works.

THIS is nonsense. At least WMEncoder64.exe works flawlessly on my Windows7 64-bit.



lol, i dont know what you have, but not a official real win7 version. maybe you have a update version or whatever.

lock at this official MS side
Windows 7 Compatibility Center

WM9Encoder.exe / WM9Encoder64.exe  ar not compatibel with win7 !!!!

you can also search inside MSDN for the new IMF Interface calld "Media Foundation".
What's New in the Windows SDK  7

- Windows Media DRM Client Extended APIs
- Windows Media Player 11 SDK
- Media Foundation
Microsoft Media Foundation is the next generation multimedia platform and infrastructure for Microsoft Windows. The first release of Media Foundation in Microsoft Windows Vista focuses on content protection, audio and video quality, and interoperability for digital rights management (DRM).

 

How to set up Converter for WMA 9

Reply #54
I just wanted to confirm that Windows Media Encoder does indeed work within foobar2000 v.1.1.2 on Win 7 x64 (and I presume x86):

Converter Setup for WMA -profile a128
Encoder > Custom
Encoder: C:\Windows\sysnative\cscript.exe [if x86 it would be C:\Windows\system32\cscript.exe (I think)]
Extension: wma
Parameters: "C:\Program Files\Windows Media Components\Encoder\WMCmd.vbs" //NoLogo -silent -input %s -output %d -profile a128 [if x86 it would be "C:\Program Files (x86)\Windows Media Components\..." (again, I think)]

I just used it and it worked fine; tags and all.  In the past I've converted to WMA9STD, WMA9PRO and WMA9LSL so I believe it supports any/all WMA formats and switches.

The issue for anyone trying to set this up now is finding the WME installer as Microsoft is now pushing its newer Expression Encoder which does not appear to have a commandline interface.

P.S. I googled and "WMEncoder64" is still out there; just not on Microsoft USA.

How to set up Converter for WMA 9

Reply #55
I'm running Win7 x64, and I tried the following:

1. Downloaded and installed WMEncoder64 from here.

2. Setup foobar2000 v.1.1.2 like so:
   
    Encoder > Custom
    Encoder: C:\Windows\SysWOW64\cscript.exe
    Extension: wma
    Parameters: "C:\Program Files\Windows Media Components\Encoder\WMCmd.vbs" //NoLogo -silent -input %s -output %d -profile a128

3. Tried converting a FLAC file but I kept getting this error.

Am I doing anything wrong? What else could I try?

How to set up Converter for WMA 9

Reply #56
Replace SysWOW64 with sysnative:

C:\Windows\sysnative\cscript.exe (see Apesbrain's post just above yours).

How to set up Converter for WMA 9

Reply #57
That did it!

I also got it to work with
"C:\Program Files\Windows Media Components\Encoder\WMCmd.vbs" //NoLogo -silent -input %s -output %d -a_codec WMA9STD -a_mode 3 -a_setting 128_44_2
to make a 2-pass VBR file.

How to set up Converter for WMA 9

Reply #58
hello,
this fix is nonsense.
since win7 MS use a new WMA interface. WM9Encoder.exe / WM9Encoder64.exe cant be install and never works.

THIS is nonsense. At least WMEncoder64.exe works flawlessly on my Windows7 64-bit.



lol, i dont know what you have, but not a official real win7 version. maybe you have a update version or whatever.

lock at this official MS side
Windows 7 Compatibility Center

WM9Encoder.exe / WM9Encoder64.exe  ar not compatibel with win7 !!!!

you can also search inside MSDN for the new IMF Interface calld "Media Foundation".
What's New in the Windows SDK  7

- Windows Media DRM Client Extended APIs
- Windows Media Player 11 SDK
- Media Foundation
Microsoft Media Foundation is the next generation multimedia platform and infrastructure for Microsoft Windows. The first release of Media Foundation in Microsoft Windows Vista focuses on content protection, audio and video quality, and interoperability for digital rights management (DRM).


You are wrong.

The Windows Media encoder framework, version 9, works fine on Win7. After all, the APIs still exist, so you can leverage those.....

How to set up Converter for WMA 9

Reply #59
You are wrong.

The Windows Media encoder framework, version 9, works fine on Win7. After all, the APIs still exist, so you can leverage those.....


hmm do you have install windows media player 12 on win7 ?
if true 32bit wmp and or 64bit wmp ?
if false plese try to install wmp12 and test it again please

WMEncoder64.exe include WMEncoder64.msi from 19.10.2006 (over 4 jears old)
my win 7 x64 with wmp12 block the installation !!!

all official article from microsoft say that since win7 MS change from wmencoder to Microsoft Media Foundation !!
wmp 12 and windows media center (as part of win7) based on Microsoft Media Foundation  !!

read the msdn please
eg http://msdn.microsoft.com/en-us/library/dd...8(v=VS.85).aspx
Shows how to reencode a media file to Windows Media format. using the new IMF... API (Iinterface Media Foundation) and not the old IWM APIS

How to set up Converter for WMA 9

Reply #60
This thread has been pretty helpful in getting things set up, but I'm having issues in practice.

The converter is set up with:

Encoder file: cscript.exe
Extension: wma
Parameters: "C:\Program Files\Windows Media Components\Encoder\WMCmd.vbs" //NoLogo -silent -input %s -output %d -profile a128

When I run the convert operation through foobar2000, it creates a temp .wav file in the destination directory, then a .wma file is created, but it never finishes. It just says "Converting - 1/1 ..." and the time elapsed keeps going up. The .wma file that is created is damaged somehow and won't play in foobar2000. It plays in Media Player, but it doesn't track time correctly. I've tried variations to create other types of .wma files with the same results.

If I run the converter myself from the command line, the wma encoder takes the .wav file and creates a valid .wma that plays fine (but of course has no tags). The file is a little larger than when running through foobar2000.

It seems like foobar2000 is trying to do something that it never finishes, but ends up damaging the converted file. Is this something that anyone else has seen? Is there a debug mode where I can see what it might be hanging on?



How to set up Converter for WMA 9

Reply #63
I'm not sure that foobar2000 really hangs. That how it works when conversion requires a temp wav file:

1) foobar2000 converts an input file to a temporary WAV. The progress bar reaches 100% when this task is done.
2) foobar2000 calls an external encoder amd waits for its return. The progress bar is at 100% all this time, but the conversion doesn't hang.
3) The encoder returns and foobar2000 writes tags to the output file. The job is done.


How to set up Converter for WMA 9

Reply #65
I'm not sure that foobar2000 really hangs. That how it works when conversion requires a temp wav file:

1) foobar2000 converts an input file to a temporary WAV. The progress bar reaches 100% when this task is done.
2) foobar2000 calls an external encoder amd waits for its return. The progress bar is at 100% all this time, but the conversion doesn't hang.
3) The encoder returns and foobar2000 writes tags to the output file. The job is done.


Possibly the converter was not returning for some reason. Not sure why since it worked fine from the command line. That could also explain why the wma file was incomplete.

In any case, WMAEncode64.exe from lvqcl works great.

How to set up Converter for WMA 9

Reply #66
Replace SysWOW64 with sysnative:

C:\Windows\sysnative\cscript.exe (see Apesbrain's post just above yours).


Wow this is an old thread but I am fighting this myself... set everything up with the instructions in the first post and am getting errors.  Yes, Win7 64-bit.

I don't have a "sysnative" folder... any ideas?

I really need to find a way to convert all my FLAC files to WMA lossless as the latter is the only lossless codec that my car will recognize.

thanks for any help!

Edit:

I have tried it three ways, first exactly per the first post

second

Encoder: C:\Windows\SysWOW64\cscript.exe
Parameters: "C:\Program Files\Windows Media Components\Encoder\WMCmd.vbs" //NoLogo -silent -a_codec WMA9LSL -a_mode 2 -a_setting Q100_44_2_16 -input %s -output %d


third

Encoder: C:\Windows\System32\cscript.exe
Parameters: "C:\Program Files\Windows Media Components\Encoder\WMCmd.vbs" //NoLogo -silent -a_codec WMA9LSL -a_mode 2 -a_setting Q100_44_2_16 -input %s -output %d

unfortunately those seem to be the two places I can find cscript.exe - everywhere else that I find it on my hard drive it appears to be a copy of one or the other of those.

every time I end up with the same error

1 out of 1 tracks converted with major problems.
Quote
Source: "C:\Users\Studio\Music\Beethoven, Ludwig van\Beethoven - Symphonien Nos. 7 & 8\08 Symphonie Nr. 8 F-dur op. 93- 4. Allegro vivace.flac"
  An error occurred while finalizing the encoding process (Object not found) : "C:\Users\Studio\Music\Beethoven, Ludwig van\WMA Test\Symphonie Nr. 8 F-dur op. 93- 4. Allegro vivace.wma"
  Conversion failed: Object not found


there are no .wav files in the destination folder.

Any ideas greatly appreciated.  I am hating microsoft so much.  And BMW, for not supporting FLAC.



How to set up Converter for WMA 9

Reply #69
I don't have a "sysnative" folder... any ideas?

Doesn't matter. C:\Windows\Sysnative\cscript.exe should work.

And there's also simpler & faster command-line encoder (eahm posted the link to it).

um... looks like someone actually created something nice, but I haven't a clue how to use it...  no documentation?

fb2k Parameters: --silent --codec lossless - %d

How to set up Converter for WMA 9

Reply #70
I don't have a "sysnative" folder... any ideas?


Doesn't matter. C:\Windows\Sysnative\cscript.exe should work.

And there's also simpler & faster command-line encoder (eahm posted the link to it).


Just tried it... it apparently works, in that it is running the script

but I still get the same error

Also tried copying cscript.exe to foobar folder - still get the same error.

is there anywhere I can see what the various parameters are for the command line thing?  I think that is going to be my only option, but I don't have a clue how to use it, nor did the thread really help because I'm kind of a computer idiot.

or would the switches be the same as for using WMCmd?

Edit; I just copied the files from that link into my foobar2000 directory and tried the following settings (what could possibly go wrong?)

Encoder File: C:\Program Files (x86)\foobar2000\WMAEncode64.exe (and I also tried WMAEncode.exe)
Parameters: -silent -a_codec WMA9LSL -a_mode 2 -a_setting Q100_44_2_16 -input %s -output %d

I'm getting the exact same error message!  I'm going to have to walk away from this for a while otherwise a nice new laptop is going out the front window.


How to set up Converter for WMA 9

Reply #71
I haven't used WMA in quite some time, but just tried my old settings on foobar2000 v.1.2.9 converter on Win 7 x64 and they still work.  Have you followed the instructions in this thread, posts 56-58, to the letter?  You need to first download and install (double-click on the downloaded file) Windows Media Encoder from the link provided, then configure foobar2000 converter as follows:

Encoder file: C:\Windows\sysnative\cscript.exe => It doesn't matter if you can't see this folder
Extension: wma
Parameters: "C:\Program Files\Windows Media Components\Encoder\WMCmd.vbs" //NoLogo -silent -input %s -output %d -a_codec WMA9LSL -a_mode 2 -a_setting Q100_44_2_16
Format is: lossless (or hybrid)
Highest BPS mode supported: 24
Encoder name: WMA Lossless

Note that foobar2000 will appear to stall at the end of each file being converted.  It is actually standing by while WME does its thing in the background; this may take 30 sec.

After you install WME you will find a Windows Start Menu link to "Windows Media Encoding Script" help file.  Launch this and you can learn all about WME command line settings.

How to set up Converter for WMA 9

Reply #72
yes, that's exactly what I did/am doing.  just tried it again

Quote
1 out of 1 tracks converted with major problems.

Source: "C:\Users\Studio\Music\Beethoven, Ludwig van\Beethoven - Symphonien Nos. 7 & 8\08 Symphonie Nr. 8 F-dur op. 93- 4. Allegro vivace.flac"
  An error occurred while finalizing the encoding process (Object not found) : "C:\Users\Studio\Music\Beethoven, Ludwig van\WMA Test\Symphonie Nr. 8 F-dur op. 93- 4. Allegro vivace.wma"
  Conversion failed: Object not found


Encoder file: C:\Windows\sysnative\cscript.exe
Extension: WMA
Parameters: "C:\Program Files (x86)\Windows Media Components\Encoder\WMCmd.vbs" //NoLogo -silent -input %s -output %d -a_codec WMA9LSL -a_mode 2 -a_setting Q100_44_2_16

(I copied your parameters above but my Windows Media Components folder is in (x86) for some reason)

Format: Lossless (or hybrid)
Highest BPS mode supported: 24 (I had this at 16 before, but it doesn't seem to make a difference)

I also don't appear to have any kind of help file although the encoder definitely is installed.

Edit: I just tried converting to .mp3 just to make sure it wasn't a foobar problem, that apparently works well both the default settings and also when changing to 320kbps.

How to set up Converter for WMA 9

Reply #73
Encoder File: C:\Program Files (x86)\foobar2000\WMAEncode64.exe (and I also tried WMAEncode.exe)
Parameters: -silent -a_codec WMA9LSL -a_mode 2 -a_setting Q100_44_2_16 -input %s -output %d

I'm getting the exact same error message!  I'm going to have to walk away from this for a while otherwise a nice new laptop is going out the front window.

I updated my previous post just when you wrote yours. As I wrote, fb2k Parameters: --silent --codec lossless - %d.


Encoder file: C:\Windows\sysnative\cscript.exe
Extension: WMA
Parameters: "C:\Program Files (x86)\Windows Media Components\Encoder\WMCmd.vbs" //NoLogo -silent -input %s -output %d -a_codec WMA9LSL -a_mode 2 -a_setting Q100_44_2_16

You should use 64-bit exe (C:\Windows\Sysnative\cscript.exe) when you use 64-bit WMCmd (C:\Program Files\Windows Media Components\Encoder\WMCmd.vbs). And use 32-bit exe (C:\Windows\System32\cscript.exe or C:\Windows\SysWOW64\cscript.exe) when you use 32-bit WMCmd (C:\Program Files (x86)\Windows Media Components\Encoder\WMCmd.vbs).

Besides, what's the format of your input file (samplerate, bit depth, number of channels)?

How to set up Converter for WMA 9

Reply #74
Encoder File: C:\Program Files (x86)\foobar2000\WMAEncode64.exe (and I also tried WMAEncode.exe)
Parameters: -silent -a_codec WMA9LSL -a_mode 2 -a_setting Q100_44_2_16 -input %s -output %d

I'm getting the exact same error message!  I'm going to have to walk away from this for a while otherwise a nice new laptop is going out the front window.

I updated my previous post just when you wrote yours. As I wrote, fb2k Parameters: --silent --codec lossless - %d.


Encoder file: C:\Windows\sysnative\cscript.exe
Extension: WMA
Parameters: "C:\Program Files (x86)\Windows Media Components\Encoder\WMCmd.vbs" //NoLogo -silent -input %s -output %d -a_codec WMA9LSL -a_mode 2 -a_setting Q100_44_2_16

You should use 64-bit exe (C:\Windows\Sysnative\cscript.exe) when you use 64-bit WMCmd (C:\Program Files\Windows Media Components\Encoder\WMCmd.vbs). And use 32-bit exe (C:\Windows\System32\cscript.exe or C:\Windows\SysWOW64\cscript.exe) when you use 32-bit WMCmd (C:\Program Files (x86)\Windows Media Components\Encoder\WMCmd.vbs).

Besides, what's the format of your input file (samplerate, bit depth, number of channels)?


I'm getting ready to run out so I will have to try messing with this later, but to answer your last question, my files are mostly ripped CDs (and those are the ones I'm using as proof of concept) so they're 44.1, stereo, 16 bit.