Recording
Recording.... is an awful hack at this stage, but it lets us capture footage in the most basic sense. It will be much more heavily optimized before we announce it as an actual feature.
Warning, using thisfeature bug has a very good chance of crashing your game... but we're going to tell you how to do it anyway.
To start off, you'll need:
First off, you want to enable the setting in viewrcamera.cfg. Open up that file in the game you wish to record and set allowrecording to true. You can see our lovely warning in the file as well.
Don't forget to also match the tracker offsets and field of view in viewrcamera.cfg as well.
Now you want to boot up your game and connect ViewR.
Once you have calibration setup, be it with ARCore or with SteamVR tracking. Pressing E on your keyboard will start recording. You can tell if it's started recording by checking the game folder for a new folder with something like the current unix epoch time in millis.
In game, the user may experience a performance hit. This is caused by us writing a huge amount of data to the hard drive. This problem is sometimes remedied by moving the game to an SSD (we'll fix this before actual release). To finish recording, press E again, this is the part which may or may not crash your game. Once we're done, your folder will be filled with jpegs.
Now, click and drag the folder over ReNumber.exe. Windows will pop up with a warning, accept the warning to run the app. If you don't trust us, you can download the source, read it, and compile it yourself. ReNumber will generate a text file in your folder called input.txt.
If you haven't done so already, download ffmpeg and add it to your computer's path. Google will tell you how to add the ffmpeg folder to path.
Once that's done, you want to open powershell in that folder and run the following command.
ffmpeg -f concat -i input.txt -vf "transpose=2" -vcodec libx264 -crf 15 -pix_fmt yuv420p capture.mp4
The number after transpose specifies which direction to rotate the frames. StackOverflow kindly tells us that:
Warning, using this
To start off, you'll need:
- An android device that has ViewR installed.
- If the aforementioned device doesn't have ARCore, a tracker for your VR setup
- VR ready computer
- The pc we used had a GTX 1080, 6th gen Intel i7, and the game installed on an SSD.
- We tried it on a laptop with an external 1080, and it was quite laggy, even with an SSD.
- ReNumber
- ffmpeg
First off, you want to enable the setting in viewrcamera.cfg. Open up that file in the game you wish to record and set allowrecording to true. You can see our lovely warning in the file as well.
Don't forget to also match the tracker offsets and field of view in viewrcamera.cfg as well.
Now you want to boot up your game and connect ViewR.
Once you have calibration setup, be it with ARCore or with SteamVR tracking. Pressing E on your keyboard will start recording. You can tell if it's started recording by checking the game folder for a new folder with something like the current unix epoch time in millis.
In game, the user may experience a performance hit. This is caused by us writing a huge amount of data to the hard drive. This problem is sometimes remedied by moving the game to an SSD (we'll fix this before actual release). To finish recording, press E again, this is the part which may or may not crash your game. Once we're done, your folder will be filled with jpegs.
Now, click and drag the folder over ReNumber.exe. Windows will pop up with a warning, accept the warning to run the app. If you don't trust us, you can download the source, read it, and compile it yourself. ReNumber will generate a text file in your folder called input.txt.
If you haven't done so already, download ffmpeg and add it to your computer's path. Google will tell you how to add the ffmpeg folder to path.
Once that's done, you want to open powershell in that folder and run the following command.
ffmpeg -f concat -i input.txt -vf "transpose=2" -vcodec libx264 -crf 15 -pix_fmt yuv420p capture.mp4
The number after transpose specifies which direction to rotate the frames. StackOverflow kindly tells us that:
- 0 = 90CounterCLockwise and Vertical Flip (default)
- 1 = 90Clockwise
- 2 = 90CounterClockwise
- 3 = 90Clockwise and Vertical Flip
No comments: