Comments (2)
360 support in Gyroflow is not planned, unless someone contributes it. But I doubt it as it's a significant amount of work and a lot of refactoring would need to be done.
from gyroflow.
I can contribute telling you how to use ffmpeg to convert a fisheye image into equirectangular, and then virtualling moving around the camera by changing yaw, pitch and roll
Fisheye to equirectangular:
ffmpeg -i input.png -vf v360=fisheye:e:ih_fov=180:iv_fov=180 -y output.jpg
If you have a fisheye camera pointg up...
you will get a quite distorted image, because the ceiling is centered in the equirectangular image:
If you want the image to be seen like if camera was horizontal, you must add pitch parameter to compensate the 90° angle:
ffmpeg -i input.png -vf v360=fisheye:e:ih_fov=180:iv_fov=180:pitch=-90 -y output.jpg
... obtaining this:
You can also play with yaw and roll, but the three angles (yaw, pitch, roll) combine "weirdly" depending on which order you specify them: the default order used by ffmpeg is ypr , but you can change it adding parameter "rorder=YOUR_SEQUENCE":
ffmpeg -i input.png -vf v360=fisheye:e:ih_fov=180:iv_fov=180:pitch=-90:rorder=pry -y output.jpg
For example, to rotate camera left to put ceiling fan at center of image:
ffmpeg -i input.png -vf v360=fisheye:e:ih_fov=180:iv_fov=180:pitch=-90:yaw=-150:rorder=pry -y output.jpg
If you also want to point the camera up to the fan, you must change the pitch:
ffmpeg -i input.png -vf v360=fisheye:e:ih_fov=180:iv_fov=180:pitch=-150:yaw=-150:rorder=pry -y output.jpg
You can notice that to point the camera up again, you cannot put the pitch to 0, due to "interference" of changed yaw.
Adding roll makes things even more complex...
Although the image looks very distorted, it is intended to be viewed into a VR viewer or into a panorama viewer like this:
https://renderstuff.com/tools/360-panorama-web-viewer/
Using last image, view will appear centered on the fun right from the beginning, which makes the "navigation" in the image with panning quite uncomfortable, but if you use the first image, with flat horizon, everything goes fine.
You can make experiments with ffmpeg online using this site: https://ffmpeg.lav.io/ If you use thumbnail images for testing, it's very fast. Don't forget to change extension of input file to "." to be able to load images rather than videos.
What I am nto able to do is how to use ffmpeg to generate a PRY triplet per each frame of a video, I only know how to process single images.
from gyroflow.
Related Issues (20)
- Parse accelerometer metadata from mp4 files recorded on Android HOT 7
- Gyroflow 1.5.4 / Debian 12 (no GUI) in VMWare 17.5.0 HOT 3
- Gyroflow causing total pc crash (blue screen) when loading video HOT 2
- Missing IMU orientation / rotation in calibration page HOT 2
- Update creation date metadata time when trimming the start of the clip HOT 2
- GPU accelerated encoder doesn't support this pixel format (YUV422P10LE) HOT 1
- ask for https://github.com/AdrianEddy/rust-ffmpeg.git when running 'cargo run' HOT 1
- Rendering Not Starting
- Gyroflow crashed after import video files HOT 2
- When opening the 4K10bit4:2:2 video captured by A7R5 multiple times, the gyroflow crashes HOT 2
- Add support for ARRI cameras HOT 2
- How do you determine the timestamp of the first frame HOT 4
- Attempt at live video stabilization HOT 4
- Handling GPU drivers crash HOT 2
- Feature Request: Anamorphic Video Support in Gyroflow HOT 1
- Audio out of sync when exporting multiple trim ranges as a single video HOT 1
- prompt to delete split videos after automatically joining them HOT 2
- Final Cut Plugin issue (A plug-in is not responding) HOT 5
- 10+ Minute Long Videos take Forever To Load + Takes all the ram in DaVinci Resolve HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gyroflow.