Shoutbox

Help decode .wav - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Help decode .wav (/showthread.php?tid=41743)

Help decode .wav by aNILEator on 04-01-2005 at 06:12 PM

Ok i recently got a mobile phone data transfer cable, previously i recorded a wav  ringtone using the inbuilt recorder on the phone i've copied this wav form my phone to my computer to find out how its coded (so that i can make my own tones on pc and transfer them to mobile) but i have failed, my phone is an MC 60 here is the .wav

Good luck and thankyou


RE: Help decode .wav by Ezra on 04-01-2005 at 07:10 PM

Stream 0

Media Type 0:
--------------------------
AM_MEDIA_TYPE:
majortype: MEDIATYPE_Stream {E436EB83-524F-11CE-9F53-0020AF0BA770}
subtype: MEDIASUBTYPE_WAVE {E436EB8B-524F-11CE-9F53-0020AF0BA770}
formattype: TIME_FORMAT_NONE {00000000-0000-0000-0000-000000000000}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 0


Media Type 1:
--------------------------
AM_MEDIA_TYPE:
majortype: MEDIATYPE_Stream {E436EB83-524F-11CE-9F53-0020AF0BA770}
subtype: TIME_FORMAT_NONE {00000000-0000-0000-0000-000000000000}
formattype: TIME_FORMAT_NONE {00000000-0000-0000-0000-000000000000}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 0


Maybe that helps :S

EDIT: Allright, i got it...

You need the codec : dvi_adpcm (0x0011) Intel Corporation

I'm looking for it, but havn't found it yet.

EDIT2: This codec is implemented in library C:\WINNT\System32\quartz.dll and it is a default codec for windows 2000. I don't know if it also comes with other windows versions.


RE: Help decode .wav by RaceProUK on 04-01-2005 at 07:39 PM

.WAV files are encoded using PCM. Most PCs, Windows or otherwise, should have some form of PCM decoder (software or hardware), so should just play. The same should hold true for the phone.

Unless of course, it's compressed with some fancy codec, like AVIs can be compressed using DivX.


RE: Help decode .wav by Ezra on 04-01-2005 at 08:02 PM

If found another thread about that codec I was talking about

http://www.hydrogenaudio.org/forums/lofiversion/index.php/t14141.html

EDIT: I have the codec, but still i'm unable to render the file :S


RE: Help decode .wav by TheGeek on 04-01-2005 at 08:46 PM

quote:
Originally posted by Fukafly
Ok i recently got a mobile phone data transfer cable, previously i recorded a wav  ringtone using the inbuilt recorder on the phone i've copied this wav form my phone to my computer to find out how its coded (so that i can make my own tones on pc and transfer them to mobile) but i have failed, my phone is an MC 60 here is the .wav

Good luck and thankyou

I have the same phone so i'm wondering if its possible to transfer a file without a data cable? (with a service that sends it to your phone or something?)
RE: Help decode .wav by aNILEator on 04-01-2005 at 11:45 PM

i have a program to do this similar, it takes your IP address then you go to your wap browser and type in fopr example

http://196.00.00.00/WAP/blah.mid

but transfer cable is cooler :P

I can't even play the wav on my computer. i have got a few polyphonic ringtone programs so maybe i'll have a play with them


RE: Help decode .wav by aNILEator on 05-05-2005 at 11:51 PM

the ringtone programs did shit anyone else got a hunch of how to do this?

Its really quite silly ¬_¬


RE: Help decode .wav by Concord Dawn on 05-06-2005 at 12:28 AM

quote:
Originally posted by Fukafly
the ringtone programs did shit anyone else got a hunch of how to do this?

Its really quite silly ¬_¬

RTFM perhaps? :dodgy:
RE: Help decode .wav by CookieRevised on 05-06-2005 at 02:43 AM

quote:
Originally posted by Ezra
Stream 0

Media Type 0:
--------------------------
(...)

Media Type 1:
--------------------------
(...)


Maybe that helps :S
Those things are of no use though...
quote:
Originally posted by Ezra
If found another thread about that codec I was talking about: http://www.hydrogenaudio.org/forums/lofiversion/index.php/t14141.html
That thread is about something entirly different...
quote:
Originally posted by Ezra
EDIT: I have the codec, but still i'm unable to render the file :S
Yep, because the file has errors and improper coding information:

After checking the wave file myself manually:

The "fmt" chunck in the file has wrong (missing?) values...

  • FourCC: 0x0011
  • Wave Format (codec): DVI_ADPCM *Intel Corporation
  • Channels: 1 (=mono)
  • number of frames per second (Sample Rate): 8000 Hz
  • number of bytes per second (AvgBytesPerSecond): 0 (This is stored wrong AFAIK; this shouldn't be 0 and will render many playback software useless)
  • number of bytes per frame: (Block Alignment): 0 (This is stored wrong AFAIK; this shouldn't be 0)
  • number of bits per sample (BitsPerSample): 0 bps(This is stored wrong AFAIK; this shouldn't be 0, but in this case 3 or 4)
  • number of samples per block: (SamplesPerBlock): 0 bps (This is stored wrong AFAIK; although this value can also be calculated from the above values, this shouldn't be 0 as software can and will use this value to initialize buffers)

All this makes that the file will not be playable unless you know (and fix) the proper values first within the file. To do this you need to learn about the DVI_ADPCM fileformat and DVI_ADPCM decoding/encoding format and how to hexedit a file. This probably requires much guessing and also studying the data stored within the file to determine the original and proper values.

To find specific info about this particular format (and codec) I suggest to search for the very old "riffnew.doc" from microsoft, a file which can be found in some "Programmer's References" from MS-Press. I don't have the document anymore, but I remember it describes the RIFF wave format in all its details and it is quite possible you can find old references to it by searching google for "riffnew.doc" (eg: links to "MS development kits" or "SDK's" which contain this doc).