kingmob
2nd September 2004, 15:55
I have a video, which for some strange reason isn't synchronised anymore. It used to be, but i must've been careless (probalby during a fps conversion) and now it's totally f'ed.
So i tought i'd change the sampling rate and hope the change in pitch isn't too bad. So i tried this:
vid = AviSource("movie.avi").AssumeSampleRate(40518)
return vid
The problem is, that the sound is much shorter than the video, by as much as 6 minutes. But instead of making the gap smaller, this actually makes it larger? This while virtualdub reports that the sound length is now almost exactly the movie length.
So it ought maybe the silence at the end was somehow taken, so i tried this:
vid = AviSource("movie.avi")
audio = vid.Trim(0,50970).AssumeSampleRate(40518)
audiodub(vid,audio)
But this yields the exact same results, as it should.
What am I doing wrong here?!
So i tought i'd change the sampling rate and hope the change in pitch isn't too bad. So i tried this:
vid = AviSource("movie.avi").AssumeSampleRate(40518)
return vid
The problem is, that the sound is much shorter than the video, by as much as 6 minutes. But instead of making the gap smaller, this actually makes it larger? This while virtualdub reports that the sound length is now almost exactly the movie length.
So it ought maybe the silence at the end was somehow taken, so i tried this:
vid = AviSource("movie.avi")
audio = vid.Trim(0,50970).AssumeSampleRate(40518)
audiodub(vid,audio)
But this yields the exact same results, as it should.
What am I doing wrong here?!