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: Command-line WMA encoder (Read 104602 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Command-line WMA encoder

Here is command-line WMA encoder. Inspired by this thread.
Requirements: Windows XP or later, Window Media Codecs installed.

Usage examples:

WmaEncode --codec lossless in.wav out.wma
WmaEncode -c lsl in.wav out.wma

WmaEncode --codec pro --quality 90 in.wav out.wma
WmaEncode -c pro -q 90 in.wav out.wma

WmaEncode --mode vbr2pass --bitrate 128 in.wav out.wma
WmaEncode -m vbr2pass -b 128 in.wav out.wma

...etc.

Sources included. Don't expect them to be well-commented though.

---------
changelog:
0.2.9c: another minor fix in WAV parsing.
0.2.9b: minor fixes in WAV parsing. Sources are attached as a separate file.
0.2.9a: new switches -c, -m, -i, -s (short versions of --codec, --mode, --ignorelength, --silent)
0.2.9: maintenance update
0.2.8: allows 2-pass mode for stdin by default
0.2.7: progress indicator added
0.2.6: raw PCM input added

Command-line WMA encoder

Reply #1
Any source?

Command-line WMA encoder

Reply #2
The sources will be uploaded later. Want to add comments, etc.
Maybe someone will find bugs in the program meanwhile...

Command-line WMA encoder

Reply #3
thanks a lot...
_

Command-line WMA encoder

Reply #4
Cool, just was wondering since it would be nice to make a WMAdrop

Command-line WMA encoder

Reply #5
Version 0.2.5 was uploaded. Several bugs were fixed, probably new added.
Sources included.

Command-line WMA encoder

Reply #6
thanks a lot...
_

please, could you enable (add) wma/wmv input support? this is very handy for quick wma/wmv multichannel transcoding to wma stereo!
_

you don't have to do something special...WMEncoder has support for .wav and .wmv/.wma input (and pcm in .avi too)...all you have to do is to allow it...

Command-line WMA encoder

Reply #7
you don't have to do something special...WMEncoder has support for .wav and .wmv/.wma input (and pcm in .avi too)...all you have to do is to allow it...


Where and what should be allowed?

Command-line WMA encoder

Reply #8
with WMEncoder installed on WinXP i can do this:

Code: [Select]
cmd /c cscript.exe "C:\Program Files\Windows Media Components\Encoder\wmcmd.vbs" -input audio6.wma -output audio2.wma -audioonly -a_codec WMA9PRO -a_mode 0 -a_setting 256_48_2_24


this is a proof that WMEncoder can decode .wmv/.wma...


this line is identical:

Code: [Select]
WMAEncode --codec pro --mode cbr --bitrate 256 --out-channels 2 audio6.wma audio2.wma


but i get:

Code: [Select]
Not a valid WAV file

_

Command-line WMA encoder

Reply #9
All right, but my program doesn't use Windows Media Encoder at all - it uses functions from Wmvcore.dll.
For my encoder to read WMA/WMV files, another reading functions should be added to the program, and I have no plans to do this.

Command-line WMA encoder

Reply #10
please, can you add support for raw pcm input?

suggestion for syntax:

--raw: signals raw pcm input
--in-samplerate n: sets intput format with n samples per second
--in-channels n: sets intput format with n channels
--in-bitdepth n: sets intput format with n bits per sample

to avoid confusion maybe "--priority" should become "--lowpriority"
_

Command-line WMA encoder

Reply #11
Mono now working. Thanks!
lossyWAV -q X -a 4 -s h -A --feedback 2 --limit 15848 --scale 0.5 | FLAC -5 -e -p -b 512 -P=4096 -S- (having set foobar to output 24-bit PCM; scaling by 0.5 gives the ANS headroom to work)

Command-line WMA encoder

Reply #12
Version 0.2.6, with raw PCM input support.

Command-line WMA encoder

Reply #13
thanks a lot...
_

Command-line WMA encoder

Reply #14
Version 0.2.7: progress report was added by request. Also added --silent switch to disable it.

Command-line WMA encoder

Reply #15
thanks a lot...
_

Command-line WMA encoder

Reply #16
Thank you so much! Microsoft inexplicably has completely removed any command line support in their wma encoder running under Windows 7.

Command-line WMA encoder

Reply #17
thanks a lot...
_

Command-line WMA encoder

Reply #18
Once more many thanks for this encoder, i use it very often, its a shame something like this wasn't made by MS himself, using wme was useless and uncomfortable for me, as i always wanted only audio conversion.

Command-line WMA encoder

Reply #19
thanks a lot...change log?
_

Command-line WMA encoder

Reply #20
WMA TAG Does not support unicode (UTF-8) text


Command-line WMA encoder

Reply #22
thanks a lot...
_

Command-line WMA encoder

Reply #23
Thank you very much for development

Command-line WMA encoder

Reply #24
Thanks alot, i was waiting for this type of app!
You can fool some of the people all of the time, and all of the people some of the time, but you can not fool all of the people all of the time.

- Abraham Lincoln