Skip to content

Instantly share code, notes, and snippets.

View secunit64's full-sized avatar

Madhu Srinivasan secunit64

View GitHub Profile
@secunit64
secunit64 / interlace.py
Created January 19, 2012 05:37
A python script to interlace a stereo-pair to show on 3D displays
# This is a script designed to take two images and interlace them. For a usefullness
# point of view the images should be left and right eye images which one wishes to
# display on a JVC micro-polarized display (or any other display using interlaced
# stereo)
import Image
import sys
import numpy
def interlace(left, right, stereo):
@secunit64
secunit64 / FFMPEG-Howto.md
Last active December 1, 2020 20:50
Encoding frames using ffmpeg

To convert the frames into a movie playabale in the visualization labs, the following command should be used:

ffmpeg -r 60 -f image2 -s 1920x1080 -i %04d.png -vcodec libx264 -crf 25  -pix_fmt yuv420p test.mp4

Will create a movie named movie.avi at 15fps from the files contained in the folder screens named frame0000.png, frame0001.png, etc