Intro movie speeds up at the end [RESOLVED]

Post Reply
R.D.
Posts: 319
Joined: Fri Oct 07, 2016 10:41 am

Intro movie speeds up at the end [RESOLVED]

Post by R.D. » Tue May 02, 2017 3:14 pm

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: 3583
Joined: Sun Mar 22, 2015 1:51 am

Re: Intro movie speeds up at the end

Post by Interkarma » Wed May 03, 2017 10:24 pm

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: 319
Joined: Fri Oct 07, 2016 10:41 am

Re: Intro movie speeds up at the end

Post by R.D. » Sun Aug 12, 2018 12:41 pm

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: 319
Joined: Fri Oct 07, 2016 10:41 am

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

Post by R.D. » Wed Nov 14, 2018 2:10 pm

Resolved now.

Post Reply