Skip to main content

Topic: Command-line WMA encoder (Read 52286 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • lvqcl
  • [*][*][*][*][*]
  • Developer
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
  • Last Edit: 15 January, 2015, 05:10:08 PM by lvqcl

  • mudlord
  • [*][*][*][*][*]
  • Developer (Donating)
Command-line WMA encoder
Reply #1
Any source?

  • lvqcl
  • [*][*][*][*][*]
  • Developer
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...

  • b66pak
  • [*][*]
Command-line WMA encoder
Reply #3
thanks a lot...
_

  • mudlord
  • [*][*][*][*][*]
  • Developer (Donating)
Command-line WMA encoder
Reply #4
Cool, just was wondering since it would be nice to make a WMAdrop

  • lvqcl
  • [*][*][*][*][*]
  • Developer
Command-line WMA encoder
Reply #5
Version 0.2.5 was uploaded. Several bugs were fixed, probably new added.
Sources included.

  • b66pak
  • [*][*]
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...
  • Last Edit: 03 September, 2011, 12:49:45 PM by db1989

  • lvqcl
  • [*][*][*][*][*]
  • Developer
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?

  • b66pak
  • [*][*]
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

_

  • lvqcl
  • [*][*][*][*][*]
  • Developer
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.

  • b66pak
  • [*][*]
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"
_

  • Nick.C
  • [*][*][*][*][*]
  • Developer
Command-line WMA encoder
Reply #11
Mono now working. Thanks!
lossyWAV -q X -a 4 -s h -A --feedback 2 --limit 15848| FLAC -5 -e -p -b 512 -P=4096 -S-

  • lvqcl
  • [*][*][*][*][*]
  • Developer
Command-line WMA encoder
Reply #12
Version 0.2.6, with raw PCM input support.

  • b66pak
  • [*][*]
Command-line WMA encoder
Reply #13
thanks a lot...
_

  • lvqcl
  • [*][*][*][*][*]
  • Developer
Command-line WMA encoder
Reply #14
Version 0.2.7: progress report was added by request. Also added --silent switch to disable it.

  • b66pak
  • [*][*]
Command-line WMA encoder
Reply #15
thanks a lot...
_

  • dpc666
  • [*]
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.

  • b66pak
  • [*][*]
Command-line WMA encoder
Reply #17
thanks a lot...
_

  • jaro1
  • [*][*]
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.

  • b66pak
  • [*][*]
Command-line WMA encoder
Reply #19
thanks a lot...change log?
_

  • Polosa
  • [*]
Command-line WMA encoder
Reply #20
WMA TAG Does not support unicode (UTF-8) text

  • lvqcl
  • [*][*][*][*][*]
  • Developer
Command-line WMA encoder
Reply #21
The tags are of type WMT_TYPE_STRING ("null-terminated Unicode string"). And Unicode in Windows means UTF-16.


  • b66pak
  • [*][*]
Command-line WMA encoder
Reply #22
thanks a lot...
_

  • jaro1
  • [*][*]
Command-line WMA encoder
Reply #23
Thank you very much for development

  • jsheridan
  • [*][*][*]
  • Developer
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