Log in

View Full Version : How to add wave header to mp2 ?


damjang
22nd May 2002, 08:06
I search for a progs to add a wave header to an mp2 file (for use in virtualdub!). Is there a progs that do that or any other way I to do that?

thanks
damjang

Chibi Jasmin
22nd May 2002, 08:34
A simple way to do it is to use GraphEdit:

- verify that the file plays in WMP.
- Start GraphEdit
- Insert the 'File Source (Async.)' filter and select your .mp2 file (let's assume it's toto.mp2)
- Insert the 'MPEG-I Stream Splitter' (and connect its input to the output of the previous one)
- Insert the 'WAV Dest' filter (and connect its input to the output of the previous one)
- Insert the 'File writer' and choose a target filename (I suggest toto.mp2.wav so that you don't confuse with uncompressed waves)
- Hit the play button

Gorr
23rd May 2002, 09:27
Hi, Chibi Jasmin

Will this decompress the audio to pcm or just add the header?

Thanks

Nic
23rd May 2002, 11:08
Why dont you try it & find out? ;)

Seriously though, :) as long as when connecting the splitter to wav dest there isn't a filter called MPEG Audio Decoder inserted in between, then your ok.

-Nic

Chibi Jasmin
23rd May 2002, 11:45
Originally posted by Gorr
Hi, Chibi Jasmin

Will this decompress the audio to pcm or just add the header?

Thanks

The question was how to add a wav header, that's what I answered.