Help - Search - Members - Calendar
Full Version: loopable wav to mp3
Hydrogenaudio Forums > Hydrogenaudio Forum > General Audio
Megelan
Hello ! smile.gif

Today I wanted to create an mp3 from a loopable-wav sound file
with the lame encoder v.3.96.1 and the following preset :

--preset standard Sourcefile Targetfile

Everything works perfect but the resulting mp3 has a very short
silence at the beginning and end of the loop.
But the original wav
file does not (I compared both audio frequences in soundforge).

So the resulting mp3 is not usefull for looping anymore :-(
I also tried other presets (cause I thought it could be a problem
of VBR) but nothing helped.

Isn't it possible to create a loopable mp3 sound from a loopable wav
sound without these silence errors at the start and end of the file ?

Thank you for any suggestions/ideas ! smile.gif
Megelan
boojum
As I understand the format (MP3), gapless does not happen, except in fobar2000. And maybe some other players. What are you playing the loop in??

You can, just play it in fb2k and select "repeat" or "repeat one" to get this effect without jimcrackery or ledgerdemain. cool.gif
Megelan
I play it in Media Player and in my game engine (using FMOD) and
also in soundforge editor there is a visible gap at the beginning and
end of the mp3 which is not in the wav file.

edit
this is what I read in another Forum

QUOTE
You can't use MP3 for loops as the header information in the file (which contains the ID3 tag info) pads out the file. This is the 'silence' that appears at the start of the loop when you look at it in an audio editor.

I spent a whole evening 'editing' gaps from an Acid project I'd done in MP3 loops (because I needed to send it to someone without much disc space) only to find they re-appear when you re-load them. Doh!

Whether this applies in other compressed formats, I don't know (ogg, MP4/aac etc) - I decided it's safer to stick to wav as the default.

Cheers

gb


and again in another forum

QUOTE
The extra added silence is part of the MP3 definition. Don't use MP3 for loops; save them as WAV instead.


marcan
enc_delay and enc_padding in mp3 header gives you the number of frames (=1/44100 sec) at the beginning and the ending of the mp3.

It works fine here
Peter
Other modern compressed formats such as Ogg Vorbis or Musepack *are* free of this problem. Why not use one of them instead ?
Megelan
I'll try the ogg stuff then... smile.gif

Which is the best encoder for ogg like lame is for mp3 ?

edit
I just found out that this is the ogg vorbis encoder
(maybe it's also the only one dunno)
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-2008 Invision Power Services, Inc.