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

Use of ffmpeg #59

Open
Quaker762 opened this issue Jan 10, 2017 · 2 comments
Open

Use of ffmpeg #59

Quaker762 opened this issue Jan 10, 2017 · 2 comments

Comments

@Quaker762
Copy link
Member

SILENT HILL 3 has a few *.000 videos inside of /data/movie/.

I have code to convert these into .mpg (MPEG1) files, but it's a bit of chore to actually get these to play in SDL (get frame, convert to texture and draw). Should we use ffmpeg for this, as it already does all of the work decoding the output? There's a tutorial on doing this with SDL, but it involves .avi instead of .mpg, though I believe it is possible to convert.

@z33ky
Copy link
Collaborator

z33ky commented Jan 10, 2017

We should be able to sample the frames FFmpeg produces (see sws_scale()) and then just upload that data as an OpenGL texture.

@Quaker762
Copy link
Member Author

Quaker762 commented Jan 10, 2017

Yeah this is what I was thinking. I'll give it a crack in a separate branch. Hopefully we can get a scene manager and two scenes (logos/video) up in the next week or two.

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

2 participants