Replay video / screenshot recording

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

Is there a way to record the gameplay to generate replay video’s in Godot?
What about screenshots?

I found this:
https://forum.godotengine.org/12164/as-in-the-game-to-take-a-screenshot

Functions like get_screen_capture() seem to have disappeared in Godot 3.0

Wouldn’t this be a nice feature?
I’m thinking of scenario’s where players could share their best moments online and compete with each other.

:bust_in_silhouette: Reply From: Bartosz

You can use get_viewport().get_texture().get_data() to get one frame, to encode them as a video you would need to utilize some kind of third party encoder