yanwsh / videojs-panorama

a plugin for videojs run a full 360 degree panorama video.
http://yanwsh.github.io/videojs-panorama/
Other
483 stars 160 forks source link

What if the video is less than 360 degree? #111

Open mekya opened 6 years ago

mekya commented 6 years ago

Thank you such a great plugin. I have been using your plugin in our project.

We have realized that when we use a single camera like kodak sp 360(235 degree video), yeah it plays there is no problem about that. However it seems like objects are bending more than usual. Is it due to mapping 235 degree to 360 degree and is there a parameter that we can control this value?

Bests, A. Oguz

yanwsh commented 6 years ago

Yes,

use { minLon: 0, maxLon: 235, }

So the camera can restrict between 0 - 235 degree.

mekya commented 6 years ago

Thank you for the answer.

Yeah I have used that parameters and it limits the view of min and max longitude however camera view is being bended than usual. It is like these parameters limits the views but view is being stretched to 360 degree. It is not like the demo on github.io page. I can prepare and show you if you would like?

yanwsh commented 6 years ago

Could you send me a video to show how it looks like? yanwsh@gmail.com

mekya commented 6 years ago

Check these out

https://mekya.github.io/web_test/kodaksp360/rectangular_video.html Source video -> https://github.com/mekya/web_test/blob/master/kodaksp360/rectangular.mp4

https://github.com/mekya/web_test/blob/master/kodaksp360/fisheye_video.html Source video -> https://github.com/mekya/web_test/blob/master/kodaksp360/fisheye.mp4

I have been using kodaksp360 to create these videos.

mekya commented 6 years ago

Have you had a chance to take a look at the videos? @yanwsh