Giter Club home page Giter Club logo

Comments (5)

kcircnc avatar kcircnc commented on May 18, 2024

No. But you can pair Transform360 with the native ffmpeg filters (crop/split/overlay) to achieve this.

from transform360.

guilovsh avatar guilovsh commented on May 18, 2024

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.

puffpio avatar puffpio commented on May 18, 2024

from transform360.

guilovsh avatar guilovsh commented on May 18, 2024

Thanks guys! Managed to get what I wanted :)

from transform360.

malDuffin avatar malDuffin commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.