The aarg_upscale repo hosts a Python command-line wrapper designed to upscale video files based on k4yt3x/video2x.
- Easy to use wrapper for video2x.
- Option to keep the original files or transparently replace after upscaling (transparent replacement is good for plex directories, where one may not want the old video files present).
- Process an entire directory of video files or a single file.
- Docker installed and running on your system.
- Nvidia container toolkit.
- Sudo privileges for running Docker commands.
- If not installed already, install docker on ubuntu following the official docs.
- Check installation with
sudo docker run hello-world
- Check installation with
- Install nvidia container toolkit using the official guide. This allows gpu acceleration inside of the docker container.
- Pull latest docker image (see releases here).
- At the time of writing
docker pull ghcr.io/k4yt3x/video2x:5.0.0-beta6
- At the time of writing
To be added later, as of now not supported. May be possible to do any combination of [MacOS|Windows|Arch] OS and [AMD|Intel|Nvidia] GPU.
Upscale all .avi files in a directory to 1080p and convert them to .mp4, keeping the original files:
python aarg_upscale.py -d some/directory -t 1080 -i .avi -o .mp4 -k
Upscale a single video file to 720p and convert it to .mp4, removing the original file:
python aarg_upscale.py -p some/directory/video.avi -t 720 -o .mp4
MIT License
Copyright (c) 2024 Austin Gibbons
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.