GithubHelp home page GithubHelp logo

6-- / lofi-background-generation Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 10.79 MB

Simple Python script to pull sequences from input video and render short .gif files. For batch making lo-fi looping clips!

License: MIT License

Python 100.00%

lofi-background-generation's Introduction

Lo-Fi Background GIF Generation

Simple script to generate Lo-Fi backgrounds from input videos

How it works

  1. OpenCV2 reads input video
  2. Extracts specified number of random clips of specified length from video
  3. Transform clip to optimize for GIF (resize & drop fps)
  4. Write GIF

Examples from Howl's Moving Castle & Kimi No Na Wa

To-do

  1. Refactor & Tidy script (most things are bodged together and/or hard-coded as of now)
  2. Implement Effects: lots of those lo-fi backgrounds have effects such as chromatic abberation & lens blur.
  3. Smarter clip selection: Sometimes the clip will be from the ending credits. Or sometimes the clip will have awkwardly timed cuts between scenes.

lofi-background-generation's People

Contributors

aliadnani avatar

Stargazers

 avatar

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.