Help - Search - Members - Calendar
Full Version: Encoded file plays longer than original?!
Hydrogenaudio Forums > Lossy Audio Compression > MP3 > MP3 - General
Die Kuh macht Muh
I encoded a .wav to an .mp3 with Lame, but somehow the encoded file is about 1 minute longer than the original (60 minutes vs 61 minutes, roughly).
3 minutes into the audio, the mp3 is already several seconds ahead of the wav. This is a problem because I want to mux the mp3 into a video and things need to be in sync.

The original is 48 kHz, 16bit mono which Lame downsamples to 44100 Hz.
The settings I used were -V6 --vbr-new -q0, I am using Lame version 3.97.
I also tried -abr 64 instead of -V6 which didn't help.

The wav is only spoken words with a lot of silence in between, plus the first 26 seconds are silent. I wonder if the silent parts could be causing this?

Has anyone experienced this? Am I doing something wrong? sad.gif
kjoonlee
Hi, welcome to Hydrogenaudio! smile.gif

Hmmm.... LAME should handle 48 kHz input just fine, AFAIK.

Could you tell me which program you used to check the timing, please? Maybe it would be different with a program that fully supports VBR (VBRI headers, LAME tag, etc.) such as foobar2000.
kjoonlee
I've just checked with LAME 3.98 beta 3 and LAME 3.97. It does resample 48 kHz 16bit mono to 44.1 kHz mono, with your command line settings. Weird...

Adding --resample 48000 seems to prevent the resampling.
Die Kuh macht Muh
Thank you. It turned out to be Windows Media Player's fault. I followed your advice and installed Foobar2000 which plays the mp3s just fine.

What's funny though is that if I mux the mp3 into an .avi and play the .avi in Windows Media Player, the audio is the right speed. blink.gif

Anyhow, thanks!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.