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 rip into WMA-lossless w/EAC ? (Read 11813 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How-to rip into WMA-lossless w/EAC ?

Hello music lovers,

i need to know how i can rip CD's into wma lossless within the EAC app.

after reading through 20! pages in this section of the forum i finally thought to
start a new thread.
After investigating through the web i followed the hint to install the WM-Encoder 9 pack.
Then i chose within EAC the WMA9 encoder under the external compression tab with the lossless bitrate
option checked.
But there is nothing more coming out then the .wav files...?
What i've to do ?

Thanks.

Phil

How-to rip into WMA-lossless w/EAC ?

Reply #1
Installing Encoder 9 was the first step.

IIRC you need to use the WMCmd.vbs script that is in the "C:\Program Files\Windows Media Components\Encoder" folder.

This post has instructions for foobar to create WMA PRO files; the command just needs a little amending to create lossless (use -a_codec WMA9LSL for lossless) in EAC - same principal though.

Here's the help from WMCmd.bat:

Code: [Select]
Microsoft ® Windows Script Host Version 5.6
Copyright © Microsoft Corporation 1996-2001. All rights reserved.

Encode from files or devices to Windows Media files or streams. Supported
source file formats are .wmv, .wma, .asf, .avi., .wav. .mpg, .mp3, .bmp,
and .jpg.


Usage for I/O and statistics.

[-wme] <Windows Media Encoder session file>
    Loads an existing Windows Media Encoder session file.
[-input] <file or directory name>
    The file or directory to be encoded.
    Specify a file or directory name. If you specify a directory, supported
    files in the directory will be encoded to the output directory, using
    the same encoding settings.
    Enclose file and directory names that have spaces in quotations.
    For example: -input "c:\my sample.wmv"
[-adevice] <audio device number>
    The audio capture device to encode from.
    Use -devices to list all available capture devices.
    When encoding from devices, you must specify a duration using -duration.
[-vdevice] <video device number>
    The video capture device to encode from.
    Use -devices to list all available capture devices.
    When capturing from devices, you must specify a duration using -duration.
[-output] <file or directory name>
    The name of the output file or directory.
    If the input is a file, -output corresponds to a file name. If the input
    is a directory, -output corresponds to a directory name.
    The output directory will be created if it doesn't already exist.
    An extension is automatically appended to output files.
    (.wma for audio-only Windows Media files, and .wmv for video-only or
    audio and video Windows Media files.)
[-outputstring] <string>
    The string to be attached to every output file name for directory mode.
[-broadcast] <port>
    Broadcasts via HTTP on the port specified. The default port is 8080.
[-time] <start time> <end time>
    Specify the time segment (in msec) to be encoded. Use 'end' for
    <end time> if you want to encode to the end of the file.
[-silent]
    Prevents statistics from being displayed after encoding is finished.
[-config] <input configuration file>
    Inputs arguments from a configuration file. The default extension is .weu.
    Parameters in the file can be overridden by later arguments.
[-s_config] <output configuration file>
    Creates a configuration file. The file name extension .weu is appended
    automatically.


Usage for profiles.
    You can override parameters in a profile by appending arguments to a
    command.

[-profile] <profile code>
    Specifies a predefined profile to use in the session.

Codes and basic descriptions for the predefined profiles:
Audio/Video:
        av20: Profile_AudioVideo_Modem_28K (actual rate: 20Kbps)
        av32: Profile_AudioVideo_Modem_56K (32 Kbps)
        av100: Profile_AudioVideo_LAN_100K (100 Kbps)
        av225: Profile_AudioVideo_LAN_256K (225 Kbps)
        av350: Profile_AudioVideo_LANDSL_384K (350 Kbps)
        av450: Profile_AudioVideo_LANDSL_768K (450 Kbps)
        av700: Profile_AudioVideo_NearBroadcast_700K (700 Kbps)
        av1400: Profile_AudioVideo_NearBroadcast_1400K (1400 Kbps)
        av350pal: Profile_AudioVideo_Broadband_PAL_384K (350 Kbps)
        av700pal: Profile_AudioVideo_NearBroadcast_PAL_700K (700 Kbps)
        av100_2p: Profile_AudioVideo_LAN_100K_2Pass (100 Kbps)
        av350_2p: Profile_AudioVideo_LANDSL_384K_2Pass (350 Kbps)
        av600vbr: Profile_AudioVideo_FilmVBR_600K (600 Kbps)
        avq97vbr: Profile_AudioVideo_FilmVBR_Quality97 (Quality 97)

Audio-only:
        a20_1: Profile_AudioOnly_FMRadioMono_28K (20 Kbps)
        a20_2: Profile_AudioOnly_FMRadioStereo_28K (20 Kbps)
        a32: Profile_AudioOnly_Modem_56K (32 Kbps)
        a48: Profile_AudioOnly_NearCDQuality_48K (48 Kbps)
        a64: Profile_AudioOnly_CDQuality_64K (64 Kbps)
        a96: Profile_AudioOnly_CDAudiophileQuality_96K (96 Kbps)
        a128: Profile_AudioOnly_CDAudiophileQuality_128K (128 Kbps)

Video-only:
        v20: Profile_VideoOnly_Modem_28K (20 Kbps)
        v32: Profile_VideoOnly_Modem_56K (32 Kbps)

[-loadprofile] <profile file name>
    Specifies a Windows Media Encoder or custom profile to use.


Usage for audio settings.

[-a_codec] <codec index>
    Audio codec to be used. Use -a_codecs to list available codecs.
    Specify codec index:
    WMA9STD: Windows Media Audio 9 (default).
    WMA9PRO: Windows Media Audio 9 Professional
    WMSP9:  Windows Media Audio 9 Voice
    WMA9LSL:  Windows Media Audio 9 Lossless; -a_mode 2 required
    PCM: No compression
[-a_codecs]
    Lists all audio codecs.
[-a_content] <mode>
    Audio content mode for the Windows Media Audio v9 Voice codec.
    0 = No special mode for the audio content (default)
    1 = Speech mode
    2 = Mixed (speech and music) mode (also requires -a_contentedl)
    You must also specify the Windows Media Audio v9 Voice codec.
[-a_contentedl] <file name>
    Specifies the places in audio content where music starts and ends. To do
    this, you must first create an optimization definition file. You
    must specify the Windows Media Audio Voice codec and -a_content 2 when
    when you use the -a_contentedl option.
[-a_folddown6to2] <surround mix> <center mix> <LFE>
    Fold-down coefficients for multichannel audio. Use whole numbers only.
    Values will be converted to negative numbers. Valid numbers are 0 to 144.
    For example, -a_folddown6to2 10 3 3
[-a_formats]
    Lists all audio formats for each codec.
[-a_mode] <mode_number>
    Audio encoding to be used.
    0: 1-pass CBR (default).
    1: 2-pass CBR.
    2: Quality-based VBR.
    3: Bit rate-based VBR (two-pass).
    4: Bit rate-based peak VBR (two-pass).
[-a_peakbitrate] <peak bit rate>
    Specifies the peak bit rate in bits per second for peak bit rate-based
    VBR for audio. If not specified, the peak bit rate is 1.5 times the
    audio bit rate.
[-a_peakbuffer] <peak buffer>
    Buffer in msec for audio with peak bit rate-based VBR. If not specified,
    the default of 3000 msec is used.
[-a_setting] <setting>
    Specifies the formats for audio setting.
    Use -a_formats to list supported audio formats for each codec.

    -a_setting Bitrate_SamplingRate_Channels. For example, -a_setting 48_44_2
    specifies 48 Kbps, 44 kHz, and two channels. The default is 64_44_2.

    If you use quality-based VBR: -a_setting Qxx_SamplingRate_Channels.
    For example, -a_setting Q90_44_2 specifies a quality level of 90, 44 kHz,
    and 2 channels.

    If you use the Windows Media Audio Professional 9:
    -a_setting Bitrate_SamplingRate_Channels_BitDepth.
    For example, -a_setting 250_44_2_24 specifies 250 Kbps, 44 kHz,
    two channels, and 24-bit encoding. Use either 16- or 24-bit encoding.
    24-bit is the default.

    If you use the Windows Media Audio 9 Lossless codec:
    -a_setting Qxx_SamplingRate_Channels_BitDepth. For example,
    -a_setting Q100_44_2_24 specifies VBR Quality 100, 44 kHz, two channel,
    24-bit encoding. (Quality-based VBR and a quality level of 100 is
    required with this codec.)
[-audioonly]
    Encodes the audio portion of the stream only.




Usage for video settings.

[-v_codec] <codec index>
    Video codec to be used. Use -v_codecs to list available video codecs.
    Specify codec index:
      WMV7: Windows Media Video 7.
      WMV8: Windows Media Video 8.1.
      WMV9: Windows Media Video 9 (default).
      WMS9: Windows Media Video Screen 9.
      MP41: ISO MPEG-4 Video v1
      UNCOMP: Full frames (uncompressed)
[-v_width] <width>
    Video frame width in pixels to be encoded. Default: Source video width.
[-v_height] <height>
    Video frame height in pixels to be encoded. Default: Source video height.
[-v_framerate] <rate>
    Video frame rate in floating point to be encoded. Default: 30 fps.
[-v_keydist] <time>
    Key frame distance in seconds for video. Default: 10 seconds.
[-v_preproc] <filter number>
    Video preprocessing for certain input sources.
    0: None (for progressive video input).
    1: Deinterlace but preserve the size.
      For example, 640x480x30 interlace to 640x480x30 progressive.
    2: Deinterlace but halve the size.
      For example, 640x480x30 interlace to 320x240x30 progressive.
    3: Deinterlace, halve the size, and double the frame rate.
      For example, 640x480x30 interlace to 320x240x60 progressive.
    4: Deinterlace, halve vertical size, and double frame rate.
      For example, 320x480x30 interlace to 320x240x60 progressive.
    5: Inverse telecine from 30fps to 24fps.
    6: Inverse telecine - First field is top field with AA telecine pattern.
    7: Inverse telecine - First field is top field with BB telecine pattern.
    8: Inverse telecine - First field is top field with BC telecine pattern.
    9: Inverse telecine - First field is top field with CD telecine pattern.
    10:Inverse telecine - First field is top field with DD telecine pattern.
    11:Inverse telecine - First field is bottom field with AA telecine
      pattern.
    12:Inverse telecine - First field is bottom field with BB telecine
      pattern.
    13:Inverse telecine - First field is bottom field with BC telecine
      pattern.
    14:Inverse telecine - First field is bottom field with CD telecine
      pattern.
    15:Inverse telecine - First field is bottom field with DD telecine
      pattern.
    16:Interlaced encoding.
    17:Interlaced encoding - First field is top field.
    18:Interlaced encoding - First field is bottom field.
    Default: 0: None.
[-v_clip] <left> <top> <right> <bottom>
    The region of the image (with respect to source) to be clipped/encoded.
    If the right is 0 or greater than width, it is ignored and re-assigned
    to width. If the bottom is 0 or greater than height, it is ignored and
    re-assigned to height.
[-v_mode] <mode number>
    Video encoding to be used.
    0: 1-pass CBR (default).
    1: 2-pass CBR.
    2: Quality-based VBR.
    3: Bit rate-based VBR (two-pass).
    4: Peak bit rate-based VBR (two-pass).
[-v_bitrate] <bit rate>
    Video bit rate in bits per second to be encoded. Default: 250000 bps.
    Set this to 0 for audio-only coding.
[-v_buffer] <buffer>
    Delay buffer in milliseconds for video. Default: 5000 msec.
[-v_quality] <quality>
    CBR: Quality/smoothness tradeoff. 0 to 100, 0 being the smoothest.
    Default: 75.
    Quality-based VBR: Image quality for the video. Encode video to the
    specified quality, regardless of bit rate. Default: 95
[-v_peakbitrate] <peak bit rate>
    Peak bit rate in bits per second for peak bit rate-based VBR for video.
    If not specified, the peak bit rate is 1.5 times the video bit rate.
[-v_peakbuffer] <peak buffer>
    Buffer in msec for video, with peak bit rate-based VBR. If not specified,
    the default of 5000 msec is used.
[-v_performance] <performance>
    Use to adjust hardware performance settings. Possible values: 0, 20, 40,
    60, 80, and 100, with 100 representing the highest quality. If you do not
    specify a value, codec defaults are used.
[-v_profile] <device conformance>
    Specifies the category of complexity of the encoded content. Use if you
    are targeting your content for playback on a hardware device other than
    a computer. Some hardware devices only support certain categories. (Refer
    to the documentation for your device for more information.) If you do not
    add the -v_profile option to a command, the correct complexity setting is
    selected automatically during encoding. Possible values are SP (Simple),
    MP (main), or CP (complex).
[-duration] <seconds>
    Amount of time in seconds to encode. Use when sourcing from devices.
[-saveprofile] <file name>
    Saves current settings to a file for later reuse. Default file name
    extension is .prx.
[-devices]
    Lists audio and video capture devices.
[-v_codecs]
    Lists all video codecs.
[-videoonly]
    Encodes video stream only.
[-pixelratio] <x y>
    Specifies the video pixel aspect ratio.
[-pixelformat] <format>
    Specifies the video pixel format. Possible values:
    I420
    IYUV
    RGB24
    RGB32
    RGB555
    RGB565
    RGB8
    UYVY
    YUY2
    YV12
    YVU9
    YVYU
[-maxpacket] <packet size>
    Specifies the maximum packet size in bytes.
[-minpacket] <packet size>
    Specifies the minimum packet size in bytes.

[-title] <string>
    Title of the content. Enclose strings with spaces in quotations. For
    example: -title "Windows Media Sample"
[-author] <string>
[-copyright] <string>
[-description] <string>
[-rating] <string>
NOTE: The maximum string length for each one is 255.
I'm on a horse.

How-to rip into WMA-lossless w/EAC ?

Reply #2
Thank you synthetic soul,

i'm in it.

so the simple way isn't possible ?

How-to rip into WMA-lossless w/EAC ?

Reply #3
Ok. i followed the hints from soul and finally got it. here the details of the battle:

i browsed EAC to the location of the cscript.exe.

and

put this as command line options:

"C:\Program Files\Windows Media Components\Encoder\WMCmd.vbs" -input %s -output %d -a_codec WMA9LSL -a_mode 2

as easy as that !

Thank you soul !

I crosschecked the resulting .wma file with the WMPlayer encoded lossless version and they were the same in size. Yeah.

How-to rip into WMA-lossless w/EAC ?

Reply #4
Glad to hear you got it to work.  I was going to test this morning otherwise.

Your command line is as expected, but on re-reading the help I saw this section:

Code: [Select]
[-a_setting] <setting>
Specifies the formats for audio setting.
Use -a_formats to list supported audio formats for each codec.
...
If you use the Windows Media Audio 9 Lossless codec:
-a_setting Qxx_SamplingRate_Channels_BitDepth. For example,
-a_setting Q100_44_2_24 specifies VBR Quality 100, 44 kHz, two channel,
24-bit encoding. (Quality-based VBR and a quality level of 100 is
required with this codec.)

You say your results are identical, so I assume that this is not required.  Perhaps the values are auto-set according to the codec selected (Q100) and the input file (2 channel; 16 bit).

It may be interesting to do some testing with the command lines:
  • "C:\Program Files\Windows Media Components\Encoder\WMCmd.vbs" -input %s -output %d -a_codec WMA9LSL -a_mode 2
  • "C:\Program Files\Windows Media Components\Encoder\WMCmd.vbs" -input %s -output %d -a_codec WMA9LSL -a_mode 2 -a_setting Q100_44_2_16
  • "C:\Program Files\Windows Media Components\Encoder\WMCmd.vbs" -input %s -output %d -a_codec WMA9LSL -a_mode 2 -a_setting Q100_44_2_24
If I get chance I may give it a try.  I suspect the first and second will be identical.
I'm on a horse.

 

How-to rip into WMA-lossless w/EAC ?

Reply #5
Hmm, using -a_setting Q100_44_2_24 does not result in 24 bit files, only a minor increase in bitrate.  On reflection I realise that the switch is referring to the source, not the encoded file.

-a_setting Q100_44_2_16

Code: [Select]
File Size : 48 402 361 bytes
Last Modified : 2006-11-23 09:13:51
Duration : 6:25.893 (17017881 samples)
Sample Rate : 44100 Hz
Channels : 2
Bits Per Sample : 16
Bitrate : 1041 kbps
Codec : WMA
Codec Profile : WMA Lossless
Encoding : lossless

-a_setting Q100_44_2_24

Code: [Select]
File Size : 48 536 421 bytes
Last Modified : 2006-11-23 09:16:06
Duration : 6:25.893 (17017881 samples)
Sample Rate : 44100 Hz
Channels : 2
Bits Per Sample : 16
Bitrate : 1044 kbps
Codec : WMA
Codec Profile : WMA Lossless
Encoding : lossless


Using  -a_setting Q100_44_2_16 and using no  -a_setting switch do result in identical files, as suspected.
 
I'm on a horse.