GithubHelp home page GithubHelp logo

realesrgan-ncnn-video-upscaler's Introduction

NCNN Video Upscaler (Linux)

This is a Flask web application that allows users to upload MP4 video files and upscale them using the RealESRGAN-NCNN-Vulkan algorithm. The upscaled video is then saved with the .out.mp4 extension.

Prerequisites

  • Python 3.x
  • FFmpeg
  • RealESRGAN-NCNN-Vulkan

Installation

  1. Clone the repository:
git clone https://github.com/your-repo/ncnn-video-upscaler.git
  1. Create and activate a virtual environment (optional but recommended):
python3 -m venv venv
source venv/bin/activate
# On Windows, use venv\Scripts\activate
  1. Install the required Python packages:
pip install -r requirements.txt
  1. Download and install FFmpeg.
sudo apt install ffmpeg

Usage

  1. Run the Flask application:
python main.py
  1. Open your web browser and navigate to http://localhost:8000. Alt Text
  2. On the upload page, click the "Choose File" button and select an MP4 video file.
  3. Click the "Upload" button to start the video processing.
  4. Wait for the video processing to complete. Once the processing is complete, you will be redirected to a download page where you can download the upscaled video.

Configuration

You can configure the following settings in the main.py file:

  • ALLOWED_EXTENSIONS: A set of allowed file extensions for video uploads (default: {'mp4'}).
  • MAX_FILE_SIZE: The maximum file size in MB for video uploads (default: 100).
  • UPLOAD_FOLDER: The path to the folder where uploaded videos will be stored (default: 'uploads').
  • OUTPUT_FOLDER: The path to the folder where processed videos will be stored (default: 'output').

License

This project is licensed under the MIT License.

realesrgan-ncnn-video-upscaler's People

Contributors

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