Migrate to pip version of vapoursynth and use venv
This commit is contained in:
@@ -58,7 +58,7 @@ Settings: CRF 26, Preset 6. See [encodeCDN.py](/utils/encodeCDN.py).
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
- **OS**: Windows or Linux
|
- **OS**: Windows or Linux
|
||||||
- **Python**: >=3.12 (Windows) or Python 3.13 (Linux)
|
- **Python**: >=3.13
|
||||||
- **RAM**: Min: 16GB - Recommended: 32GB
|
- **RAM**: Min: 16GB - Recommended: 32GB
|
||||||
|
|
||||||
#### Requirements for 1080p, 1080p@48, 4k
|
#### Requirements for 1080p, 1080p@48, 4k
|
||||||
@@ -71,32 +71,31 @@ Settings: CRF 26, Preset 6. See [encodeCDN.py](/utils/encodeCDN.py).
|
|||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
#### Windows
|
#### Windows
|
||||||
1. Download and install [Python 3.12](https://www.python.org/ftp/python/3.12.8/python-3.12.8-amd64.exe) - Check option to add to path
|
1. Download and install [Python 3.13](https://www.python.org/ftp/python/3.13.13/python-3.13.13-amd64.exe) - Check option to add to path
|
||||||
2. Download and install [Imagemagick](https://imagemagick.org/script/download.php#windows) - Check option to install legacy tools (Required for creating player previews `thumbs.vtt` and `sprite.jpg`)
|
2. Download and install [Imagemagick](https://imagemagick.org/script/download.php#windows) - Check option to install legacy tools (Required for creating player previews `thumbs.vtt` and `sprite.jpg`)
|
||||||
3. Download and install [MKVToolNix](https://mkvtoolnix.download/downloads.html#windows) - **Add to system path environment manually**
|
3. Download and install [MKVToolNix](https://mkvtoolnix.download/downloads.html#windows) - **Add to system path environment manually**
|
||||||
4. Download [ffmpeg](https://www.gyan.dev/ffmpeg/builds/#release-builds) - Either place it inside the MKVToolNix install directory or create a new directory somewhere and **add it to system path environment**
|
4. Download [ffmpeg](https://www.gyan.dev/ffmpeg/builds/#release-builds) - Either place it inside the MKVToolNix install directory or create a new directory somewhere and **add it to system path environment**
|
||||||
5. Download and install [VapourSynth R72](https://github.com/vapoursynth/vapoursynth/releases) - Check options to install vsrepo, avisynth support not required
|
5. Create a python virtual environment and activate it
|
||||||
6. Install `vsrepo` packages, in Terminal (cmd, NOT Powershell!):
|
|
||||||
```cmd
|
```cmd
|
||||||
:: FFmpeg Source Plugin
|
python -m pip install --upgrade pip
|
||||||
vsrepo.py install ffms2
|
python -m venv .venv
|
||||||
|
|
||||||
:: (optional) Miscfilters Plugin, used for scenedetection in vsrife
|
# Activate python venv
|
||||||
:: Unsure if it even works
|
.venv\Scripts\activate
|
||||||
vsrepo.py install misc
|
|
||||||
```
|
```
|
||||||
7. Install `pip` packages
|
5. Install `pip` packages in venv
|
||||||
```cmd
|
```cmd
|
||||||
pip install packaging setuptools wheel
|
pip install packaging setuptools wheel pymediainfo python-dateutil
|
||||||
pip install pymediainfo python-dateutil
|
pip install vapoursynth vapoursynth-ffms2
|
||||||
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu126
|
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu126
|
||||||
pip install vsrealesrgan vsrife
|
pip install vsrealesrgan vsrife
|
||||||
```
|
```
|
||||||
8. Install models used by `vsrealesrgan` and `vsrife`
|
6. Install models used by `vsrealesrgan` and `vsrife`
|
||||||
```ps
|
```ps
|
||||||
python -m vsrealesrgan
|
python -m vsrealesrgan
|
||||||
python -m vsrife
|
python -m vsrife
|
||||||
```
|
```
|
||||||
|
7. Run `Start.bat` - alternatively: make sure python venv is active with `.venv\Scripts\activate`, then run `python Start.py`
|
||||||
|
|
||||||
#### Arch Linux
|
#### Arch Linux
|
||||||
Sadly there is some sort of memory leak in vsrife or vapoursynth under Linux.
|
Sadly there is some sort of memory leak in vsrife or vapoursynth under Linux.
|
||||||
@@ -105,7 +104,7 @@ If you have 32GB of RAM it should suffice for everything EXCEPT 4k48p, there you
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# System Packages
|
# System Packages
|
||||||
sudo pacman -S python vapoursynth ffms2 ffmpeg mkvtoolnix-cli mediainfo imagemagick
|
sudo pacman -S python ffmpeg mkvtoolnix-cli mediainfo imagemagick
|
||||||
|
|
||||||
# Setup virtual environment (in upscale dirctory)
|
# Setup virtual environment (in upscale dirctory)
|
||||||
python -m venv .venv
|
python -m venv .venv
|
||||||
|
|||||||
Reference in New Issue
Block a user