Render Camera Preview To Image File?

Hello All,

I have just installed Unity5 and I want to render what I see in the Camera Preview window to disk as an image sequence.

Is there a button for that?
Or do I need a script?

Thanks

You’d need a script. Or some screen-recording software (on the Mac, Quicktime Player has this functionality built in).

1 Like

I recommend Fraps.

1 Like

Fraps will be fine for single screenshots. However, if you want to be able to record more than 5 minutes of gameplay WITHOUT having to pay check out OBS (Open Broadcaster Software).

Using either though will allow you to open them in any free movie editor and grab a single screenshot.

@JoeStrout : Do you have a link to the script that will export frame-by-frame as you mention?

I don’t want to screen cap, too much quality loss in compression. I just want to get the best rendered output from Unity to an image file sequence.

Any decent screen cap will let you control the quality (including no compression at all).

But… you said you wanted to get the output of the Camera Preview window. That’s a very unusual thing to want to do. If you want to run your game and capture a camera’s view to a file, then that is very common and pretty easy. Application.CaptureScreenshot is probably the easiest way. Here are some others.

1 Like

Easiest way to accomplish this is through Gif Creator on the Asset Store. Just keep in mind it’s for inside the editor.

https://www.assetstore.unity3d.com/en/#!/content/42302

There are also assets to record animated gifs when the game is being played.

https://www.assetstore.unity3d.com/en/#!/content/12437
https://www.assetstore.unity3d.com/en/#!/content/32092

Can we import the video footage of the camera in an array or a json format in any way?