Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lightarrowsexe/fansub-utils
Utility scripts I've written for fansubbing.
https://github.com/lightarrowsexe/fansub-utils
Last synced: 4 days ago
JSON representation
Utility scripts I've written for fansubbing.
- Host: GitHub
- URL: https://github.com/lightarrowsexe/fansub-utils
- Owner: LightArrowsEXE
- License: mit
- Created: 2019-03-18T11:55:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-22T03:30:41.000Z (over 2 years ago)
- Last Synced: 2023-03-02T15:56:53.800Z (over 1 year ago)
- Language: Python
- Size: 55.7 KB
- Stars: 11
- Watchers: 0
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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**
```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]"
```## 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) |