mirror of
https://github.com/k4yt3x/video2x.git
synced 2026-02-04 03:22:07 +08:00
updated README and legal/licensing info
This commit is contained in:
130
README.md
130
README.md
@@ -1,18 +1,15 @@
|
||||
<p align="center">
|
||||
<img src="https://user-images.githubusercontent.com/21986859/102733190-872a7880-4334-11eb-8e9e-0ca747f130b1.png"/>
|
||||
</br>
|
||||
<img src="https://img.shields.io/github/v/release/k4yt3x/video2x?style=flat-square"/>
|
||||
<img src="https://img.shields.io/github/workflow/status/k4yt3x/video2x/CI?label=CI&style=flat-square"/>
|
||||
<img src="https://img.shields.io/docker/cloud/build/k4yt3x/video2x?style=flat-square"/>
|
||||
<img src="https://img.shields.io/github/downloads/k4yt3x/video2x/total?style=flat-square"/>
|
||||
<img src="https://img.shields.io/github/license/k4yt3x/video2x?style=flat-square"/>
|
||||
<img src="https://img.shields.io/badge/dynamic/json?color=%23e85b46&label=Patreon&query=data.attributes.patron_count&suffix=%20patrons&url=https%3A%2F%2Fwww.patreon.com%2Fapi%2Fcampaigns%2F4507807&style=flat-square"/>
|
||||
</p>
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
<!--# Video2X Lossless Video Enlarger-->
|
||||
|
||||
### Official Discussion Group (Telegram): https://t.me/video2x
|
||||
### Official Telegram Discussion Group: https://t.me/video2x
|
||||
|
||||
A [Discord server](https://discord.gg/Pwf6Ht) is also available. Please note that most developers are only on Telegram. If you join the Discord server, the developers might not be able to see your questions and help you. It is mostly for user-user interactions and those who do not want to use Telegram.
|
||||
|
||||
@@ -31,13 +28,13 @@ In case you're unable to download the releases directly from GitHub, you can try
|
||||
|
||||
**You need to be logged into GitHub to be able to download GitHub Actions artifacts.**
|
||||
|
||||
Nightly builds are built automatically every time a new commit is pushed to the master branch. The lates nightly build is always up-to-date with the latest version of the code, but is less stable and may contain bugs. Nightly builds are handled by GitHub's integrated CI/CD tool, GitHub Actions.
|
||||
Nightly builds are built automatically every time a new commit is pushed to the master branch. The latest nightly build is always up-to-date with the latest version of the code, but is less stable and may contain bugs. Nightly builds are handled by GitHub's integrated CI/CD tool, GitHub Actions.
|
||||
|
||||
To download the latest nightly build, go to the [GitHub Actions](https://github.com/k4yt3x/video2x/actions) tab, enter the last run of workflow "Video2X Nightly Build, and download the artifacts generated from the run.
|
||||
To download the latest nightly build, go to the [GitHub Actions](https://github.com/k4yt3x/video2x/actions) tab, enter the last run of workflow "CI," and download the artifacts generated from the run.
|
||||
|
||||
## [Docker Image](https://hub.docker.com/r/k4yt3x/video2x)
|
||||
## [Docker Image](https://github.com/k4yt3x/video2x/pkgs/container/video2x)
|
||||
|
||||
Video2X Docker images are available on Docker Hub for easy and rapid Video2X deployment on Linux and macOS. If you already have Docker installed, then only one command is needed to start upscaling a video. For more information on how to use Video2X's Docker image, please refer to the [documentations](https://github.com/K4YT3X/video2x/wiki/Docker).
|
||||
Video2X Docker images are available on Docker Hub for easy and rapid Video2X deployment on Linux and macOS. If you already have Docker installed, then only one command is needed to start upscaling a video. For more information on how to use Video2X's Docker image, please refer to the [documentations (outdated)](https://github.com/K4YT3X/video2x/wiki/Docker).
|
||||
|
||||
## [Google Colab](https://colab.research.google.com/drive/1xqeZvoJXaBBPP6UyVwErnhwrnth0br0u)
|
||||
|
||||
@@ -61,7 +58,7 @@ Currently, Video2X supports the following drivers (implementations of algorithms
|
||||
### Video Upscaling
|
||||
|
||||
\
|
||||
*Upscale Comparison Demonstration*
|
||||
_Upscale Comparison Demonstration_
|
||||
|
||||
**You can watch the whole demo video on YouTube: https://youtu.be/mGEfasQl2Zo**
|
||||
|
||||
@@ -72,17 +69,17 @@ Clip is from trailer of animated movie "千と千尋の神隠し". Copyright bel
|
||||
This original input GIF is 160x120 in size. This image is downsized and accelerated to 20 FPS from its [original image](https://gfycat.com/craftyeasygoingankole-capoo-bug-cat).
|
||||
|
||||
\
|
||||
*Catfru original 160x120 GIF image*
|
||||
_Catfru original 160x120 GIF image_
|
||||
|
||||
Below is what it looks like after getting upscaled to 640x480 (4x) using Video2X.
|
||||
|
||||
\
|
||||
*Catfru 4x upscaled GIF*
|
||||
_Catfru 4x upscaled GIF_
|
||||
|
||||
### Image Upscaling
|
||||
|
||||
\
|
||||
*Image upscaling example*
|
||||
_Image upscaling example_
|
||||
|
||||
[Original image](https://72915.tumblr.com/post/173793265673) from [nananicu@twitter](https://twitter.com/nananicu/status/994546266968281088), edited by K4YT3X.
|
||||
|
||||
@@ -110,12 +107,12 @@ The list is sorted from new to old.
|
||||
### Video2X GUI
|
||||
|
||||
\
|
||||
*Video2X GUI Screenshot*
|
||||
_Video2X GUI Screenshot_
|
||||
|
||||
### Video2X CLI
|
||||
|
||||
\
|
||||
*Video2X CLI Screenshot*
|
||||
_Video2X CLI Screenshot_
|
||||
|
||||
---
|
||||
|
||||
@@ -124,7 +121,7 @@ The list is sorted from new to old.
|
||||
If you can't find a video clip to begin with, or if you want to see a before-after comparison, we have prepared some sample clips for you. The quick start guide down below will also be based on the name of the sample clips.
|
||||
|
||||
\
|
||||
*Sample Upscale Videos*
|
||||
_Sample Upscale Videos_
|
||||
|
||||
- [Sample Video (240P) 4.54MB](https://files.k4yt3x.com/Resources/Videos/sample_input.mp4)
|
||||
- [Sample Video Upscaled (1080P) 4.54MB](https://files.k4yt3x.com/Resources/Videos/sample_output.mp4)
|
||||
@@ -151,22 +148,22 @@ Before running Video2X, you'll need to ensure you have installed the drivers' ex
|
||||
The easiest way to run Video2X is to use the full build. Extract the full release zip file and you'll get these files.
|
||||
|
||||
\
|
||||
*Video2X release files*
|
||||
_Video2X release files_
|
||||
|
||||
Simply double click on video2x_gui.exe to launch the GUI.
|
||||
|
||||
\
|
||||
*Video2X GUI main tab*
|
||||
_Video2X GUI main tab_
|
||||
|
||||
Then, drag the videos you wish to upscale into the window and select the appropriate output path.
|
||||
|
||||
\
|
||||
*Drag and drop file into Video2X GUI*
|
||||
_Drag and drop file into Video2X GUI_
|
||||
|
||||
Tweak the settings if you want to, then hit the start button at the bottom and the upscale will start. Now you'll just have to wait for it to complete.
|
||||
|
||||
\
|
||||
*Video2X started processing input files*
|
||||
_Video2X started processing input files_
|
||||
|
||||
### Running Video2X (CLI)
|
||||
|
||||
@@ -196,10 +193,32 @@ python video2x.py -d waifu2x_caffe -- --help
|
||||
|
||||
### Running Video2X (Docker)
|
||||
|
||||
Video2X can be deployed via Docker. The following command upscales the video `sample_input.mp4` two times with Waifu2X NCNN Vulkan and outputs the upscaled video to `sample_output.mp4`. For more details on Video2X Docker image usages, please refer to the [documentations](https://github.com/K4YT3X/video2x/wiki/Docker).
|
||||
Video2X can be deployed via Docker. The following command upscales the video `sample_input.mp4` with Waifu2X ncnn Vulkan and outputs the upscaled video to `output.mp4`. For more details on Video2X Docker image usages, please refer to the [documentations (outdated)](https://github.com/K4YT3X/video2x/wiki/Docker).
|
||||
|
||||
```shell
|
||||
docker run --rm -it --gpus all -v /dev/dri:/dev/dri -v $PWD:/host k4yt3x/video2x:4.6.0 -d waifu2x_ncnn_vulkan -r 2 -i sample_input.mp4 -o sample_output.mp4
|
||||
docker run -it --rm \ # temporary container, delete after run
|
||||
--gpus all -v /dev/dri:/dev/dri \ # mount GPUs
|
||||
-v $PWD:/host \ # bind mount the current directory as the container's /host
|
||||
ghcr.io/k4yt3x/video2x:5.0.0-beta1-cuda \ # the URL of the docker image
|
||||
-i sample_input.mp4 \ # path of the input file
|
||||
-o output.mp4 \ # the path to write the output
|
||||
-p5 \ # launch 5 processes
|
||||
upscale \ # set action to upscale
|
||||
-h 720 \ # set output hight to 720 pixels
|
||||
-d waifu2x \ # use driver waifu2x
|
||||
-n3 # noise level 3
|
||||
```
|
||||
|
||||
To interpolate a video, set the action to `interpolate`. Right now, only 2x framerate is supported.
|
||||
|
||||
```shell
|
||||
docker run -it --rm \
|
||||
--gpus all -v /dev/dri:/dev/dri \
|
||||
-v $PWD:/host \
|
||||
ghcr.io/k4yt3x/video2x:5.0.0-beta1-cuda \
|
||||
-i sample_input.mp4 \
|
||||
-o output.mp4 \
|
||||
interpolate # set action to interpolate
|
||||
```
|
||||
|
||||
---
|
||||
@@ -210,14 +229,6 @@ docker run --rm -it --gpus all -v /dev/dri:/dev/dri -v $PWD:/host k4yt3x/video2x
|
||||
|
||||
You can find all detailed user-facing and developer-facing documentations in the [Video2X Wiki](https://github.com/k4yt3x/video2x/wiki). It covers everything from step-by-step instructions for beginners, to the code structure of this program for advanced users and developers. If this README page doesn't answer all your questions, the wiki page is where you should head to.
|
||||
|
||||
### [Step-By-Step Tutorial](https://github.com/k4yt3x/video2x/wiki/Step-By-Step-Tutorial)
|
||||
|
||||
For those who want a detailed walk-through of how to use Video2X, you can head to the [Step-By-Step Tutorial](https://github.com/k4yt3x/video2x/wiki/Step-By-Step-Tutorial) wiki page. It includes almost every step you need to perform in order to enlarge your first video.
|
||||
|
||||
### [Run From Source Code](https://github.com/k4yt3x/video2x/wiki/Run-From-Source-Code)
|
||||
|
||||
This wiki page contains all instructions for how you can run Video2X directly from Python source code.
|
||||
|
||||
### [Drivers](https://github.com/k4yt3x/video2x/wiki/Drivers)
|
||||
|
||||
Go to the [Drivers](https://github.com/k4yt3x/video2x/wiki/Drivers) wiki page if you want to see a detailed description on the different types of drivers implemented by Video2X. This wiki page contains detailed difference between different drivers, and how to download and set each of them up for Video2X.
|
||||
@@ -234,37 +245,50 @@ Are you interested in how the idea of Video2X was born? Do you want to know the
|
||||
|
||||
## License
|
||||
|
||||
Licensed under the GNU General Public License Version 3 (GNU GPL v3)
|
||||
https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
This project is licensed under the [GNU Affero General Public License Version 3 (GNU AGPL v3)](https://www.gnu.org/licenses/agpl-3.0.txt)\
|
||||
Copyright (c) 2018-2022 K4YT3X and contributors.
|
||||
|
||||

|
||||

|
||||
|
||||
(C) 2018-2021 K4YT3X
|
||||
This project includes or depends on these following projects:
|
||||
|
||||
## Credits
|
||||
| Project | License |
|
||||
| ------------------------------------------------------------------- | -------------------- |
|
||||
| [FFmpeg](https://www.ffmpeg.org/) | LGPLv2.1, GPLv2 |
|
||||
| [waifu2x-ncnn-vulkan](https://github.com/nihui/waifu2x-ncnn-vulkan) | MIT License |
|
||||
| [srmd-ncnn-vulkan](https://github.com/nihui/srmd-ncnn-vulkan) | MIT License |
|
||||
| [realsr-ncnn-vulkan](https://github.com/nihui/realsr-ncnn-vulkan) | MIT License |
|
||||
| [rife-ncnn-vulkan](https://github.com/nihui/rife-ncnn-vulkan) | MIT License |
|
||||
| [ffmpeg-python](https://github.com/kkroening/ffmpeg-python) | Apache-2.0 |
|
||||
| [Loguru](https://github.com/Delgan/loguru) | MIT License |
|
||||
| [opencv-python](https://github.com/opencv/opencv-python) | MIT License |
|
||||
| [Pillow](https://github.com/python-pillow/Pillow) | HPND License |
|
||||
| [Rich](https://github.com/Textualize/rich) | MIT License |
|
||||
| [tqdm](https://github.com/tqdm/tqdm) | MPLv2.0, MIT License |
|
||||
|
||||
This project relies on the following software and projects.
|
||||
Legacy versions of this project includes or depends on these following projects:
|
||||
|
||||
- [FFmpeg](https://www.ffmpeg.org/)
|
||||
- [waifu2x-caffe](https://github.com/lltcggie/waifu2x-caffe)
|
||||
- [waifu2x-converter-cpp](https://github.com/DeadSix27/waifu2x-converter-cpp)
|
||||
- [waifu2x-ncnn-vulkan](https://github.com/nihui/waifu2x-ncnn-vulkan)
|
||||
- [srmd-ncnn-vulkan](https://github.com/nihui/srmd-ncnn-vulkan)
|
||||
- [realsr-ncnn-vulkan](https://github.com/nihui/realsr-ncnn-vulkan)
|
||||
- [Anime4K](https://github.com/bloc97/Anime4K)
|
||||
- [Anime4KCPP](https://github.com/TianZerL/Anime4KCPP)
|
||||
- [Gifski](https://github.com/ImageOptim/gifski)
|
||||
| Project | License |
|
||||
| --------------------------------------------------------------------------- | ----------- |
|
||||
| [waifu2x-caffe](https://github.com/lltcggie/waifu2x-caffe) | MIT License |
|
||||
| [waifu2x-converter-cpp](https://github.com/DeadSix27/waifu2x-converter-cpp) | MIT License |
|
||||
| [Anime4K](https://github.com/bloc97/Anime4K) | MIT License |
|
||||
| [Anime4KCPP](https://github.com/TianZerL/Anime4KCPP) | MIT License |
|
||||
| [Gifski](https://github.com/ImageOptim/gifski) | AGPLv3 |
|
||||
|
||||
More licensing information can be found in the [NOTICES](NOTICES) file.
|
||||
|
||||
## Special Thanks
|
||||
|
||||
Appreciations given to the following personnel who have contributed significantly to the project (specifically the technical perspective).
|
||||
Appreciations given to the following personnel who have contributed significantly to the project.
|
||||
|
||||
- [@BrianPetkovsek](https://github.com/BrianPetkovsek)
|
||||
- [@sat3ll](https://github.com/sat3ll)
|
||||
- [@ddouglas87](https://github.com/ddouglas87)
|
||||
- [@lhanjian](https://github.com/lhanjian)
|
||||
- [@ArchieMeng](https://github.com/archiemeng)
|
||||
|
||||
## Related Projects
|
||||
## Similar Projects
|
||||
|
||||
- [Dandere2x](https://github.com/CardinalPanda/dandere2x): A lossy video upscaler also built around `waifu2x`, but with video compression techniques to shorten the time needed to process a video.
|
||||
- [Waifu2x-Extension-GUI](https://github.com/AaronFeng753/Waifu2x-Extension-GUI): A similar project that focuses more and only on building a better graphical user interface. It is built using C++ and Qt5, and currently only supports the Windows platform.
|
||||
|
||||
Reference in New Issue
Block a user