项目作者: hazkaz

项目描述 :
Abusing git to track changes frame by frame and play it back checkout by checkout
高级语言: Python
项目地址: git://github.com/hazkaz/git-video-player.git
创建时间: 2020-03-04T11:24:15Z
项目社区:https://github.com/hazkaz/git-video-player

开源协议:

下载


Git powered video player

Imagine…if all you had to do to watch a movie was clone a repo.

  • Checkout to release to see the final version of the movie.
  • Checkout to develop to see the director’s cut :P
  • Watch a movie Bandersnatch style by checking out to different trees in the history
  • Watch bloopers in bugfix/reverted-some-changes

Well all that hasn’t happened yet, what you see here is just the first step

Starting with the first frame of the movie, each new frame is a commit in the repository.

This is the end result of git checkout-ing very fast through all the frames

👀

Try it out yourself

  1. # commit frame by frame
  2. python3 git-it.py birb.mp4
  3. # checkout and play frame by frame
  4. python3 play-commits.py

pre-requisites

  1. ffmpeg
  2. git