Log in

View Full Version : now wav support in tmpgenc


ElAguila
25th March 2003, 22:09
I am trying to encode a file in tmpgenc. I separated the video into an avi and the sound into a wav file. When I load them in tmpgenc I get and error saying file tp.wav can not open or unsupported. Any suggestions on how to get rid of this error.

Kika
28th March 2003, 09:55
Maybe you have created a MP3- or AC3-File with a WAV-Header. Read the Guides to learn, how to Convert the Soundpart the right Way.

ultradna
20th April 2003, 12:06
De-Activate the Wave File Reader VFAPI Plug-in! Then it should work!

anybody
21st August 2003, 22:27
I'm having exactly the same problem with the latest TMPGenc+ v2.520.54.163 - i cannot load wave files as audio !

Loading an .mp2 file as audio works fine, but thats not really what the integrated-mp2-encoder in TMPGenc is about, isn't it ?

Deselecting "Wave File Reader" in the "Options/Enviromental Settings/VFAPI plug-in" Dialoge, does NOT solve the problem it all, it just disables wave support alltogether.

Is anyone in this Forum able to import use wave audio sources in this specific TMPGenc+ Version?

ElAguila
21st August 2003, 22:43
It doesn't work with it enabled or disabled. I have saved the wav using direct copy and using full processing mode. Same difference either way.

anybody
21st August 2003, 22:58
Strange, i did some further Tests and noticed that i can open the wave files from c:\windows\media but not the wave files that my DVD2AVI generated (decoded from AC3)...

Very Strange - perhaps it's a File size problem (my Wav's are about 1.12GB) ? I will conduct further investigations tomorrow.

I have used Wave Files in TMPGenc a thousand times before i stopped making SVCDs (due to the DVD Burner) - never had any problem like that during all that time (it it was a long time with a very large number of dvds)...

anybody
22nd August 2003, 12:05
Ok, i found the Problem:

It's a problem in the Header of the Wave File, DVD2AVI v1.77.4 does not write the size of the file in the Wave Header (Bytes 5-8), DWORD encoded.
See here for an explanation of the Wave Format Header: http://www.ringthis.com/dev/wave_format.htm

Instead it's full of only 00'00'00'00 Values.

I manually calculated the right size value (Filesize - 8, the convert to Hex) and put that in the Size Field (in the right -reversed- order) - using a Hex Editor and guess what - the file can now be properly imported into TMPGenc.


To make it work, also the "size of data chunk" in Byte 40-43 has to be corrected (slightly different -lower- value than above), otherwise TMPGenc immediately finishes processing and the Output .mp2 is only 1045bytes small.

The 'easy way' to do all that is loading the 'non-working' wave in winamp, switching the output plugin to Diskwriter and writing a non-converted Wave file with it. I did a byte by byte comparision of the source file and the resulting file and only those 2 x 4 critical bytes (values) were changed.


I wonder who's behavior has changed in recent Versions.
Either TMPGenc wasn't so strict before,
or DVD2AVI did it correctly before...

anybody
23rd August 2003, 00:34
Further testing lead to the following insights:

- Only DVD2AVI 1.77.4 is affected by the Bug
- It can be observed when Decoding AC3 Audio to WAVE
- DVD2AVI 1.76 and 1.77.3 (the official Versions) work fine
- It only happens when saving a Project using the "Save Project (Old Format" Function
- When saving a Project as a "New Format .d2v" File, the WAVE File is written correctly
- This is strange because the old/new Format stuff should only affect the .d2v file and not the audio.
- Whether or not Audio Normalization is used doesn't matter (i suspected this first).

Observed Behavior:
- Wave File Header is incomplete

Expected Behavios:
- Write a standard Compliant WAVE File