GPU accelerated command line tool to convert 360 images and videos between different projections.
- Equirectangular to (connected) cube-map
- Cube-map to Equirectangular
Convert360 is available as a pip package and requires FFMpeg.
pip install convert360
convert360 -h
usage: convert360 [-h] -i FILE -o FILE [-s WIDTH HEIGHT] [-it TYPE] [-ot TYPE]
Cube-map to equiretangular conversor.
optional arguments:
-h, --help show this help message and exit
-i FILE, --input FILE
Equiretangular video to be converted.
-o FILE, --output FILE
Output cube-map video.
-s WIDTH HEIGHT, --size WIDTH HEIGHT
Cube faces size in pixels.
-it TYPE, --input-type TYPE
Input projection type.
-ot TYPE, --output-type TYPE
Output projection type.
$ convert360 -i ~/Pictures/Barcelona/sagrada-familia.jpg -o example.png -s 300 300
$ convert360 -i ~/Pictures/Barcelona/sagrada-familia.jpg -o example.png -s 300 300 -ot connected-cubemap