Migrate to pip version of vapoursynth and use venv

This commit is contained in:
2026-05-30 22:20:43 +02:00
parent c1d5b62c9b
commit ace510a1ad
2 changed files with 17 additions and 14 deletions
+13 -14
View File
@@ -58,7 +58,7 @@ Settings: CRF 26, Preset 6. See [encodeCDN.py](/utils/encodeCDN.py).
## Requirements
- **OS**: Windows or Linux
- **Python**: >=3.12 (Windows) or Python 3.13 (Linux)
- **Python**: >=3.13
- **RAM**: Min: 16GB - Recommended: 32GB
#### Requirements for 1080p, 1080p@48, 4k
@@ -71,32 +71,31 @@ Settings: CRF 26, Preset 6. See [encodeCDN.py](/utils/encodeCDN.py).
## Installation
#### 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`)
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**
5. Download and install [VapourSynth R72](https://github.com/vapoursynth/vapoursynth/releases) - Check options to install vsrepo, avisynth support not required
6. Install `vsrepo` packages, in Terminal (cmd, NOT Powershell!):
5. Create a python virtual environment and activate it
```cmd
:: FFmpeg Source Plugin
vsrepo.py install ffms2
python -m pip install --upgrade pip
python -m venv .venv
:: (optional) Miscfilters Plugin, used for scenedetection in vsrife
:: Unsure if it even works
vsrepo.py install misc
# Activate python venv
.venv\Scripts\activate
```
7. Install `pip` packages
5. Install `pip` packages in venv
```cmd
pip install packaging setuptools wheel
pip install pymediainfo python-dateutil
pip install packaging setuptools wheel pymediainfo python-dateutil
pip install vapoursynth vapoursynth-ffms2
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu126
pip install vsrealesrgan vsrife
```
8. Install models used by `vsrealesrgan` and `vsrife`
6. Install models used by `vsrealesrgan` and `vsrife`
```ps
python -m vsrealesrgan
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
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
# 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)
python -m venv .venv
+4
View File
@@ -1,3 +1,7 @@
@echo off
call .venv\Scripts\activate.bat
python Start.py
pause