Transform360 is a video/image filter that transforms a 360 video from one projection to another. Usually, the input projection is equirectangular and the output projection is cubemap.
We also keep the previous version of the transform, Transform_V1, in the file vf_transform_v1.c
Advantages of Transform360
Transform360 achieves better performance in memory usage and visual quality. For many different algorithm and parameter settings in real-world applications, it also achieves better processing speed.
Transform360 allows people to have more control on the quality of the output video frames, and even the quality of different regions within a frame.
Transform360 separates the computation and transform logic from ffmpeg. Thus, people have much more flexibility to use different resources to develop the transforms, but do not need to be concerned with the details of the ffmpeg implementation/integration.
To Build And Use Transform360
Building on Ubuntu
Transform360 is implemented in C++ and is invoked by ffmpeg video filter. To build and use Transform360, follow these steps (special thanks to https://github.com/danrossi):
Checkout transform360
Checkout ffmpeg source
Install ffmpeg, dev versions of openCV and codec libraries that you need, e.g.
Transform is implemented as an ffmpeg video filter. To build Transform, follow these steps:
Checkout the source for ffmpeg.
Copy vf_transform_v1.c to the libavfilter subdirectory in ffmpeg source.
Edit libavfilter/allfilters.c and register the filter by adding the
line: extern AVFilter ff_vf_transform_v1; For older ffmpeg versions
(i.e., if you see existing filters are registered with REGISTER_FILTER),
please instead add REGISTER_FILTER(TRANSFORM_V1, transform_v1, vf);
in the video filter registration section.
Edit libavfilter/Makefile and add the filter to adding the
line: OBJS-$(CONFIG_TRANSFORM_V1_FILTER) += vf_transform_v1.o in the filter section.
Configure and build ffmpeg as usual.
Running
Check out the options for the filter by running ffmpeg -h filter=transform_v1.
Transform360
Transform360 is a video/image filter that transforms a 360 video from one projection to another. Usually, the input projection is equirectangular and the output projection is cubemap. We also keep the previous version of the transform, Transform_V1, in the file vf_transform_v1.c
Advantages of Transform360
To Build And Use Transform360
Building on Ubuntu
Transform360 is implemented in C++ and is invoked by ffmpeg video filter. To build and use Transform360, follow these steps (special thanks to https://github.com/danrossi):
transform360ffmpegsourceTransform360folder:vf_transform360.cto thelibavfiltersubdirectory in ffmpeg source.libavfilter/allfilters.cand register the filter by adding the following line in the video filter registration section:For older ffmpeg versions (i.e., if you see existing filters are registered with REGISTER_FILTER), please instead add
libavfilter/Makefileand add the filter to adding the following line in the filter section:vf_transform360.cinlibavfilterfolderChange the include path from
to
./ffmpegor by installing it withmake installRunning
Check out the options for the filter by running
ffmpeg -h filter=transform360.A typical example looks something like:
To Build And Use Transform_V1
Building
Transform is implemented as an ffmpeg video filter. To build Transform, follow these steps:
vf_transform_v1.cto the libavfilter subdirectory in ffmpeg source.libavfilter/allfilters.cand register the filter by adding the line:extern AVFilter ff_vf_transform_v1;For older ffmpeg versions (i.e., if you see existing filters are registered with REGISTER_FILTER), please instead addREGISTER_FILTER(TRANSFORM_V1, transform_v1, vf);in the video filter registration section.libavfilter/Makefileand add the filter to adding the line:OBJS-$(CONFIG_TRANSFORM_V1_FILTER) += vf_transform_v1.oin the filter section.Running
Check out the options for the filter by running
ffmpeg -h filter=transform_v1.A typical example looks something like:
License
Transform360 and Transform_V1 are BSD licensed, as found in the LICENSE file.