This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
I do not provide support for this unless its an actual error in the code and not related to your setup. | |
This script was originally written on VS R53 with Python 3.9 & has been tested on VS R63 with Python 3.11. | |
You'll need: | |
- Vapoursynth | |
- "pip install pathlib anitopy pyperclip requests requests_toolbelt natsort vstools rich colorama" in terminal (without quotes) | |
- "vsrepo install imwri lsmas sub" in terminal (without quotes) or the following installed to your usual Vapoursynth plugins folder: | |
- https://github.com/AkarinVS/L-SMASH-Works/releases/latest | |
- https://github.com/vapoursynth/subtext/releases/latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# requires mediainfo in path + specifying mpv and output paths in the parameters below. | |
# trackselect.lua (https://github.com/po5/trackselect) is also required unless subtitle track id is specified. | |
# trackselect should be placed in the specified mpv path. | |
# oxipng in path is also required to use -opt. | |
# set parameters | |
Param( | |
[string]$inFile, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# recommended to specify default mpv path and output path below. | |
# Requirements: | |
# - pip install pymediainfo colorama | |
# - trackselect.lua (https://github.com/po5/trackselect) is required in mpv path unless subtitle track id is specified. | |
# - oxipng (https://github.com/shssoichiro/oxipng) in path is required to use -opt. | |
mpv_path = "!CHANGE THIS!" | |
out_path = "!CHANGE THIS!" | |
import os |