Comments (5)
No. But you can pair Transform360 with the native ffmpeg filters (crop/split/overlay) to achieve this.
from transform360.
Hmmm... interesting, kcircnc.
Would I be able to run both the transform filter + these cropping,splitting and overlaying operations all at the same time or would you say I have to output the transform360 cubemap std layout and then apply the other filters?
Thanks!
from transform360.
from transform360.
Thanks guys! Managed to get what I wanted :)
from transform360.
For anyone wanting a solution to this, run this on the default cubemap exported from Transform360. I spent a bit of time getting this to work, I'll see about integrating later so that it's a single step.
ffmpeg -i facebook_cubemap.mp4 -filter_complex \ "[0:v]crop=iw/3:ih/2:0:0[topA]; \ [0:v]crop=iw/3:ih/2:ow:0[topB]; \ [0:v]crop=iw/3:ih/2:ow*2:0[topC_crop]; \ [topC_crop]rotate=180*PI/180[topC]; \ color=black:512x512[empty]; \ [empty] split=6[empty1][empty2][empty3][empty4][empty5][empty6]; \ [0:v]crop=iw/3:ih/2:0:oh[bottomA_crop]; \ [bottomA_crop]rotate=180*PI/180[bottomA]; \ [0:v]crop=iw/3:ih/2:ow:oh[bottomB]; \ [0:v]crop=iw/3:ih/2:ow*2:oh[bottomC]; \ [empty1][topC][empty2][empty3]hstack=inputs=4:shortest=1[top_row]; \ [topA][bottomC][topB][bottomB]hstack=inputs=4:shortest=1[middle_row]; \ [empty4][bottomA][empty5][empty6]hstack=inputs=4:shortest=1[bottom_row]; \ [top_row][middle_row][bottom_row]vstack=3[v]" \ -map "[v]" -map 0:a? cross_cubemap.mp4
Note that I just set the [empty] spaces to be 512x512, I did a quick check to see how to define the size of these based on the input width/height but couldn't see anything. I'll try to fix this as well in an update.
from transform360.
Related Issues (20)
- FFmpeg crashes with transform360 filter on Nvidia GPU HOT 1
- Speed optimisation for transform360 filter. HOT 4
- need solution for "libopencv not found" HOT 8
- FYI: branch with Transform360 patch pre-applied. HOT 2
- Unknown filter 'transform360'. HOT 4
- Minor change in ffmpeg - need to modify step 6 for building transform360
- performance problem HOT 10
- About Input to Output Projection Format
- Can't convert from EAC_32 to EQUIRECT HOT 2
- how to compile this in macbookpro
- how to play cubmap vr video in HMD
- Error on compile ffmpeg
- Segment fault (core dumped) HOT 1
- Windows build HOT 13
- License conflict
- Updating README.md
- gcc question HOT 2
- No such filter: 'transform_v1' Error reinitializing filters!
- ‘AVFilter’ has no member named ‘init_dict’ HOT 2
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 transform360.