INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Does Anyone Know How Music Is Saved?  (Read 1982 times)

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20063
Does Anyone Know How Music Is Saved?
« on: January 26, 2004, 04:59:35 pm »

I noticed When Doing A Binary Read Of A MP3 File The Data Is Read In As A Block Of Numbers Like

2146780345 (Max High)

And

-2147465747 (Max Low)

Does Anyone Know?

I am hoping this is an easy way to make\figure a waveform.
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

scott_r

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 306
Re:Does Anyone Know How Music Is Saved?
« Reply #1 on: January 27, 2004, 02:03:27 am »

You can't just take an MP3 and make a waveform... that's what PCM files are for. MP3's are compressed using a few different techniques, so when you look at the compressed data you cant just "see" a waveform. You need to de-compress to a PCM file in order to create a waveform (as far as I'm aware).
Google will provide an endless amount of information about how MP3's are encoded/decoded.

Scott.

ps. Anyone please correct me if i'm wrong :)
Logged

scott_r

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 306
Re:Does Anyone Know How Music Is Saved?
« Reply #2 on: January 27, 2004, 02:12:57 am »

Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20063
Re:Does Anyone Know How Music Is Saved?
« Reply #3 on: January 27, 2004, 05:40:45 am »

Quote
You can't just take an MP3 and make a waveform...

I was figureing it would not be that easy.

I did create a waveform for Wave files, since it is raw data.

the other thing i was looking at was the 4 bytes for the frame i guess they would need to not be included in the wave form.

here is some info on frame headers I saved to my server since i liked the way the pages explained it.

http://www.spartasoft.com/mpeg/index2.htm

Thanks for the info\link now if i can understand it i may play with this Idea i have more, But it looks way over my head.

I have talked to about 10 companies and they said they never thought about this, and they already know how to create wave forms.

weard
 
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

scott_r

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 306
Re:Does Anyone Know How Music Is Saved?
« Reply #4 on: January 28, 2004, 12:01:56 am »

You should be able to find some open source decoders - not sure which language you're using though - to let you pass it the mp3 and have it return a wave for you to manipulate. Probably much easier than writing your own mp3 decoder :)

Scott

ps. The link you posted was very informative... cheers.
Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20063
Re:Does Anyone Know How Music Is Saved?
« Reply #5 on: January 28, 2004, 01:05:12 pm »

I am trying to find a free mp3 to wave decoder.

wish this was in the SDK.

Maybe i can Ask J River A Question About This, Since MC Has This Why Can't I Just Use J Rivers Decoder.
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20063
Re:Does Anyone Know How Music Is Saved?
« Reply #6 on: January 28, 2004, 08:06:24 pm »

Guess that did not work.

Still have not found a free Decoder
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA
Pages: [1]   Go Up