Giter VIP home page Giter VIP logo

gitviz's Introduction

gitviz

This is a simple script in Python that allows you to make an animation of a single text file in GitHub repository based on previous commits. To use just fill in the required info on the top of the script file and run it with python.

Requirements: Python, PIL, PyGithub.

The script outputs a series of PNGs, which can be merged into a video for example with ffmpeg:

 ffmpeg -framerate 60 -i images/out%05d.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4

You can also make gif out of the video:

 ffmpeg -i out.mp4 -vf "palettegen" -y palette.png
 ffmpeg -i out.mp4 -i palette.png -lavfi "paletteuse" -y out.gif

I wrote the script quickly and didn't test it very much, use at your own risk. Visualization of files that are being worked at in different branches a lot will probably not be very nice - the script simply takes all commits in sequential order, not taking branches into account, and executes them - once a merge commit is encountered, the file is loaded from GitHub as a whole and used from that commit on.

C++ gif example of utf.hpp:

gif

Python video example of Bombman (older version):

video]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.