Original project https://github.com/continue88/VRCapture - all the credit and thanks to the original author! 🙏
Capture VR screenshots as well as frames for VR video in Unity. (360 captures from 2 eyes)
- Add the
StereoCapture
prefab as a child to the camera that is acting as the left eye - Make sure the output path exists, or set it to whatever you would like
- If you want screenshots to start right away, check
Capture Start
- Start the game in the editor - when
Capture Start
is checked, screenshots will be written to the output path (this will be slow since they will be 2048x2048 each) - To make a video, use
ffmpeg
to combine the screenshots:ffmpeg.exe -framerate 60 -i Captures/frame_%%5d.jpg -c:v libx264 -profile:v high -level 4.2 -r 60 -pix_fmt yuv420p -crf 18 -preset slower MyMovie_360_TB.mp4
(windows example, I will add a OSX one as well) - The video should be playable on VR devices, still to test YouTube
- You can click-click on the
Stereo Capture (Script)
header and there will be aCapture
option - A single screenshot will be written to the output folder
- This process is quite slow especially if you are capturing at 60fps
- Post-processing can be controlled via the EnableEffects property: Example:
ColorCorrectionCurves;ToneMapping;Bloom
- This script only writes out frames -
ffmpeg
is required to join them for a video. Audio is currently not recorded.