Audacity 2.0.6, slight length inconsistency

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
Xirix
Posts: 24
Joined: Sun Oct 05, 2014 5:30 am
Operating System: Windows 7

Audacity 2.0.6, slight length inconsistency

Post by Xirix » Mon Oct 06, 2014 12:18 pm

This might be nothing, but I have to check. I just recorded some stuff and took a 3 hour chunk of it with the selection thing at the bottom of the window, with 0.00.00 as start and 3.00.00 as the end, I made this into a microsoft .wav file.

Now when I put this file into Sony Vegas, it says it's 3 hours, but if I select it just in the folder its in, Windows says it's 2.59.59. I would be inclined to say this is just windows being lame, but I have 3 hour recordings made by recordpad, and both windows and vegas identify it as 3 hours.

Is this just an aesthetic bug of audacity's export process? Because if I am actually missing a second and vegas is confused on the length of the audio, it'll cause me problems down the line.

DVDdoug
Forum Crew
Posts: 9287
Joined: Fri Sep 10, 2010 11:30 pm
Operating System: Windows 10

Re: Audacity 2.0.6, slight length inconsistency

Post by DVDdoug » Mon Oct 06, 2014 2:26 pm

I'd guess it's a rounding difference. Some of the applications may be truncating and others rounding. One second resolution is not that precise. You may need to get down to milliseconds or even down to the sample count. i.e. At 44.1kHz, there are 44,100 samples per second, or 44 samples in one millisecond. If you get the resolution down to the sample count the timing will be exact and I'm sure all of the applications will agree.

Xirix
Posts: 24
Joined: Sun Oct 05, 2014 5:30 am
Operating System: Windows 7

Re: Audacity 2.0.6, slight length inconsistency

Post by Xirix » Mon Oct 06, 2014 3:22 pm

But milliseconds was part of it... it's just everything was at zeros, perhaps I should try 'length' instead of 'end'?

steve
Site Admin
Posts: 80752
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Audacity 2.0.6, slight length inconsistency

Post by steve » Mon Oct 06, 2014 3:37 pm

When Audacity exports in WAV format, the length is absolutely accurate down to the nearest sample. So if you export with a sample rate of 44100 Hz, then the exported length is accurate to the nearest 1/44100th of a second (about 0.023 milliseconds). It wouldn't surprise me if Windows reports it slightly differently.
To check that you have actually exported the right length, open a new Audacity window and import the WAV file. With the entire file selected, check the length in the Selection toolbar "Length" box.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply