Intro movie speeds up at the end [RESOLVED]

Locked
R.D.
Posts: 379
Joined: Fri Oct 07, 2016 10:41 am

Intro movie speeds up at the end [RESOLVED]

Post 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.
Last edited by R.D. on Wed Nov 14, 2018 2:10 pm, edited 1 time in total.

User avatar
Interkarma
Posts: 7236
Joined: Sun Mar 22, 2015 1:51 am

Re: Intro movie speeds up at the end

Post 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.

R.D.
Posts: 379
Joined: Fri Oct 07, 2016 10:41 am

Re: Intro movie speeds up at the end

Post 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.

R.D.
Posts: 379
Joined: Fri Oct 07, 2016 10:41 am

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

Post by R.D. »

Resolved now.

Locked