Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to tell if a video is 360 or panorama?

for a project I am working on I will need to automatically decide if a video is a VR (360) video, and if so what format it is. Is there any way to tell? I was thinking the metadata but could not find any information on this.

like image 554
Dreamers Org Avatar asked Dec 13 '16 00:12

Dreamers Org


People also ask

Is panorama Same as 360?

Here again you can see the pictorial difference between a 360° photo and a panorama photo. The pictures clearly show the difference. The 360° image shows the distortions of the so-called equirectangular format, whereas the panorama photo only has a wide field of view.

What is 360 video sometimes considered?

360-degree videos, also known as surround video, or immersive videos or spherical videos, are video recordings where a view in every direction is recorded at the same time, shot using an omnidirectional camera or a collection of cameras.

Why is 360 video so low quality?

A common 360º video format of 1080s has ~6 pixels per degree, which is equivalent to human eye vision of 20/200, which is terrible. This is why 1080p VR videos are seen so blurry.

What aspect ratio is 360 video?

A mono 360 video is usually a 2:1 aspect ratio equirectangular video container, common resolutions include 3840x1920, 4096x2048, 5760x2880, and 7680x3840.


2 Answers

Checking size is pointless, most properly encoded movies are using standard sizes like 1080p (1920x1080), WQHD (2560×1440) or 4K (3840×2160) because of better hardware decoding. To do that they don't have square pixels. Therefore you shouldn't guess anything by ratio.

What you should do, is check the presence of zenith and nadir. That is check for the topmost and bottommost region of image if it is the same color (assuming the most standard equirectangular projection).

This approach will need some adjusting if you have stereoscopy involved. You would have to repeat this procedure for each eye region. As a bonus, you can also deduce some stereoscopy types - for example you could differentiate top-bottom, mono and left-right. Unfortunately you couldn't guess which image is for which eye, so you would have to assume the more common situation where the left eye is usually the top or left one in the image.

like image 185
Krzysztof Bociurko Avatar answered Nov 15 '22 08:11

Krzysztof Bociurko


There is an RFC for Metadata to describe spherical data in MP4 videos:

  • https://github.com/google/spatial-media/blob/master/docs/spherical-video-v2-rfc.md

This includes the introduction of a new spherical video header box, svhd, which you can test for the presence of to detect if a video is a VR 360 video.

This is not ubiquitous yet but it does have support from key players like Google, and as you have discovered, something like this is necessary so it seems likely its use will spread.

like image 33
Mick Avatar answered Nov 15 '22 10:11

Mick