Convert Top-and-Bottom 3D to Side-by-Side with FFmpeg

This article explains how to convert a top-and-bottom (above-below) 3D video into a side-by-side (SBS) 3D format using FFmpeg. By utilizing FFmpeg’s built-in stereo3d video filter, you can quickly convert your 3D video files via the command line to ensure compatibility with different VR headsets, 3D TVs, and media players.

The FFmpeg Command

To perform the conversion, use the stereo3d video filter in your FFmpeg command. Open your terminal or command prompt and run the following command:

ffmpeg -i input.mp4 -vf "stereo3d=in=abl:out=sbsl" output.mp4

Command Breakdown

Handling Full-Resolution (Full-HD) 3D Videos

The standard abl and sbsl formats assume half-resolution inputs and outputs (where the image is squished to fit standard 16:9 frames). If your source file contains full-resolution frames (where each eye is at full 1080p or 4K resolution without vertical squeezing), you should use the full-resolution identifiers:

ffmpeg -i input.mp4 -vf "stereo3d=in=ab2l:out=sbs2l" output.mp4