Page 1 of 1

IVF Cutscene Playing Too Fast?

Posted: Thu Apr 11, 2024 10:28 am
by GamingMarine
I'm not sure if this is a GZDoom bug or just a screwup on my end, but I'm posting this here in case it's the latter.

I'm currently trying to port over the cutscenes from the PS1 and Saturn ports of Hexen, but right out the gate I'm having issues with getting the intro cutscene to appear correctly. Original video here to give you an idea of how it's supposed to look: https://www.youtube.com/watch?v=HaXyiYM ... MxIGludHJv

I'm far from familiar with how FFMpeg's command line arguments work, so I'm using Jakie's tutorial (viewtopic.php?t=76355) as a sort of guide. I can get the cutscene (extracted from the PS1 port via jpsxdec) to convert just fine, and it plays back properly in ffplay.exe, but when the IVF is actually used in GZDoom, it's played at about 1.5x the speed.

Here are the files to demonstrate this, in case someone with more experience in cutscene playback than I am can help me: https://drive.google.com/file/d/1Pc-5tu ... sp=sharing

If this is actually a bug, the version of GZDoom I'm using is g4.12pre-485-gf0b96bff0.

Re: IVF Cutscene Playing Too Fast?

Posted: Fri Apr 12, 2024 10:21 am
by Chris
It seems to be a bug in GZDoom. According to a trace I made, the file has these properties: fpsnumerator=1001/fpsdenominator=20000 (which equates to 0.05005 seconds per frame, or 19.98 fps). GZDoom in turn has this check in VpxPlayer::ReadIVFHeader:

Code: Select all

        if (fpsdenominator > 1000 || fpsnumerator == 0 || fpsdenominator == 0)
        {
            // default to 30 fps if the header does not provide useful info.
            fpsdenominator = 30;
            fpsnumerator = 1;
        }
Because it has such a large denominator, GZDoom thinks the value is bad and assumes 30 fps, which makes it play ~1.5x too fast.

Re: IVF Cutscene Playing Too Fast?

Posted: Wed Apr 17, 2024 4:14 pm
by Rachael
I am moving this to bugs, this is a very important one.

Re: IVF Cutscene Playing Too Fast?

Posted: Wed Apr 17, 2024 6:22 pm
by Chris

Re: IVF Cutscene Playing Too Fast?

Posted: Wed Apr 17, 2024 6:24 pm
by Rachael
thank you, merged