Hey everyone,
We wanted to share with you some FFMPEG scripts that allow you to convert Quad Lightfield format files to SBS files for use on Leia devices, 3D TVs, and VR headsets.
These scripts are for FFMPEG and convert a Quad Lightfield file to an equivalent SBS using the inner or outer two views. Users can change from video to photo by changing the file extensions from .mp4 to the desired format (e.g. .jpeg or .png). These should work with any format supported by FFMPEG.
Convert Quad Lightfield to SBS using inner views (View 2 and View 3)
ffmpeg -i input_2x2.mp4 -filter_complex "[0:v]crop=iw/2:ih/2:iw/2:0[left];[0:v]crop=iw/2:ih/2:0:ih/2[right];[left][right]hstack" output_view2and3_2x1.mp4
Convert Quad Lightfield to SBS using outer views (View 1 and View 4)
ffmpeg -i input_2x2.mp4 -filter_complex "[0:v]crop=iw/2:ih/2:0:0[left];[0:v]crop=iw/2:ih/2:iw/2:ih/2[right];[left][right]hstack" output_14_2x1.mp4
Hopefully these are useful to you! Let us know if you have any questions.