Git Product home page Git Product logo

badapplewithbadapple's Introduction

This repository designed to recreate each frame of Bad Apple as a mural of other frames in Bad Apple. I mostly created this just for fun and as a way to mess around with OpenCV and python.

Prerequisites

  1. Python
  2. ffmpeg
  3. OpenCV

Usage

  1. Clone this project
  2. Download the video using a program like youtube-dl
  3. Open a command prompt in the folder you cloned this project from
  4. Run .\convert.bat VIDEO_FILE, and replace "VIDEO_FILE" with the name of the file you downloaded. This will make sure the video is encoded in a way OpenCV can understand
  5. Run python BadApplePreprocess.py. This will create a sorted list of frames from darkest to brightest, and store them in the SortedFrames folder. The default name this program checks for is BadApple.mkv, but you can choose a different name as a command line argument if you so choose
  6. Run python BadApple.py. This will use the sorted frames from the previous step to generate the video file. This file is in the AVI format, and encoded in MJPEG, so compression is not good
  7. Run ffmpeg -i Output.avi -i BadApple.mkv.old -c:v libx264 -c:a copy -map 0:v:0 -map 1:a:0 Final.mp4 for better compression and better supported file formatting. This also pulls the audio from the original video file and adds it on as well. Replace BadApple.mkv.old with the .old file created in the conversion step if you used a different file name

badapplewithbadapple's People

Contributors

adalynblack avatar

Watchers

 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.