Log in

View Full Version : Vdub doesn't handle audio above 2 gigs?


Kilyan
24th April 2005, 13:02
Hi!

I am making a xvid version of my home video which is in mpeg and above 3 hours.
I demuxed the audio to mp2 then to wave format 16 bit stereo 48kHz.
The video is imported in vudb with the following:

LoadPlugin("c:\utils\dvd2avi\dgdecode.dll")
mpeg2source("d:\temp\summer2k5.d2v")
Lanczos4Resize(512,384,4,8,712,562)

When adding audio in vdub, after 3 hours and 5 minutes vdub says :
"Audio sample 538423680-0 could not be read in the source. The file may be corrupted"
I am using ntfs disks. 538423680-0 sample is just an example, because it randomly errors at different points above 3 hours and five minutes.
The video is well handled, and audio is perfectly intact, and with adobe audition can be listened to the end (3 hours 18 minutes).

Perhaps vdub (latest, and tried older versions too) doens't handle audio above 2 147 483 648 byte?
I mean its 1024*1024*1024*2 must be fat32 limit in vdub or something.

Is there a way to fix/solve this problem ?

(Splitting original file is not a way)

Thanks

stephanV
24th April 2005, 22:48
WAV (like standard AVI) has a 2GB limit... so everything after 2GB in the file should be treated as corrupted. You can try to open the audio via AVS though... maybe its loser in its handling assuming the file isnt b0rked after the 2GB point anyway.

Kilyan
25th April 2005, 09:56
I know that the wave format was not implemented yesterday, but it's quite funny that there is no way to use wave files over 2 gigabyte with applications because in the prehistorical days they thought it would be big enough. I mean if audition can handle flawlessly 4-5 hours of wave material, there must be a way to use bigger wave files, no?
I don't think people working in studios with 48/96/192kHz multichannel 24/32 bit waves are limited to 2 gigabytes (If they do work with waves).

Tried to import with AviSource(), AviFileSource(), WavSource but didn't tried OpenDMLSource() yet.

Thanks for your reply.

stephanV
25th April 2005, 10:04
Originally posted by Kilyan
I know that the wave format was not implemented yesterday, but it's quite funny that there is no way to use wave files over 2 gigabyte with applications because in the prehistorical days they thought it would be big enough. I mean if audition can handle flawlessly 4-5 hours of wave material, there must be a way to use bigger wave files, no?
Its a limitation of the WAV-format, if you support WAV you dont have to support files larger than 2GB... there are always ways to work around it of course if you have time to implement that.

I suddenly remembered this: http://www.avisynth.org/Section+2%3A+AviSynth+and+frameserving#q2.9

Just demuxing the mp2 stream, putting a WAV header on it and importing it in VirtualDub or AVIsynth with WAVSource (dont forget to install the mp2acm) might be a cleaner solution. (it saves you a lot of space anyway).

The MPAsource plugin might be useful too.

Kilyan
25th April 2005, 18:28
MPAsource is always what I am using, but this time even if the mpa/mp2 was correct, vdub didn't played it at the end parts.

Inventive Software
28th April 2005, 15:09
Consulting Wikipedia, I found this:


The Resource Interchange File Format (RIFF) is a generic meta-format for storing data in tagged chunks.

The Microsoft implementation is mostly known through file formats like AVI and WAV, which both use the RIFF meta-format as their basis.



Which explains why AVI and WAV both have 2 GB limits.