Log in

View Full Version : Does FFmpegSource need EnsureVBRMP3sync?


AlanHK
1st August 2010, 06:51
When opening an AVI with a VBR audio, I do

AVISource("Pilot.avi")
EnsureVBRMP3sync()

Which works as advertised, but creates long delays when reseeking in VDub.

If I use:
FFmpegSource2("Pilot.avi",atrack=1)
Audio seems to stay in sync without reseeking.

So am I correct in assuming that the .ffindex file makes the EnsureVBRMP3sync() unnecessary?

IanB
2nd August 2010, 00:27
Yes, having an accurate index can avoid the need for the brute force approach used by EnsureVBRMP3sync().

EnsureVBRMP3sync() will reset back to the start on any backwards seek and linearly read forwards to the desired position accessing every sample along the way. On forward seeks it linearly read forwards to the desired position accessing every sample along the way.