FFMpeg library implementation to support mp4, avi, webm, mkv and many more video files. Can be used on login screen or wherever in game. We can use static lib or dlls depending on what you want. You can use full HD video at any fps you want.
- Render control: Video only renders when SetLoginVideoRenderEnabled(True) is called (Login phase only)
- Alpha fix: Forces fully opaque alpha via D3DRS_TEXTUREFACTOR = 0xFFFFFFFF
- Color fix: Uses texture color directly (D3DTOP_SELECTARG1 + D3DTA_TEXTURE)
- State restoration: Saves and restores all modified render states5.Video renders in OnUIRender() BEFORE UI elements6.Uses CGraphicImageTexture for texture management7.Uses CPythonGraphic::RenderTextureBox() for rendering8.Proper render state save/restore for correct colors
VideoPlayer class - Singleton FFmpeg-based video player that reads from pack files
Pack file support - Custom AVIO context to read video from .eix/.epk packs
Render integration - Video renders BEFORE UI using CGraphicImageTexture and RenderTextureBox()
Python API - Full control from Python (Open, Play, Stop, Close, Loop, RenderEnabled)
Render states - Proper alpha/color states to prevent washed-out colors
Phase control - Video only renders during Login phase via SetLoginVideoRenderEnabled()
- MP4 .mp4 H.264/AVC Best compatibility, hardware acceleration support
- WebM .webm VP8/VP9 Good compression, open format
- AVI .avi Various Legacy format, larger files
- MKV .mkv Various Flexible container