2019-07-16 11:49:56 +00:00
|
|
|
A collection of utilities for fansubbing
|
|
|
|
that I've written.
|
|
|
|
Improvements and ideas are always welcome.
|
2019-03-18 11:56:03 +00:00
|
|
|
|
|
|
|
## Requirements:
|
2019-03-18 12:00:32 +00:00
|
|
|
- Python 3.6 or higher
|
2019-03-18 11:56:03 +00:00
|
|
|
|
2019-03-18 11:57:37 +00:00
|
|
|
## Usage:
|
|
|
|
$ python [script].py [--args]
|
|
|
|
|
|
|
|
# Utilities:
|
|
|
|
|
|
|
|
## auto-CRC
|
2019-07-16 11:49:56 +00:00
|
|
|
A small script that
|
|
|
|
appends CRC-32's to every mkv
|
|
|
|
in the current directory.
|
2019-03-18 11:57:37 +00:00
|
|
|
|
2019-03-18 13:50:56 +00:00
|
|
|
### Arguments:
|
2019-07-16 11:49:56 +00:00
|
|
|
| Argument | Arg | Description |
|
|
|
|
| -------- | --- | ----------- |
|
|
|
|
| --help | -h |show this help message and exit |
|
2019-03-22 12:57:15 +00:00
|
|
|
| --recursive | -R | check recursively |
|
2019-03-18 13:50:56 +00:00
|
|
|
|
2019-07-16 11:49:56 +00:00
|
|
|
## encode-audio
|
|
|
|
Automatically encodes audio
|
|
|
|
in the current directory
|
|
|
|
to AAC (using qaac -V 127)
|
|
|
|
or FLAC.
|
2019-03-18 13:50:56 +00:00
|
|
|
|
2019-03-18 11:57:37 +00:00
|
|
|
### Arguments:
|
2019-07-16 11:49:56 +00:00
|
|
|
| Argument | Arg | Description |
|
|
|
|
| -------- | --- |------------ |
|
|
|
|
| --help | -h | show this help message and exit |
|
2019-03-22 12:52:27 +00:00
|
|
|
| --recursive | -R | check recursively |
|
2019-07-16 11:49:56 +00:00
|
|
|
| --flac | -F | enable FLAC encoding |
|
|
|
|
|
|
|
|
## generate_keyframes
|
|
|
|
Generic script to generate keyframes
|
2019-08-19 21:46:34 +00:00
|
|
|
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.
|
|
|
|
|
2019-07-16 11:49:56 +00:00
|
|
|
|
|
|
|
### Arguments:
|
|
|
|
| Argument | Arg | Description |
|
|
|
|
| -------- | --- |------------ |
|
|
|
|
| --help | -h | show this help message and exit |
|
|
|
|
| --recursive | -R | check recursively |
|
|
|
|
| --extension | -E | pick extension to generate keyframes for |
|
2019-08-19 21:46:34 +00:00
|
|
|
| --noheader | -N | do not include header line for aegisub |
|
|
|
|
| --outfile | -O | name for keyframes file output |
|
2019-08-19 22:37:20 +00:00
|
|
|
| --trims | -T | string of trims to source file.<br>format: "[inclusive,exclusive],[inclusive,exclusive],[None,exclusive],[inclusive,None]\" |
|
|
|
|
|
|
|
|
### Usage Example:
|
|
|
|
|
|
|
|
**Trim one second off of the start and end**
|
|
|
|
```bash
|
|
|
|
$ python generate_keyframes.py -T "[24,-24]"
|
|
|
|
```
|
|
|
|
|
|
|
|
**Trim three seconds off of the end**
|
|
|
|
```bash
|
|
|
|
$ python generate_keyframes.py -T "[None,-72]"
|
|
|
|
```
|
|
|
|
|
|
|
|
**Trim the first five seconds**
|
|
|
|
```bash
|
|
|
|
$ python generate_keyframes.py -T "[120,None]"
|
|
|
|
```
|
2019-07-16 11:49:56 +00:00
|
|
|
|
|
|
|
## remux
|
2019-08-19 21:46:34 +00:00
|
|
|
Generic script for remuxing videos
|
|
|
|
from a certain filetype into another.
|
|
|
|
Remuxes mkv's into mp4's by default.
|
2019-07-16 11:49:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
### 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) |
|