Emulator Issues #4064
AVI dumping assumes constant frame rate
AVI dumping assumes a constant (60fps on Windows, 30fps on other platforms) frame rate. For games where the frame rate changes (e.g. Twilight Princess shifts from 60fps to 30fps just after the warning screen and logos), this results in a video which does not match real time playback and doesn't match up with sound dumps (as provided by my own patch).
Fixing this would be a prerequisite to getting synced AVI/sound dumps and, later, AVI-with-sound dumping.
First noticed with r7058, but it's likely that older version share this issue.
#1 Updated by smelenchuk over 9 years ago
I can think of two approaches to fixing this:
1) Have AddFrame trigger on a VI as opposed to a new frame being rendered; or
2) Have the AVI split on detecting a new target frame rate.
Considering AVIDump::AddFrame is called from the video plugins' Render function, 1) would require some reworking of where it's called. 2) would require info on what frame rate the game is running at.
#2 Updated by smelenchuk over 9 years ago
The attached patch dumps frames on every VI. (It also selects the output frame rate based on NTSC/PAL properly.)