Results 1 to 11 of 11

Thread: Decoding.....

  1. #1

    Thread Starter
    Hyperactive Member Dmitri K's Avatar
    Join Date
    Sep 2002
    Location
    West Palm Beach, FL
    Posts
    444

    Decoding.....

    Does anyone know how to decode MP3 files? I'm having hard time finding anything about this.

  2. #2

  3. #3

    Thread Starter
    Hyperactive Member Dmitri K's Avatar
    Join Date
    Sep 2002
    Location
    West Palm Beach, FL
    Posts
    444
    Thanks but all the information i found at those articles is about MP3 file format and the specifications how to read the file, and I don't need that. I need to decode the mp3 back to wav file. MPEG Layer 3 decoding standards. I'm gonna take a look at the google search link you provided, maybe they have something.

  4. #4
    Junior Member
    Join Date
    Nov 2002
    Location
    @ my PC
    Posts
    27
    If you know the format of MP3 files and the format of WAV files then surely it should be easy to convert?
    [vbcode]
    Start:
    '...thinks... ...remembers... ...forgets...
    If Not gotanswer Then
    GoTo Start
    Else
    'dur - it'l never get here
    End If
    [/vbcode]

  5. #5
    Addicted Member PhilRob56's Avatar
    Join Date
    Oct 2002
    Location
    New York
    Posts
    249
    I use the LAME Encoder to decode my MP3's to wav.
    Since I have no clue how to create type libraries to interface to the LAME DLL, I just use a class file to shell the command line and capture the output. You never see a DOS box in my VB App. Works very nicely.
    Some days you're the dog,
    and some days you're the hydrant.


    VB6 Enterprise

  6. #6

    Thread Starter
    Hyperactive Member Dmitri K's Avatar
    Join Date
    Sep 2002
    Location
    West Palm Beach, FL
    Posts
    444
    PhilRob, I use lame dll to encode them, I had no idea you could decode as well using same lame dll. I do have a full 3.92 version c source, but it's so huge, I haven't had time to look thru it. Can you show me some examples how to decode mp3 files? thanks.

  7. #7
    Addicted Member PhilRob56's Avatar
    Join Date
    Oct 2002
    Location
    New York
    Posts
    249
    To decode an MP3 using the LAME.EXE at the command line:

    LAME.EXE --decode --resample 44.1 MyMP3.MP3 MpMP3.WAV

    Note:
    The --resample 44.1 is critical. If you skip this switch, it will create a wav but it will be unreadable by any media player. And although there are many frequencies to resample to, 44.1 is correct for a wav file I believe.

    Don't forget to use the double dashes! --

    Some days you're the dog,
    and some days you're the hydrant.


    VB6 Enterprise

  8. #8

    Thread Starter
    Hyperactive Member Dmitri K's Avatar
    Join Date
    Sep 2002
    Location
    West Palm Beach, FL
    Posts
    444
    Any way to do it with a DLL? I'm not using .exe, just lame_enc.dll

  9. #9
    Addicted Member PhilRob56's Avatar
    Join Date
    Oct 2002
    Location
    New York
    Posts
    249
    My problem was that I could not find any good examples of using the LAME Dll. That's why I cheated and went for the command line.

    I'll have a search around see what I can find. Maybe you can direct me to the source that you use in VB to do the encoding?
    Some days you're the dog,
    and some days you're the hydrant.


    VB6 Enterprise

  10. #10

    Thread Starter
    Hyperactive Member Dmitri K's Avatar
    Join Date
    Sep 2002
    Location
    West Palm Beach, FL
    Posts
    444
    hmm, so do you think lame_Enc.dll has all the powers of lame.exe? I'll try to browse thru the source and see how to pass a decoding commands to the dll.

  11. #11
    Addicted Member PhilRob56's Avatar
    Join Date
    Oct 2002
    Location
    New York
    Posts
    249
    I cannot find anything (or anybody) that appears to be using the LAME DLL for decoding..well apart from other programs where you cannot get the source.

    Looking at the Manual, there does not seem to be a variable that you can set to do the decode. All of the values are for encoding only.

    The ability to decode was added with version 3.6x so it's been around for some time...perhaps it is a function of the EXE and not the DLL?

    Still, I'll keep looking....
    Some days you're the dog,
    and some days you're the hydrant.


    VB6 Enterprise

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width