Skip to content

Instantly share code, notes, and snippets.

@McBaws
McBaws / Animebytes Screenshots.py
Last active October 31, 2023 00:02
Takes screenshots including subtitles for animebytes, automatically determining most suitable subtitle track. Also has a comparison feature but don't use that lol
# 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
@McBaws
McBaws / Animebytes Screenshots.ps1
Created September 30, 2022 16:30
Takes screenshots including subtitles for animebytes, automatically determining most suitable subtitle track
# 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,
@McBaws
McBaws / comp.py
Last active December 26, 2023 06:33 — forked from Vodes/comp.py
ATTENTION: AS OF 22/09/2023 THIS PROJECT IS NOW BEING MAINTAINED AT https://github.com/McBaws/comp ----------------------------------------------- Create Comparisons for multiple video clips with automatic upscaling and uploading. This fork has support for FrameInfo, trimming from start and end, user selected frames, saving frame numbers, and im…
"""
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