Skip to content

Monoscopic 360° to stereoscopic 180° video

Shell
4 mo. ago

Use FFmpeg to transform a monoscopic 360° video into a side-by-side stereoscopic 180° VR format.

ffmpeg
vr
mono-360-to-stereo-180.sh
# change input file: input_360.mp4
# Use HEVC (H.265) for better compression: -c:v libx265
# Increase bitrate for better quality: -b:v 20M
ffmpeg -i input_360.mp4 -filter_complex "
[0:v]v360=input=equirect:output=fisheye:h_fov=180:v_fov=180:yaw=-45[left];
[0:v]v360=input=equirect:output=fisheye:h_fov=180:v_fov=180:yaw=45[right];
[left][right]hstack" -c:v libx264 -crf 18 -preset slow -pix_fmt yuv420p output_vr180.mp4