Page 1 of 1

Intro movie speeds up at the end [RESOLVED]

Posted: Tue May 02, 2017 3:14 pm
by R.D.
The intro movie with the book speeds up suddenly near the end. It doesn't in original Daggerfall. This is testing with the latest code from GitHub.

I couldn't tell if the intro movie with the Emperor also has the problem. I didn't notice it but it might have been hidden since it ends with a dark screen.

Re: Intro movie speeds up at the end

Posted: Wed May 03, 2017 10:24 pm
by Interkarma
Bug confirmed. Not sure why this happens, the timing and frame deltas are read as-is from the video files. It's probably an implementation issue on my end.

I'll take a look at this sometime before 0.4 lifecycle is done.

Re: Intro movie speeds up at the end

Posted: Sun Aug 12, 2018 12:41 pm
by R.D.
Looked briefly at this.

About frame delay, it's gotten as:

frameDelay = audioBuffer.Length / sampleRate;

in VidFile.cs.

For that particular video (ANIM0000.VID), the audioBuffer.Length is read as either 925 or 740 until the end, where it is read as only 159.

I thought forcing frameDelay here to be at least 0.06712 (740 / 11025 (sampleRate) is about 0.06712) would fix it, but there must be more to it because that doesn't prevent the speed-up. Also I don't know if that frameDelay value would be appropriate for the other video files.

Re: Intro movie speeds up at the end [RESOLVED]

Posted: Wed Nov 14, 2018 2:10 pm
by R.D.
Resolved now.