Palm-Studios / sh3redux

SILENT HILL 3 Engine Remake in OpenGL and C++
GNU General Public License v3.0
162 stars 16 forks source link

Use of ffmpeg #59

Open Quaker762 opened 7 years ago

Quaker762 commented 7 years ago

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 commented 7 years ago

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

Quaker762 commented 7 years ago

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.