may24
24th July 2008, 11:08
Hi everyone,
I got the following problem:
I got this flv movie (VP6) which I'd like to reencode to XVID.
So I got the latest FFDShow tryout + FLV Extract and demuxed the video.
After that I wrote a small avs scrip and opend it in VirtualDubMod.
The total display time of the Video (29,325 fps): 8:11.858 sec.
The total running time of the Audio (cbr 128): 7:59.424 sec.
There is a mismatch of nearly 12 sec !
According to Moitah there can be "an incorrect duration in your audio player. This is because FLV Extract doesn't generate a VBR header". But the mp3 Audio track is CBR.
However, I tried to write a new VBR header using foobar 2k (as suggested by Moita), but without any effect.
If you playback the original Video it's absolutely in sync. I tried FLV Player as well as MPC.
So I changed the FPS to match the running time of the audio track. But the result was that in many scenes the audio and video doesn't match and it's getting more and more worse the longer you watch it.
The next approarch was more successfull. Using Goldwave I stretched the Audio track to the playing time of the Video - remuxed it and everything was fine.
The donwside of this method is:
a) you'll need to convert the audio from mp3 -> wav -> time stretch -> wav -> mp3.
b) due to the timestreching algorithm you significantly loose quality (using FFT + Oscilator Synthesis) or suffer a pitch shift.
But the Video/Audio was perfectly in sync before. Plus I still have the timecodes from FLV extract.
Is there a way to use these codes to resync mp3 to Video again ?
What causes the (huge) difference in the length of the streams ?
Is there another sollution ?
I got the following problem:
I got this flv movie (VP6) which I'd like to reencode to XVID.
So I got the latest FFDShow tryout + FLV Extract and demuxed the video.
After that I wrote a small avs scrip and opend it in VirtualDubMod.
The total display time of the Video (29,325 fps): 8:11.858 sec.
The total running time of the Audio (cbr 128): 7:59.424 sec.
There is a mismatch of nearly 12 sec !
According to Moitah there can be "an incorrect duration in your audio player. This is because FLV Extract doesn't generate a VBR header". But the mp3 Audio track is CBR.
However, I tried to write a new VBR header using foobar 2k (as suggested by Moita), but without any effect.
If you playback the original Video it's absolutely in sync. I tried FLV Player as well as MPC.
So I changed the FPS to match the running time of the audio track. But the result was that in many scenes the audio and video doesn't match and it's getting more and more worse the longer you watch it.
The next approarch was more successfull. Using Goldwave I stretched the Audio track to the playing time of the Video - remuxed it and everything was fine.
The donwside of this method is:
a) you'll need to convert the audio from mp3 -> wav -> time stretch -> wav -> mp3.
b) due to the timestreching algorithm you significantly loose quality (using FFT + Oscilator Synthesis) or suffer a pitch shift.
But the Video/Audio was perfectly in sync before. Plus I still have the timecodes from FLV extract.
Is there a way to use these codes to resync mp3 to Video again ?
What causes the (huge) difference in the length of the streams ?
Is there another sollution ?