Created
June 28, 2024 18:22
-
-
Save bioshazard/ea1b23218a2a641d591fed82f3a12dfa to your computer and use it in GitHub Desktop.
Flatten SBS VR to Left and Right
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
INPUT=$1 | |
# TY https://github.com/paulpaul999/vr-video-notes/blob/main/vr-to-flat/README.md | |
ffmpeg -i $INPUT -filter_complex " | |
[0:v]crop=iw/2:ih:0:0[left]; | |
[0:v]crop=iw/2:ih:iw/2:0[right]; | |
[left]v360=input=hequirect:output=flat:d_fov=125:w=1920:h=1080:pitch=0[flattened_left]; | |
[right]v360=input=hequirect:output=flat:d_fov=125:w=1920:h=1080:pitch=0[flattened_right] | |
" \ | |
-map "[flattened_left]" -c:v libx265 -crf 18 -pix_fmt yuv420p flattened_left.mp4 \ | |
-map "[flattened_right]" -c:v libx265 -crf 18 -pix_fmt yuv420p flattened_right.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment