yanwsh / videojs-panorama

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

Dual Fisheye Support? #48

Open petergerten opened 7 years ago

petergerten commented 7 years ago

Is there any way to use this with a dual-fisheye video as input? Example from a Ricoh Theta: https://developers.theta360.com/intl/common/img/dualfisheye.jpg

yanwsh commented 7 years ago

I think yes, Do you have video for dual fisheye? If you have, please send it to me, yanwsh@gmail.com

Thank you

petergerten commented 7 years ago

This is an example video: https://www.youtube.com/watch?v=Ty24agGJwCA You can download it with one of those youtube-downloaders like https://www.onlinevideoconverter.com/video-converter

petergerten commented 7 years ago

Have you been able to try the video?

yanwsh commented 7 years ago

Oh, i didn't see your previous comment, will try this week.

nkpm commented 7 years ago

Here's another one to test with: https://www.virtad.de/prototype/video/unstitched.mp4

petergerten commented 7 years ago

Any update on this?

petergerten commented 7 years ago

I tried some tweaks on the code myself but could not get it working. Anyone else got dual fisheye video to work?

kevinyeo92 commented 7 years ago

any update on this? :)

yanwsh commented 7 years ago

still have issue with seamless.

yanwsh commented 7 years ago
screen shot 2017-02-27 at 12 41 59 am
yanwsh commented 7 years ago

You can see there has a line between two parts. This is because two fisheye have duplicate creative and i have trouble how to connect each other. Do you have any advice?

kevinyeo92 commented 7 years ago

I am planning to find a way to convert dual fish eye into fish eye or equirectangular format

yanwsh commented 7 years ago

Yes, It's not difficult to render, the problem is how to merge them seamlessly is a big trouble.

yanwsh commented 7 years ago

That's the best i can do now.

http://yanwsh.x10host.com/demo/index_dualfisheye.html

Let me know if you find any documentation to help me solve the seamless issue.

Thank you.

petergerten commented 7 years ago

That looks great already! What part of the code do I have to change to get dual fisheye working in a custom setup?

Also, you might want to take a look at this for seamless rendering: https://github.com/ricohapi/video-streaming-sample-app/blob/master/samples/common/thetaview.js

kevinyeo92 commented 7 years ago

great job yanwsh.. really appreciate your great work 👍

yanwsh commented 7 years ago

@petergerten I checked the code which you provide, it works, but still not solve the seamless issue.

screen shot 2017-02-27 at 11 13 59 pm

yanwsh commented 7 years ago

Hello, please download the latest version which support dual fisheye video. https://github.com/yanwsh/videojs-panorama/tree/master/dist

Let me know if the code work or not, might need specific configuration.

hellaspanorama commented 6 years ago

@yanwsh great job, I am trying to adopt the settings to play a dual fisheye front/back instead of up/down , but I cannot. Is it possible to modify a template according this video? http://hellaspanorama.com/test/xiaomi360/stream/dualfisheye.mp4 Thanks