Hi..
I?ve tried that program that you said, and my pcm file is totally corrupted.. Whish is not good at wall. To get it I use the libmad and follow the steps:
################################# make make install make minimad ./minimad <music.mp3>test.pcm ###################################
I compile that in Linux, gentoo.
I'm doing anything wrong? I'm very concern about it.
Quoting mad-dev-request@lists.mars.org:
Send mad-dev mailing list submissions to mad-dev@lists.mars.org
To subscribe or unsubscribe via the World Wide Web, visit http://www.mars.org/bin/mailman/listinfo/mad-dev or, via email, send a message with subject or body 'help' to mad-dev-request@lists.mars.org
You can reach the person managing the list at mad-dev-owner@lists.mars.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of mad-dev digest..."
Today's Topics:
- Decodding error (a19617@ualg.pt)
- Decoding error (H?vard Engebretsen)
- RE: Decodding error (Bruno Gauthier)
Message: 1 Date: Sun, 27 Nov 2005 21:38:48 +0000 From: a19617@ualg.pt Subject: [mad-dev] Decodding error To: mad-dev@lists.mars.org Message-ID: 20051127213848.qvrwkf0t68skog4g@wmail.ualg.pt Content-Type: text/plain; charset=ISO-8859-1
hi there... :) I've using libmad, and I want to decode a mp3 file, but I get the following decoding errors.
this example is for a very small mp3.
decoding error 0x0101 (lost synchronization) at byte offset 0 decoding error 0x0102 (reserved header layer value) at byte offset 67 decoding error 0x0101 (lost synchronization) at byte offset 85 decoding error 0x0101 (lost synchronization) at byte offset 104
but most of the times I get the following, this example is for another mp3 file,
decoding error 0x0101 (lost synchronization) at byte offset 0 decoding error 0x0101 (lost synchronization) at byte offset 6034865
it seems that I get errors at the begin and at the end of the offsets.
Should I worry with this ? I does it happen? If someone could help me.. ;)
thanks...
Sónia Gonçalves
Message: 2 Date: Mon, 28 Nov 2005 00:33:24 +0100 From: H?vard Engebretsen havardsp@stud.ntnu.no Subject: [mad-dev] Decoding error To: mad-dev@lists.mars.org Message-ID: 20051127233319.D925F66CA2@royk.itea.ntnu.no Content-Type: text/plain; charset="iso-8859-1"
Hi,
I dont know if this helps, but Im getting the same errors as you do when I decode small mp3 files who is just a part of a song. My experience is that these errors does not effect the decoded file. Have you tried to play the decoded .pcm file? I do so with Audacity (http://audacity.sourceforge.net/, I import .pcm file as raw audio data in the project menu) and I cant say there is anything wrong with the decoded file, at least from just listening to it.
Regards,
H.
On Nov 29, 2005, at 2:33 AM, a19617@ualg.pt wrote:
I?ve tried that program that you said, and my pcm file is totally corrupted.. Whish is not good at wall. To get it I use the libmad and follow the steps:
################################# make make install make minimad ./minimad <music.mp3>test.pcm ###################################
I compile that in Linux, gentoo.
I'm doing anything wrong? I'm very concern about it.
You'll probably need to convert the PCM file into another format for it to be much use. In Linux, you can use sox, e.g.:
sox -t raw -r $samplerate -s -w -c $channels test.pcm -t wav test.wav
where $samplerate is the sampling frequency (in Hertz) and $channels is the number of channels (1 or 2) of the original MP3. (You may also need to use the -x option if your machine is big-endian.)