A dialogue randomiser for videos.
Project description
kingsquit
A dialogue randomiser for videos. Just put in a youtube url - video and subtitles used to determine dialogue regions will be downloaded with youtube-dl.
Support for local files, subtitle tracks, and audacity label tracks coming soon - see below.
I was listening to the rtvs podcast when they mentioned an old vinesauce video. I watched that, and it inspired me to make this program
installation
First you must have ffmpeg installed!
https://ffmpeg.org/download.html
ffmpeg is the command line media editing tool that this program runs on. It's very useful to have anyway as it basically renders all dumb adware video converters obsolete, and allows you to make simple edits without opening an editor. However, you also need it to run this.
On Windows you have to download the executable and put it in the kingsquit
folder or add it to your PATH. If you have chocolatey installed it's easier because you can just run choco install ffmpeg
.
On Linux you can use your package manager e.g. apt-get install ffmpeg
.
I don't have Python
Just download the .exe executable from the latest release on github. I bundled it with pyinstaller to make the program easy to get.
I have Python
python -m pip install kingsquit
This project is on PyPi.
Alternately, download this repository (e.g. git clone https://github.com/JMcB17/kingsquit/
) and install from disk with pip, or install the requirements with pip then run from the downloaded folder.
usage
Just run the executable file.
If you installed with pip or git, just run kingsquit
or python -m kingsquit
in your console.
Then all you need to do is type or paste a youtube url. After that the program will download and shuffle the video in the kingsquit-videos
folder.
Finally, once the program is done downloading and processing, you can watch/upload the resulting video! Or run again on the same video, for a different random result.
The program is designed so you can resume from where you were, if you stop after/while downloading. This makes it easy to generate a new randomised video, you just have to re-run the program, not re-download the video. Existing randomised will not be overwritten, it will just make a new one.
known bugs, and version info
This, 0.1.3 is the first bugfix release of the first semi-working version of the program. It doesn't have all the features I'd like it to, but it does have plenty of bugs.
I'm releasing it because I want to get something out before continuing to work on it, and it's janky enough to produce some unique funny stuff
Known bugs:
- It will randomly fail with an ffmpeg error while shuffling clips. I think this is when it tries to make a clip that's too short. (patched temporarily in 0.1.2, it will keep trying until it succeeds)
- The produced shuffled audio is a bit too short for the video, like 22/25. The audio tends to repeat which is funny, but I think that's what's causing the problem partly. I need to make it accurate in general too.
Fixed bugs:
- 0.1.1: Fixed an incompatibility with type hinting
coming soon, hopefully
- Edit the marked areas to randomise using an audacity label track
- Run on existing local files as well as urls
- Try to automatically download subtitles
- If automatically downloading subtitles failed, generate them with speech-to-text
donate
buY mE a COFfeE
To donate please DM me on discord JMcB#7918, and we can arrange for you to trade me coins on old school runescape.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file kingsquit-0.1.3.tar.gz
.
File metadata
- Download URL: kingsquit-0.1.3.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.9.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2720a3c8600c3f1d804495905087fbe9755eb1ba93464ce6d2e9eb145ab37554 |
|
MD5 | f2c0601a5b70bca48fb507b3a2805f14 |
|
BLAKE2b-256 | 7aa4013b99d117733b79d6aff27c7f729a1cdc4a2bb643e11aeddd7fe7f19a30 |
File details
Details for the file kingsquit-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: kingsquit-0.1.3-py3-none-any.whl
- Upload date:
- Size: 22.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.9.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7806e924947fc4700bd9f15588108b479d21cae1947a5b5f3e59054c137b7432 |
|
MD5 | 19823fb2c1a7446e8e5aa99878ef7681 |
|
BLAKE2b-256 | 09b6892a6d28088a754fa0a5d9dddcde29f50d3b28684826ce151cefc4eea23f |