The application we’re working on right now loads the sound and video from an AVI file, synchs the video with the sound and sets the sound to loop. This works mostly fine, but we started to notice that the video loops prematurely, and truncates the last few seconds of the video. We retrieved the duration of the AudioSound with its length() method, and compared this with the duration of the video while running it in a media player. We found a discrepancy of up to 6(!) seconds, depending on the video we’d play. Looking around the references, we thought that this might be our problem (from MovieVideoCursor/MovieAudioCursor):
“Some AVI files have incorrect length values encoded into them - usually, they’re a second or two long or short. When playing such an AVI using the Movie class, you may see a slightly truncated video, or a slightly elongated video (padded with black frames). There are utilities out there to fix the length values in AVI files.”
So, can anyone offer us some advice on what to do? Is this why we’re losing the last few seconds of our video? Has anyone encountered this problem before? What are these utilities that have been used to fix AVI length values?
Thanks.