Git Product home page Git Product logo

deblack's Introduction

deblack

remove black frames from a video. Simple python file to create ffmpeg commands

Usage

Download:

pip install git+https://github.com/FarisHijazi/deblack

And then just run the bellow command, and the output should be saved as myvideo.out.mp4

deblack path/to/myvideo.mp4

If the above doesn't work, then check the prerequisites section for more detailed installation instructions.

prerequisites

Click to expand

Python3

You need to have python 3 installed in the command line

FFmpeg

You need to have ffmpeg installed somehow, there are many ways to download it, one way is to download the binary (.exe) and put it in the same directory (make sure it's called ffmpeg.exe) https://ffmpeg.org/download.html

# windows (run this in powershell)
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
choco install -y ffmpeg

# linux ubuntu
sudo apt install -y ffmpeg

# mac
brew install ffmpeg

History

Click to expand

This project originally started in as a Gist here.

This is a combination from multiple solutions found in the bellow 2 links:

helpful resources

Development

Click to expand

Create test video

python test/gen_bw_video.py --outpath test/bw.mp4  # create test video
python deblack/deblack.py test/bw.mp4  # run deblack on test video

Add pre-commit hooks

this will format files before commiting

pip install pre-commit
pre-commit install

deblack's People

Contributors

farishijazi avatar davisdude avatar fhijazithiqah 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.