WAV -> MP3 causes lag?
- Jnzk
- Artsy Bastid
- Joined: Tue Jan 28, 2003 5:30 pm
- Location: Finland
The difference is 51 ms which is about 1.2 frames, so it's not easy to say, but it feels to me like there is a slight difference in sync when I compare the videos with wav and mp3 respectively. I converted the mp3 back to wav with dBpowerAMP, but it didn't change the visualization: the lag stays. SoundForge 7.0 shows exactly the same 51 ms difference too. I don't know about the 32-bit float thing, Audacity seems to display MP3s like that although my default sample format is 16-bit.
- AbsoluteDestiny
- Joined: Wed Aug 15, 2001 1:56 pm
- Location: Oxford, UK
- Contact:
- AbsoluteDestiny
- Joined: Wed Aug 15, 2001 1:56 pm
- Location: Oxford, UK
- Contact:
- Jnzk
- Artsy Bastid
- Joined: Tue Jan 28, 2003 5:30 pm
- Location: Finland
Yay! I managed to get the original wav and the mp3 line up. I cut off 2257 samples from the beginning of the uncompressed file, added the same amount to the end and used the new edited version for compression with LAME.

The mp3 is still a little longer than the original unedited wav, but that's not a problem as far as audio sync is concerned.
I've been using the delay option in VirtualDubMod in almost all of my videos, I always thought it was extremely handy. Now I have to figure out how to add the right amount of silence to the beginning with another method.
I put a an empty audio file on the Premiere timeline and exported it after adjusting it to proper length. I ran it through BeSweet to do the 24 -> 23.976 fps conversion. Then I measured the lengths of both the 24 fps and the 23.976 file in samples. The latter was about 0.9947x as long as the former, not 0.999x as you'd suppose. Since the length of the silence is 10 seconds, doesn't this mean that I get a 43 ms error if I add this to the beginning of my edited wav file?
Heheh, I'm driving myself nuts with this.

The mp3 is still a little longer than the original unedited wav, but that's not a problem as far as audio sync is concerned.
I've been using the delay option in VirtualDubMod in almost all of my videos, I always thought it was extremely handy. Now I have to figure out how to add the right amount of silence to the beginning with another method.
I put a an empty audio file on the Premiere timeline and exported it after adjusting it to proper length. I ran it through BeSweet to do the 24 -> 23.976 fps conversion. Then I measured the lengths of both the 24 fps and the 23.976 file in samples. The latter was about 0.9947x as long as the former, not 0.999x as you'd suppose. Since the length of the silence is 10 seconds, doesn't this mean that I get a 43 ms error if I add this to the beginning of my edited wav file?
Heheh, I'm driving myself nuts with this.
- Corran
- Joined: Mon Oct 14, 2002 7:40 pm
- Contact:
Janzki wrote:I have a bumper in the beginning of the avi, and I don't want the audio to start playing right away.
>_< In certain players I notice a bumper, and when it shows up the audio starts right away. When I don't see the bumper the audio starts right away but everything is synced. I noticed this while trying to put the AMV Lethal Embrace on to a DVD. I thought you were just trying to deter people from stealing your videos...
- AbsoluteDestiny
- Joined: Wed Aug 15, 2001 1:56 pm
- Location: Oxford, UK
- Contact:
Having silent bumpers and using the 24fps method is problematic, I know, but there are ways of doing this.
I'd personally use an avisynth script such as:
vida=AVISource("yourpremiereexport.avi").AssumeFPS(23.976)
auda=WAVSource("youroriginalwavfile")
a=AudioDub(vida,auda)
vidb=AVISource("yourbumper").AssumeFPS(23.976)
audb=BlankClip(vidb, audio_rate=44100)
b=AudioDub(vidb,audb)
a+b
Then I'd put that in virtualdubmod and compress as usual. If you want the wav from that you can try exporting it from the stream if you want to process it externally.
This is presuming the audio in the original is going to sync correctly of course
I'd personally use an avisynth script such as:
vida=AVISource("yourpremiereexport.avi").AssumeFPS(23.976)
auda=WAVSource("youroriginalwavfile")
a=AudioDub(vida,auda)
vidb=AVISource("yourbumper").AssumeFPS(23.976)
audb=BlankClip(vidb, audio_rate=44100)
b=AudioDub(vidb,audb)
a+b
Then I'd put that in virtualdubmod and compress as usual. If you want the wav from that you can try exporting it from the stream if you want to process it externally.
This is presuming the audio in the original is going to sync correctly of course
- Corran
- Joined: Mon Oct 14, 2002 7:40 pm
- Contact:
- AbsoluteDestiny
- Joined: Wed Aug 15, 2001 1:56 pm
- Location: Oxford, UK
- Contact:
