Log in

View Full Version : edit audio embedded in ASF file without encoding


bzkod
9th April 2003, 13:51
Any1 know of a program that'll allow you to edit/replace the audio in an ASF file without re-encoding the file to mpg or avi?

I have a 30 minute asf file with horrible sound. It is easy to export it from the file as a wav and clean it up, but I can't seem to find a way to put the wav overtop/replace the sound already in the orginal.

what I CAN do, but don't want to, is export sound to wav then reencode ASF and WAV to an AVI or MPG. I'd like to keep the ASF so i don't lose any quality.

thanks

S_O
9th April 2003, 17:48
you ahve to remux your video first to avi, you can do that using AsfTools: http://www.geocities.com/myasftools/
If you´re file is using old video codecs (M$-MPEG4 v1/v2/v3) you shouldn´t have any problems to open the avi in VirtualDub. Here you simply change in the audio menu from "Direct Stream Copy" to "Full processing mode". Then you click File->save WAV and you have an uncompressed PCM wav-file which should be openable with neraly every wav editor.
After that you have to recompress the new wav file. Best thing would be mp3 using Lame (if file is 44.100kHz stereo I would do lame --alt-preset cbr 128). Then you have to add a wav header with mpa2wav: http://mukoli.free.fr/mpa2wav/
Then back in VirtualDub you change in the video menu from "Full Proccesing Mode" to "Direct Stream Copy". Same in the audio menu. In audio then you click "WAV Audio..." and select the wav file created by mpa2wav (not the one created by your wave editor. Then you can save the avi file. The video is not changed during this.