FontCollector
v3.1.0
FontCollector pour le fichier alpha de sous-station avancé. Cet outil permet de récupérer et / ou de mUX les polices nécessaires dans un MKV.
pip install FontCollector
$ fontcollector --help
usage: fontcollector [-h] --input [INPUT ...] [-mkv MKV] [--output OUTPUT] [-mkvpropedit MKVPROPEDIT] [--delete-fonts] [--additional-fonts ADDITIONAL_FONTS [ADDITIONAL_FONTS ...]]
[--additional-fonts-recursive ADDITIONAL_FONTS_RECURSIVE [ADDITIONAL_FONTS_RECURSIVE ...]] [--exclude-system-fonts] [--collect-draw-fonts] [--dont-convert-variable-to-collection]
[--logging [LOGGING]]
FontCollector for Advanced SubStation Alpha file.
options:
-h, --help show this help message and exit
--input [INPUT ...], -i [INPUT ...]
Subtitles file. Must be an ASS file/directory. You can specify more than one .ass file/path.
-mkv MKV
Video where the fonts will be merge. Must be a Matroska file.
--output OUTPUT, -o OUTPUT
Destination path of the font. If -o and -mkv aren't specified, it will be the current path.
-mkvpropedit MKVPROPEDIT
Path to mkvpropedit.exe if not in variable environments. If -mkv is not specified, it will do
nothing.
--delete-fonts, -d
If -d is specified, it will delete the font attached to the mkv before merging the new needed
font. If -mkv is not specified, it will do nothing.
--additional-fonts ADDITIONAL_FONTS [ADDITIONAL_FONTS ...], -add-fonts ADDITIONAL_FONTS [ADDITIONAL_FONTS ...]
May be a directory containing font files or a single font file. You can specify more than one
additional-fonts.
If it is a directory, it won't search recursively for fonts
--additional-fonts-recursive ADDITIONAL_FONTS_RECURSIVE [ADDITIONAL_FONTS_RECURSIVE ...], -add-fonts-rec ADDITIONAL_FONTS_RECURSIVE [ADDITIONAL_FONTS_RECURSIVE ...]
Path to font directory, which will be recursively searched for fonts.
--exclude-system-fonts
If specified, FontCollector won't use the system font to find the font used by an .ass file.
--collect-draw-fonts
If specified, FontCollector will collect the font used by the draw. For more detail when this
is usefull, see: https://github.com/libass/libass/issues/617
--dont-convert-variable-to-collection
If specified, FontCollector won't convert variable font to a font collection. see: https://github.com/libass/libass/issues/386
--logging [LOGGING], -log [LOGGING]
Destination path of log. If it isn't specified, it will be YYYY-MM-DD--HH-MM-SS_font_collector.log. Récupérer les polices à partir de 2 fichiers .ass et les enregistrer dans le dossier actuel
fontCollector -i "file1.ass" "file2.ass"
Prenez tous les fichiers .ass du dossier actuel et enregistrez la police dans le dossier actuel
fontCollector -i .
Font en mutation du fichier .ass dans un MKV
fontCollector -i "file1.ass" -mkv "example.mkv" -mkvpropedit "C:Program FilesMKVToolNixmkvpropedit.exe"
MUX La police du fichier .ass dans un MKV et supprimez les polices actuellement jointes.
fontCollector -i "file1.ass" -mkv "example.mkv" -mkvpropedit "C:Program FilesMKVToolNixmkvpropedit.exe" -d
Étant donné que Libass ne prend pas en charge la police variable, cet outil générera automatiquement une collection de polices OpenType. La collection générée est conçue pour simuler comment VSFilter / GDI gère la police variable.