VOGONS


Codec used for captured videos

Topic actions

Reply 40 of 43, by Kippesoep

User metadata
Rank Oldbie
Rank
Oldbie

DOSBox runs at 70fps to match the refresh rate of an average DOS system. I suppose you could change it by setting the appropriate clock constant in int10_modes.cpp (haven't tried it), but it'd be a bad idea.

What happens when frameskip is 1 is that the video is stored at 35fps, but the AVI header still has 70fps set. You can fix the AVI file through VirtualDub's HEX editor (but then, you could simply use the "decimate by 2" option either).

My site: Ramblings on mostly tech stuff.

Reply 41 of 43, by phaeron

User metadata
Rank Newbie
Rank
Newbie

There is some CPU overhead in Windows Media Player to avoid visible tearing; this overhead is proportional to the window height and does not decrease with a faster CPU. It can be significant for a full-screen video, but should be very minimal when the player window is shrunk. This overhead is higher for DOSBox-recorded videos than regular videos due to the high frame rate.

For videos with a large frame size, there is also significant additional overhead to convert the video to 16-bit RGB or 32-bit RGB, since the ZMBV codec only supports 24-bit decoding. DirectShow's Color Space Converter is terrible at this (disassembly is showing unoptimized scalar code with a partial register stall per pixel) and on a 640x480 video VTune is showing the 24->32 routine in quartz.dll taking as much time as the ZMBV decoder. Implementing direct 16-bit and 32-bit decoding in ZMBV would fix this problem and shouldn't be too difficult.

Finally, when nothing is changing on screen, DOSBox is writing out frames that have no changes, but are still 12 bytes in size. If these can be written as true zero-byte null frames, it may allow video players to bypass the decoder entirely for those frames and improve playback performance when the game changes the screen less frequently than 70 fps.

Reply 42 of 43, by Harekiet

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Or you can just use a decent media player like media player classic that can do hardware stretching of rgb surfaces

Reply 43 of 43, by phaeron

User metadata
Rank Newbie
Rank
Newbie

It will still be converted on the CPU. There are no modern video cards that support 24-bit RGB for either DirectDraw surfaces or Direct3D textures. You can verify this in the DirectX caps bits viewer.