IVF Cutscene Playing Too Fast?

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
User avatar
GamingMarine
Posts: 28
Joined: Sun Oct 30, 2016 2:05 pm
Graphics Processor: nVidia (Modern GZDoom)
Location: Guarding the entrance to some base on Phobos

IVF Cutscene Playing Too Fast?

Post 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.
User avatar
Chris
Posts: 2948
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: IVF Cutscene Playing Too Fast?

Post 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.
User avatar
Rachael
Posts: 13694
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: IVF Cutscene Playing Too Fast?

Post by Rachael »

I am moving this to bugs, this is a very important one.
User avatar
Chris
Posts: 2948
Joined: Thu Jul 17, 2003 12:07 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: IVF Cutscene Playing Too Fast?

Post by Chris »

User avatar
Rachael
Posts: 13694
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: IVF Cutscene Playing Too Fast?

Post by Rachael »

thank you, merged

Return to “Closed Bugs [GZDoom]”