Skip to content

Generate maps for conversions from spherical to equirectangular video in ffmpeg

License

Notifications You must be signed in to change notification settings

prouast/equirectangular-remap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

equirectangular-remap

Generate maps for conversions from spherical to equirectangular video in ffmpeg.

Works for videos which represent a half sphere - tested with 360fly.

Adapted from the example given for ffmpeg's RemapFilter.

Guide

Building

  1. Install ffmpeg
  2. Checkout the source of this repository
  3. Build: $ gcc projection.c -Wall -o project -lm

Running

Create maps example_x.pgm and example_y.pgm for dimensions 400 x 400:

$ ./project -x example_x.pgm -y example_y.pgm -h 400 -w 400 -r 400 -c 400 -m equirectangular --verbose

Apply the maps to the image example.jpg:

$ ffmpeg -i example.jpg -i example_x.pgm -i example_y.pgm -lavfi remap result.png

Result

Example spherical image

Example

Equirectangular result

Result

About

Generate maps for conversions from spherical to equirectangular video in ffmpeg

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages