Re: [MP3 ENCODER] Decoding with lame?
I've build already a DLL interface for the Lame Encoder (part of the CDex distribution), you might want to check it out (source code of CDex is also available at source forge). The reason for not extending the lame_enc.dll interface with the decoding libraries is more of a legal issue, the mpglib files are released under GPL, which means that we can't release the lame_enc.dll under the LGPL license anymore. If I have some spare time, maybe I'll include the source and projects file into the lame CVS repository Albert http://www.cdex.n3.net/ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] - Original Message - From: "Harald Niesche" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 02, 2000 1:41 PM Subject: Re: [MP3 ENCODER] Decoding with lame? I just checked the code -- the decoder can not be accessed using the DLL API. I was trying to find out whether the DLL can recompress MP3 files to another bitrate, but it looks like that is impossible. Anyone interested? I'd probably try to build something... Harald - Original Message - From: "Helmut Strickner" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 02, 2000 11:24 AM Subject: [MP3 ENCODER] Decoding with lame? I have read some postings on this list about the possibility to use lame for decoding. Is it possible, and if true does that apply to the exe version only?. I have not found any clue about setting the lame dll for 'decoding of an mp3 file' option. I would like to encode and play back without resorting to winamp. Thanks Helmut -- MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ ) -- MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ ) -- MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )
Re: [MP3 ENCODER] Decoding with lame?
Hi Harald Thanks for your comments. At the moment I am not quite shure what the best implementation would be. My application presently takes the line input data from the MM API and I can save it to a temp wav file (44KHz). I want to be able to play it back at any time if so desired. When I want to save (compress or encode) the temp file, I can now use the ACM or the LAME dll, works fine. My intentions are: 1) instead of using a temp wave file directly encode the line input to an MP3 file 2) to be able to playback (decode) the previously encoded MP3 file from inside the application 3) to be able to stream to a socket in the future I am not sure how this is best implemented in the lame dll, but it would be very useful. Albert Faber has implemented the record/playback option in his CDex program. Not shure how he did it. Thanks for your offer anyway Helmut - Original Message - From: Harald Niesche [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, 3 August 2000 13:28 Subject: Re: [MP3 ENCODER] Decoding with lame? What kind of API do you have in mind? There is some code in Lame that can read from several kinds of input files and delivers a buffer full of samples (actually, a left buffer and a right buffer). Would you like that, some kind of pull interface? You open the stream and then pull frames out of it as long as there are more - that would mean I just have to write a small wrapper around the original APIs and export it from the DLL. I am thinking of lameOpen, lameRead and lameClose with some options or even some intelligence that deduces the type of file automagically. More involved would be the ability to have a push interface, where you deliver some part of the stream (MP3, raw, .wav, whatever) when you feel like it, the encoder engine encodes as much data as possible and returns to you, waiting for you to deliver more data. Harald - Original Message - From: "Helmut Strickner" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 03, 2000 3:33 AM Subject: Re: [MP3 ENCODER] Decoding with lame? The question was regarding the decoding with the dll verion of lame. As Harald Niesche has observed there is no code for decoding in the dll version. It would really be very useful to implement the decode option into the dll. Anyone willing to have a go? Helmut :: I have read some postings on this list about the possibility to use lame for :: decoding. Is it possible, and if true does that apply to the exe version :: only?. I have not found any clue about setting the lame dll for 'decoding of :: an mp3 file' option. I would like to encode and play back without resorting :: to winamp. :: lame --decode Source.mp3 Destination.wav lame --decode Source.mp3 - | Program_to_read_wavs_from_stdin ... -- Mit freundlichen Grüßen Frank Klemm eMail | [EMAIL PROTECTED] home: [EMAIL PROTECTED] phone | +49 (3641) 64-2721home: +49 (3641) 390545 sMail | R.-Breitscheid-Str. 43, 07747 Jena, Germany -- MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ ) -- MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ ) -- MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ ) -- MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )
[MP3 ENCODER] Decoding with lame?
I have read some postings on this list about the possibility to use lame for decoding. Is it possible, and if true does that apply to the exe version only?. I have not found any clue about setting the lame dll for 'decoding of an mp3 file' option. I would like to encode and play back without resorting to winamp. Thanks Helmut -- MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )
Re: [MP3 ENCODER] Decoding with lame?
I just checked the code -- the decoder can not be accessed using the DLL API. I was trying to find out whether the DLL can recompress MP3 files to another bitrate, but it looks like that is impossible. Anyone interested? I'd probably try to build something... Harald - Original Message - From: "Helmut Strickner" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 02, 2000 11:24 AM Subject: [MP3 ENCODER] Decoding with lame? I have read some postings on this list about the possibility to use lame for decoding. Is it possible, and if true does that apply to the exe version only?. I have not found any clue about setting the lame dll for 'decoding of an mp3 file' option. I would like to encode and play back without resorting to winamp. Thanks Helmut -- MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ ) -- MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )
Re: [MP3 ENCODER] Decoding with lame?
:: I have read some postings on this list about the possibility to use lame for :: decoding. Is it possible, and if true does that apply to the exe version :: only?. I have not found any clue about setting the lame dll for 'decoding of :: an mp3 file' option. I would like to encode and play back without resorting :: to winamp. :: lame --decode Source.mp3 Destination.wav lame --decode Source.mp3 - | Program_to_read_wavs_from_stdin ... -- Mit freundlichen Grüßen Frank Klemm eMail | [EMAIL PROTECTED] home: [EMAIL PROTECTED] phone | +49 (3641) 64-2721home: +49 (3641) 390545 sMail | R.-Breitscheid-Str. 43, 07747 Jena, Germany -- MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )
Re: [MP3 ENCODER] Decoding with lame?
The question was regarding the decoding with the dll verion of lame. As Harald Niesche has observed there is no code for decoding in the dll version. It would really be very useful to implement the decode option into the dll. Anyone willing to have a go? Helmut :: I have read some postings on this list about the possibility to use lame for :: decoding. Is it possible, and if true does that apply to the exe version :: only?. I have not found any clue about setting the lame dll for 'decoding of :: an mp3 file' option. I would like to encode and play back without resorting :: to winamp. :: lame --decode Source.mp3 Destination.wav lame --decode Source.mp3 - | Program_to_read_wavs_from_stdin ... -- Mit freundlichen Grüßen Frank Klemm eMail | [EMAIL PROTECTED] home: [EMAIL PROTECTED] phone | +49 (3641) 64-2721home: +49 (3641) 390545 sMail | R.-Breitscheid-Str. 43, 07747 Jena, Germany -- MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ ) -- MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )
Re: [MP3 ENCODER] Decoding with lame?
What kind of API do you have in mind? There is some code in Lame that can read from several kinds of input files and delivers a buffer full of samples (actually, a left buffer and a right buffer). Would you like that, some kind of pull interface? You open the stream and then pull frames out of it as long as there are more - that would mean I just have to write a small wrapper around the original APIs and export it from the DLL. I am thinking of lameOpen, lameRead and lameClose with some options or even some intelligence that deduces the type of file automagically. More involved would be the ability to have a push interface, where you deliver some part of the stream (MP3, raw, .wav, whatever) when you feel like it, the encoder engine encodes as much data as possible and returns to you, waiting for you to deliver more data. Harald - Original Message - From: "Helmut Strickner" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 03, 2000 3:33 AM Subject: Re: [MP3 ENCODER] Decoding with lame? The question was regarding the decoding with the dll verion of lame. As Harald Niesche has observed there is no code for decoding in the dll version. It would really be very useful to implement the decode option into the dll. Anyone willing to have a go? Helmut :: I have read some postings on this list about the possibility to use lame for :: decoding. Is it possible, and if true does that apply to the exe version :: only?. I have not found any clue about setting the lame dll for 'decoding of :: an mp3 file' option. I would like to encode and play back without resorting :: to winamp. :: lame --decode Source.mp3 Destination.wav lame --decode Source.mp3 - | Program_to_read_wavs_from_stdin ... -- Mit freundlichen Grüßen Frank Klemm eMail | [EMAIL PROTECTED] home: [EMAIL PROTECTED] phone | +49 (3641) 64-2721home: +49 (3641) 390545 sMail | R.-Breitscheid-Str. 43, 07747 Jena, Germany -- MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ ) -- MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ ) -- MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )