607011 / impac-t

A Breakout/Bolo clone, improved with a physics engine
15 stars 11 forks source link

Add a gameplay recorder #9

Open 607011 opened 9 years ago

607011 commented 9 years ago

Save gameplay as video on user's demand.

607011 commented 9 years ago

This should be done by running the recorder in a separate thread. The thread reads the readily rendered screen at a rate of e.g. 60 fps, encodes it and streams it to disk. See http://stackoverflow.com/questions/15914012/encoding-a-screenshot-into-a-video-using-ffmpeg for hints on how to implement this feature.

607011 commented 9 years ago

Part of the work done in branch "Recorder": audio is grabbed via loopback recording and saved to an AAC file, video is saved as an H.264 encoded MP4 file.

607011 commented 9 years ago

The Recorder class needs a complete rewrite :-(