hanton / Fisheye

Open Source iOS 360 Degree Panorama Video Player. (HTY360Player is renamed to Fisheye)
MIT License
2.1k stars 432 forks source link

How to get a front and back of a 360 video? #26

Open TeksniOS opened 4 years ago

TeksniOS commented 4 years ago

Hey Hanton! Your library is very nice. I just love to use it. I am also working on 360 degree videos where your player works great.

However, I need to render an equirectangular video format in a normal 2D field of view, and need to extract front and back part from equirectangular 360 video.

For example:

I am developing a video player that has 3 options to select.

  1. Front Mode
  2. Back Mode
  3. 360 Mode

Here, "360 Mode" is what your library serves perfectly. However, I also need to know how to separate front and back parts from an equirectangular video.

I need to split the equirectangular video on the edge and provide a front and back view.

So my question is,

In order to do above, what sort of transformation operations are required to be performed on input video (equirectangular format), so that I can get the cropped normal field of view?

Any help would be much appreciated, Brother. Thanks.