Skip to content

Shell Script to convert 2D Video to 3D Side-By-Side (3D SBS) video for use with VR headsets

Notifications You must be signed in to change notification settings

bbrandt188/2D-to-3D-SBS-Video-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

2D to 3D SBS Video Converter

This is a bash script to take any 2D Video file you have and then process it into a 3D Side-By-Side video file, compatable with any player that supports 3D SBS Video Playback.

It's simplistic and will take the viddo, offset the frame rate slightly and then combine them together to give a 3d effect from the offset images.

Works best when resulting file is viewed on VR Headsets otherwise It's very difficult to get the desired effect. Si

Requirements

  • ffmpeg
  • bash

How To Use

Allow the file to be executable chmod +x sbs3d.sh

Then run the file with input video file, 3d factor (Integer; Default is 20), and delay between frames (float; Can use decimal numbers; default is 1/FPS simply inputed as just the number ex: 1)

./sbs3d.sh $0 <video file> 20 1

This will output the completed video after processing with the same name as the input suffixed with 3dsbs-{3dFactor}-{frame_delay}.mp4 in the same folder as you ran it in

About

Shell Script to convert 2D Video to 3D Side-By-Side (3D SBS) video for use with VR headsets

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages