Creating a video from Unity

Has anyone tried to create a video from the rendered output in Unity.

I would like to be able to create replays of my game, and upload the replay to youtube or another video sharing site. I guess i can use EncodeToPNG and friends to get one frame, but has anyone tried to actually create a movie on the fly from the extracted screenshots?

That'd be great! I was hoping it would be possible to throw the unity video output directly into a stream, like VLC can do either to a unencoded video, encoded video, used as a video input to recording devices or to any receiving video stream host. Too bad no answers on this even up to today!

I ended up making an in-game record/playback functionality for the replay functionality in our game. Being a free webgame it kind of makes sense, as it would mean anyone watching a replay would already be in the game, ready to play :)

Hi, could I ask you if you found any other way to create replays and to upload the unity video output directly ? Making it easier for players to publish their achievements.. Thanks in advance.

@Vini, no. I ended up making an in-game replay system instead.

11 Answers

11

OBSProject http://obsproject.com/ is free, open source, and records high quality video with small file sizes.

Perfect! Thanks a lot!

This is the best solution in my opinion - it is very flexible, is FREE, and works out of the box for Windows users! Thanks for the headsup!

Thanks this looks really promising. Looks like they're rewriting it from scratch with new features

Just tried the latest version released yesterday and it is super nice.

Use Screenflow, Screenflick, Snapz Pro, etc. if you're using OS X, or some equivalent app if you're on Windows. You can use this script on the wiki, but that's not really appropriate for standard gameplay since it changes the timescale to get a perfectly even framerate.

I was thinking more along the lines to have it integrated in the game so that it can be done effortlessly by players

Auto-export from the game would be cool. For video capture, fraps is the best "equivalent app ... on Windows" that I was able to find.

new link for the script because the wiki moved: http://wiki.unity3d.com/index.php/ScreenShotMovie

use fraps software its good FPS recorder . www.fraps.com/download.php

FRAPS certainly works well for fullscreen games. Have not tried WebPlayer.

Hi!

There’s another option… We’ve written a fast capture plugin that integrates directly into Unity to allow you to make captures in the editor or in a build.

The plugin is called AVPro Movie Capture can you can download a demo and view the documentation on the webpage.

-Andrew

I've spent too little time on unity answers lately, and didn't see this until now, but it is exactly what I was looking for back in 2010. Don't need it right now though, but I'll keep it in mind :)

If you are doing your scripting in c# you probably want to do something similar to this:

http://stackoverflow.com/questions/397754/record-video-of-screen-using-net-technologies

Yep, looks promising, although it doesn't actually provide a solution :)

Sorry but Fraps will not “see” games that run in Unity. I am currently testing a browser-based Unity game and neither Screenshots or Movies work using Fraps. Fraps works fine in everything else though…go figure.

I need it to take screenshots & movies for bug reporting back to the developers.

TQQdles™,

Dolnor Numbwit
Eternal Testing Newbie

You can always set up Fraps to use the DWM-Interface, which makes Fraps record everything shown on the Windows Vista / Windows 7-Desktop.

I checked the Frap website but I believe you have to pay to remove the watermark.
I then tried the NSR software…

It seems to work fine at
29 FPS
1440 x 900
no watermark
recorded my other programs and Unity game play fine.
which is ideal for my requirements.
(One issue though, it seems to have problems recording videos longer than 3 minutes but I just edit the highlights accordingly)

PS
Just wanted to give a little piece back. What Unity and you forum guys are doing is great. I can’t code for Jack. I asked 1 question on this forum and got an immediate and correct answer.
FANTASTIC JOB
KEEP UP THE GOOD WORK UNITY CREW!!!

I wrote up a post about how to do this for Game Audio professionals. It covers fraps, reflektor, and other options as well as how to encode it for use in a DAW.
http://www.playdotsound.com/portfolio-item/video-for-game-audio-capturing-and-converting-video-files-for-use-within-your-daw/

I know that this question is old but i m answering for anyone who is still messing around with unity and game replays … Give Everplay a chance, great tool with even greater features

Check out Everyplay. It was built specifically for this as a third party tool, before Unity bought them and brought it in-house.

Ya don’t do any of these suggestions. Use the built in package called “Recorder”. (as of 2018. something)