NatCorder
Search…
NatCorder
Cross Platform Video Recording API for Unity Engine

Recording Made Easy

NatCorder is a lightweight video recording API for Unity Engine. Designed with a push architecture, you can record videos in three simple steps.
First, create a recorder:
1
var recorder = new GIFRecorder(
2
640, // image width
3
480, // image height
4
0.1 // frame duration
5
);
Copied!
Commit a bunch of frames to the recorder:
1
Texture2D texture;
2
...
3
// Commit frames
4
while (recording)
5
recorder.CommitFrame(texture.GetPixels32());
Copied!
And when you're all done, finish writing and use the video as you desire:
1
// Finish recording
2
var videoPath = await recorder.FinishWriting();
Copied!

Simple and Powerful

NatCorder is designed to be very flexible and lightweight. Features include:
  • Record any texture, anything that can be rendered to texture, or any pixel data.
  • Record MP4 videos, animated GIF images, JPEG image sequences, and WAV audio files.
  • Control recording quality, with parameters like bitrate and keyframe interval.
  • Record at any resolution.
  • Get path to the recorded video in device storage.
  • Record with the H.265 HEVC codec in addition to the H.264 codec for MP4.
Make sure to explore the full documentation to get a complete understanding of what the API offers.

Get NatCorder

NatCorder - Video Recording API
UnityAssetStore
NatCorder on the Unity Asset Store
Last modified 1mo ago