Skip to content

A equirectangular to cubemap transform for video

License

Notifications You must be signed in to change notification settings

a-ganguly/transform

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Transform

Transform is a video filter that transforms 360 video in equirectangular projection into a cubemap projection

Building

Transform is implemented as an ffmpeg video filter. To build Transform, follow these steps:

  1. Checkout the source for ffmpeg
  2. Copy vf_transform.c to the libavfilter subdirectory in ffmpeg source
  3. Edit libavfilter/allfilters.c and register the filter by adding the line: REGISTER_FILTER(TRANSFORM, transform, vf); in the video filter registration section
  4. Edit libavfilter/Makefile and add the filter to adding the line: OBJS-$(CONFIG_TRANSFORM_FILTER) += vf_transform.o in the filter section
  5. Configure and build ffmpeg as usual

Running

Check out the options for the filter by running ffmpeg -h filter=transform A typical execution would be something like ffmpeg -i input.mp4 -vf transform='input_stereo_format=MONO:w_subdivisons=4:h_subdivisons=4:max_cube_edge_length=512' output.mp4

About

A equirectangular to cubemap transform for video

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%