Comments (7)
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.
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.
@danrossi thanks a bunch for that, super helpful
from transform360.
I've updated the build documentation for Ubuntu. Hope it's going to help.
from transform360.
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.
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.
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)
- How can I build the support to generate cube faces with different resolution ? HOT 2
- FFmpeg crashes with transform360 filter on Nvidia GPU HOT 1
- Speed optimisation for transform360 filter. HOT 4
- "Cross" shaped cubemap layout. Is it possible? HOT 5
- 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!
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.