Record video/audio from scene camera

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By JoshuwayMorris

Hey there!

Looking into moving to Godot from Unity.

A project I am currently working lets a player walk around a scene. The player movement is captured and stored in an Array.

The player can then press a replay button, and the array that captured the movement is iterated through, creating the impression of replaying the player movement.

What I would like to do is capture what the camera on the scene sees as a video file. This does not have to be in real time.

I am happy for a “Converting to video, please wait…” message to be shown on screen while the video is created.

I am aware that I could capture a screenshot at each frame, and later convert each of these screenshots to an MP4, but this would not include audio from the scene.

Essentially, is it possible for me to use a script to move a player on screen, and then record this as a video with sound?

Thanks!

:bust_in_silhouette: Reply From: jgodfrey

As mentioned in your other thread, this sounds like a job for MovieWriter class.