Coder Social home page Coder Social logo

Comments (7)

danrossi avatar danrossi commented on May 4, 2024 2

Full install for Ubuntu

sudo apt-get install ffmpeg
sudo apt-get install libopencv-dev libxvidcore-dev
sudo apt-get install nasm libass-dev libfdk-aac-dev libvpx-dev 
cmake ./
make
sudo make install

Edit vf_transform360.c that is copied into FFmpeg/libavfilter

Change the include path to

#include "Transform360/Library/VideoFrameTransformHandler.h"
#include "Transform360/Library/VideoFrameTransformHelper.h"
cd ../FFmpeg
 ./configure --prefix=/usr/local/transform/ffmpeg --enable-gpl
 --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libvpx --enable-libx264 --enable-lib
xvid --enable-libopencv --extra-libs='-lTransform360 -lstdc++'
make
sudo make install
 /usr/local/transform/ffmpeg/bin/ffmpeg
ffmpeg version N-86781-gd8f1982 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
  configuration: --prefix=/usr/local/transform/ffmpeg --enable-gpl --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libvpx --enable-libx264 --enable-libxvid --enable-libopencv --extra-libs='-lTransform360 -lstdc++'
  libavutil      55. 67.100 / 55. 67.100
  libavcodec     57.100.104 / 57.100.104
  libavformat    57. 75.100 / 57. 75.100
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6. 95.100 /  6. 95.100
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

from transform360.

danrossi avatar danrossi commented on May 4, 2024

This OpenCV dependancy has been very vague. It seems many people are having issues.

I installed via apt and was able to properly run cmake. Trying to link to the opencv sources won't work. Trying to build opencv from sources is a dead end and throws errors. The build documentation for opencv is very vague.

sudo apt-get install libopencv-dev
cmake ./
-- Configuring done
-- Generating done
-- Build files have been written to: transform360/Transform360
make
Scanning dependencies of target Transform360
[ 33%] Building CXX object CMakeFiles/Transform360.dir/Library/VideoFrameTransform.cpp.o
[ 66%] Building CXX object CMakeFiles/Transform360.dir/Library/VideoFrameTransformHandler.cpp.o
[100%] Linking CXX static library libTransform360.a

from transform360.

qbunt avatar qbunt commented on May 4, 2024

@danrossi thanks a bunch for that, super helpful

from transform360.

evgenykuzyakov avatar evgenykuzyakov commented on May 4, 2024

I've updated the build documentation for Ubuntu. Hope it's going to help.

from transform360.

danrossi avatar danrossi commented on May 4, 2024

I haven't got that far to work out how to implement it. My encode hangs for some reason and must need some serious power.

I haven't seen any example cubemap shader rendering for three.js etc.

Coming back to it. At least it compiled.

from transform360.

evgenykuzyakov avatar evgenykuzyakov commented on May 4, 2024

We do have example 360 android player that plays equirect: https://github.com/fbsamples/360-video-player-for-android
To play cubemap video you just need to modify the geometry in Sphere.java to be 6 faces of the cube with 2 triangles each. Properly provide UV coordinates and it should work.

You can take a look at https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Tutorial/Animating_textures_in_WebGL for how to render video in webgl. It doesn't require three.js for something simple as a 360 video.

from transform360.

danrossi avatar danrossi commented on May 4, 2024

I meant a shader example for webgl. This can be implemented back into three.js. It doesn't necessarily need to be for that.

You mention uv coordinates so if it requires repacking uv's I see no example for that either.

It's ok I'll come back to it once I can make an encode transform first.

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.