Page 1 of 1

Track length varies when exporting audio

Posted: Fri May 22, 2015 4:32 pm
by rambomhtri
Hi, I'm using Audacity 2.1.0 in a Windows 8.1 x64 PC, and I've found a bug.

I've imported into Audacity a FLAC audio track, which length is 4m 10s 435ms. I've exported it to mp3 (transcoding) using latest LAME version 3.99.3. The output mp3 file's length is 4m 10s 485ms.

So Audacity is adding 50ms more of silence, from the start/beginning of the song. I've noticed it cause I've zoomed in the 2 tracks (previously imported into Audacity) to compare both and hear to the possible quality loss, and I've seen that the tracks were not matching. I've used 2 output settings: best variable bitrate with standard speed and 320kbps constant bitrate. Both settings have the same result, an mp3 50ms longer.

Not big deal, but I think it's an important bug to fix, since audio sync is really important.

Thanks!

Re: Track length varies when exporting audio

Posted: Fri May 22, 2015 5:14 pm
by DVDdoug
That's a normal characteristic of MP3 encoding. As I'm sure you know, MP3 is lossy compression so there are changes...

If it's a problem, use a different format. As far as I know, AAC and OGG don't have this issue. Or, use a lossless format.

Re: Track length varies when exporting audio

Posted: Fri May 22, 2015 6:00 pm
by rambomhtri
DVDdoug wrote:That's a normal characteristic of MP3 encoding. As I'm sure you know, MP3 is lossy compression so there are changes...

If it's a problem, use a different format. As far as I know, AAC and OGG don't have this issue. Or, use a lossless format.
Yeah, MP3 is lossy, it compresses data and the sound quality worsens. But in any way the length of the track should be changed. It's logical.

I'd like to use MP3 cause I'm working with songs.

Re: Track length varies when exporting audio

Posted: Sat May 23, 2015 12:45 pm
by Gale Andrews
DVDdoug wrote:That's a normal characteristic of MP3 encoding. As I'm sure you know, MP3 is lossy compression so there are changes...

If it's a problem, use a different format. As far as I know, AAC and OGG don't have this issue. Or, use a lossless format.
AAC does add silence padding, OGG doesn't.
rambomhtri wrote:Yeah, MP3 is lossy, it compresses data and the sound quality worsens. But in any way the length of the track should be changed. It's logical.
Please see http://lame.sourceforge.net/tech-FAQ.txt.

Gale

Re: Track length varies when exporting audio

Posted: Sat May 23, 2015 3:12 pm
by rambomhtri
Gale Andrews wrote:
DVDdoug wrote:That's a normal characteristic of MP3 encoding. As I'm sure you know, MP3 is lossy compression so there are changes...

If it's a problem, use a different format. As far as I know, AAC and OGG don't have this issue. Or, use a lossless format.
AAC does add silence padding, OGG doesn't.
rambomhtri wrote:Yeah, MP3 is lossy, it compresses data and the sound quality worsens. But in any way the length of the track should be changed. It's logical.
Please see http://lame.sourceforge.net/tech-FAQ.txt.

Gale
Wow, I didn't know that. I don't understand very well why you need to add silences, but it seems to be that it's necessary in order to playback correctly and MP3?

Thank you very much for the info.