f2e-spec icon indicating copy to clipboard operation
f2e-spec copied to clipboard

Recording performances

Open Tronic opened this issue 12 years ago • 3 comments

Record webcam video (if available), audio and input event information to be stored with a high score, or allow sharing online.

There are a number of technical difficulties that need to be solved. -Syncinc audio clocks together for a single audio track that matches the original song -A/V compression with ffmpeg (realtime in a separate thread?) -Online features (separate issue) -Input storage format for instruments and dance (if supported at all) -Disk storage format (is video stored only once and each player stored separately?)

Tronic avatar Nov 18 '12 00:11 Tronic

This is now much closer to reality as the input pass-through feature resamples audio from microphones so that it is synced with background tracks. There's still plenty of work to be done, though, and my hands are full with other things.

Tronic avatar Feb 04 '13 22:02 Tronic

There's an experimental flag to save webcam video feed to a file https://github.com/performous/performous/blob/master/game/webcam.cc#L47-L58 not quite sure if it covers all or nothing at all

Baklap4 avatar Aug 06 '21 14:08 Baklap4

Nice to see someone working on this. However, notice that you need to get audio time to timestamp video frames correctly because webcams do not actually run at a steady frame rate and writing a 30 FPS video will quickly get out of sync with the song.

Probably you need to use ffmpeg for video writing because OpenCV is very limited.

Tronic avatar Aug 06 '21 19:08 Tronic