Go to file
LightArrowsEXE c166491775 Add "check_exists", minor refactoring
generate_keyframes:
* "check_exists" checks if a keyframe file already exists. Default is "True". You can set it to "False" by setting -C.

* Minor refactoring. Deleting indexing files is now a one-liner (but still works if if-else, basically).

* Remove the "Done." when a keyframe file is done being generated. It will just move on to the next file now. Instead it will now say it's done when all the keyframe files are done being generated.
2019-11-21 10:37:19 +01:00
old and dumb scripts Update fansub-util repository 2019-07-16 13:41:24 +02:00
.gitattributes Initial commit 2019-03-18 12:49:08 +01:00
.gitignore Create .gitignore 2019-03-18 13:23:07 +01:00
auto-CRC.py Update fansub-util repository 2019-07-16 13:41:24 +02:00
encode_audio.py Actively make encode_audio worse 2019-11-08 21:58:16 +01:00
generate_keyframes.py Add "check_exists", minor refactoring 2019-11-21 10:37:19 +01:00
README.md Update README.md 2019-08-20 00:37:20 +02:00
remux.py Update fansub-util repository 2019-07-16 13:41:24 +02:00

A collection of utilities for fansubbing that I've written. Improvements and ideas are always welcome.

Requirements:

  • Python 3.6 or higher

Usage:

$ python [script].py [--args]

Utilities:

auto-CRC

A small script that appends CRC-32's to every mkv in the current directory.

Arguments:

Argument Arg Description
--help -h show this help message and exit
--recursive -R check recursively

encode-audio

Automatically encodes audio in the current directory to AAC (using qaac -V 127) or FLAC.

Arguments:

Argument Arg Description
--help -h show this help message and exit
--recursive -R check recursively
--flac -F enable FLAC encoding

generate_keyframes

Generic script to generate keyframes for all files of a given extension. Heavily inspired by kagefunc's generate_keyframes, but made to work as a standalone script for timers. Special thanks to begna for helping me with writing big parts of this.

Arguments:

Argument Arg Description
--help -h show this help message and exit
--recursive -R check recursively
--extension -E pick extension to generate keyframes for
--noheader -N do not include header line for aegisub
--outfile -O name for keyframes file output
--trims -T string of trims to source file.
format: "[inclusive,exclusive],[inclusive,exclusive],[None,exclusive],[inclusive,None]"

Usage Example:

Trim one second off of the start and end

$ python generate_keyframes.py -T "[24,-24]"

Trim three seconds off of the end

$ python generate_keyframes.py -T "[None,-72]"

Trim the first five seconds

$ python generate_keyframes.py -T "[120,None]"

remux

Generic script for remuxing videos from a certain filetype into another. Remuxes mkv's into mp4's by default.

Arguments:

Argument Arg Description
--recursive -R check recursively
--input_ext -i set input's extension (default: mkv)
--output_ext -o set output's extension (default: mp4)