REGoth-project / REGoth

OpenSource-Reimplementation of the zEngine, used by the game "Gothic"
GNU General Public License v3.0
630 stars 63 forks source link

Video Playback #332

Open MaxGitHubAccount opened 6 years ago

MaxGitHubAccount commented 6 years ago

Starting the game As a user I want to see the intros playing after starting the game in order to have the same feeling as in the original game with funny publisher / developer videos.

For Gothic II the first video is the Jowood Video, the second video is the Piranha Bytes video. After those videos the Main Menu is shown.

Play Intro As a user I want to see the intro by clicking "Intro spielen" in the option in the main menu in order to have the same feeling as in the original game and knowing the history of the game.

Credits As a user I want to see the intro video(s) when starting the game from the main menu and when triggering certain events by talking to NPCs like Xardas activates videos from Night of Raven in the first starting talk.

aaeberharter commented 6 years ago

Using ffprobe on one of the video files tells us that it is bink video format:

Input #0, bink, from '.\Addon_Title.bik': Duration: 00:00:09.36, start: 0.000000, bitrate: 1268 kb/s Stream #0:0[0x0]: Video: binkvideo (BIKi / 0x694B4942), yuv420p, 640x360, 25 fps, 25 tbr, 25 tbn, 25 tbc Stream #0:1[0x0]: Audio: binkaudio_dct, 44100 Hz, stereo, fltp

This format is developed by RAD game tools which offer the bink video SDK for most platforms. Since Piranha Bytes / JoWood already paid for it they could give it to us for free if we ask politely, but probably not. Luckily FFmpeg has support for decoding it (libavformat/bink.c). So we could link the required parts of FFmpeg and use this.