Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for DVD cutscenes #64

Open
jan-kleks opened this issue Jun 17, 2017 · 9 comments
Open

Support for DVD cutscenes #64

jan-kleks opened this issue Jun 17, 2017 · 9 comments

Comments

@jan-kleks
Copy link

A DVD version of Claw had high-quality cutscenes which are a pain to run in-game on modern operating systems.

@ghost
Copy link

ghost commented Jun 17, 2017

jan-kleks, the DVD cutscenes is in .vbo format, I talked with pjasicek and cutscenes will be added in future, priority now is the levels and boss logics

@pjasicek
Copy link
Owner

For implementing and including video cutscenes there could be 2 possibilities for me:

  1. Use external library (ffmpeg comes to mind, classic C library) and integrate it the hard way
  2. Use SDL2 rendering capabilities to render video (I would still need to decode the video format, whatever it would be)

Another thing is that the DVD version CLAW.REZ archive has around 700 megabytes which is a bit heavyweight for distribution. But I guess I could support it to the degree that if a player would have the video files there, the cutscenes would trigger else they would just get skipped.

@pjasicek
Copy link
Owner

pjasicek commented Jun 18, 2017

From a brief look at the possibilities, it is not that hard when using SDL2 rendering. I am just worried about the resulting FPS if I would use some compressed form of the videos, like mp4 on rigs which are not that fast. To make the video seamless I would need to preprocess 2-3 frames ahead and then just swap frames at appropriate times. I am not quite sure what FPS the Claw cutscenes have, but certainly not more than 30.

I will make some simple program (in 1-2 weeks) to test my assumptions and post the results here.

@jan-kleks
Copy link
Author

Disney-style animation was often created taking into account particular frame rate and frame count. So it would be nice to get it right. Of course, we don't need a 256 color limitation, I've heard this was the case when playing the DVD cutscenes in-game.

@pjasicek
Copy link
Owner

pjasicek commented Jul 5, 2017

This miniproject plays coded videos (I tried playing *.mkv) using SDL2 as renderer:

https://github.com/pockethook/player

Since it is under GPL2 I could make a wrapper around it and incorporate it into this project. Though this would bring more library dependencies (3 libraries I think) which is hell for porting it on mobile platforms generally.

@pjasicek
Copy link
Owner

I spent a couple of hours delving into incorporating ffmpeg into SDL2. Video playback is fine, audio playback is not - I could not get it running.

Anyway, this would introduce new heavy-weight dependency (6 shared libraries) so I am not going to implement this anytime soon.

@ghost
Copy link

ghost commented Feb 24, 2019

hope than you think to include this on the future. cutscenes are the 50% of the nostalgic feeling of this game.

@jstasiak
Copy link

I spent a couple of hours delving into incorporating ffmpeg into SDL2. Video playback is fine, audio playback is not - I could not get it running.

Do you have a branch with that version of the game? I'm sure there's someone who could help with the audio playback.

@pjasicek
Copy link
Owner

I think no, I tried it locally on regular branch back then and when I could not get even get it to proof of concept stage I threw it away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants