# A way to save 360° panorama video

What is the best way to save video from faces of a cube? The render can produce 6 squares (90°x90°) of 1024x1024 resolution. Faces oriented along axies and only position is changed continuously. I want to save them into the video stream and then play back them into 360° panorama viewver by means of projection on the cube or using cubemap (OpenGL ES).

What is the best codec suitable and what is the best way to save video for above purposes? Is it better to use six separate synchronized video streams or, instead, to enclose all six faces into the one?

If cube is unfolded into six square bitmaps and composed into a 3x2 (or 2x3) rectangle, then it is possible to get artifacts on glued inner edges and on the outer edge of the resulting rectangle. I sure it may depend on codec used to compress/decompress resulting video.

In case of 6 separate video streams it is possible to render only 5 of 6 (or 3 of 6 in case of only pitch and yaw (but not roll) rotations are possible) faces of cube, i.e. only visible ones. But on the other hand it may be waste of resources to support six separate streams due to necessity of attendant metainformation handling.

What are expected performance issues inherent to different approaches?

The relevant platform is average home desktop PC.

• There is a lack of 360 panorama, cubemap (!), codec and other relevant tags on computergraphics.stackexchange.com. – Tomilov Anatoliy Jul 28 '17 at 13:40
• If you do not use the mobile interface then you can make new tags if you wish. – joojaa Jul 28 '17 at 14:43