Giter VIP home page Giter VIP logo

movie_quality_increase's Introduction

Movie Quality Increaser

Increase the quality of your movies using a superres deep neural network inference on your GPU.


Installation

For installation, you need to have openCV compiled with dnn_superres module.

git clone https://github.com/thomasarmel/movie_quality_increase.git
cd movie_quality_increase
cmake .
make

Usage

Create a temporary file with only superres video stream:

./movie_quality_increase -f <upscale factor (2 or 4)> -i <input file path> -o <output file path> -m <models directory path>

Upscale factor: The upscale factor to use, only 2 and 4 are supported by the ESPCN model used here.

Input file path: The path to the input video file, must be readable by ffmpeg library.

Output file path: The path to the output video file, must be writable by ffmpeg library. Note that the output file will be overwritten if it already exists.

Models directory path: The path to the directory containing the models, provided in the repository.

Create upscaled movie:

We will upscale per 2 the movie old-movie.mp4 to new-movie.mp4 using the ESPCN model.

./movie_quality_increase -f 2 -i old-movie.mp4 -o /tmp/upscale-only-video.mp4 -m ./models
ffmpeg -i old-movie.mp4 -i /tmp/upscale-only-video.mp4 -c copy -map 0:a? -map 1:v -map 0:s? -shortest new-movie.mp4

Thanks to @fannymonori and @Saafke for providing superres models.

movie_quality_increase's People

Contributors

thomasarmel 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.