Created
September 11, 2023 16:35
-
-
Save jo-chemla/a92a54ea06d0a55c9caf62bb532e6f69 to your computer and use it in GitHub Desktop.
Ffmpeg commands using v360 filter to convert between equirectangular equirect cubemap persp etc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ffmpeg combo: equirect-to-cubemap (standard 6 faces + yaw:45° 4 horiz faces) | |
ffmpeg -i input.mp4 -filter_complex [0:v]split=2[in1][in2];[in1]v360=equirect:c3x2:out_forder=frblud,untile=3x2[out1];[in2]v360=equirect:c6x1:out_forder=frblud:yaw=45,crop=4/6*in_w:in_h:0:0,untile=4x1[out2] -map [out1] cubemap2\cubemap_frblud_%05d.jpg -map [out2] cubemap2\cubemap_45_frbl_%05d.jpg | |
# from equirectangular to standard cubemap | |
ffmpeg -i input.mp4 -vf "v360=equirect:c3x2:out_forder=frblud,untile=3x2" cubemap\cubemap_frblud_%05d.jpg | |
# from equirectangular to standard yaw:45° cubemap (no top/bottom) | |
ffmpeg -i input.mp4 -filter_complex "v360=equirect:c6x1:out_forder=frblud:yaw=45,crop=4/6*in_w:in_h:0:0,untile=4x1" cubemap\cubemap_45_frbl_%05d.jpg | |
# from equirectangular to 90° rectilinear persp | |
ffmpeg -i input.mp4 -vf "v360=e:rectilinear:h_fov=90:v_fov=90" output.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment