Skip to main content

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.

Metadata

Release files for kingsquit 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kingsquit 0.1.3
File Size Uploaded Provenance Actions
kingsquit-0.1.3.tar.gz 11.5 kB Without provenance Details for kingsquit-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kingsquit 0.1.3
File Interpreter ABI Platform Actions
kingsquit-0.1.3-py3-none-any.whl Python 3 none any Details for kingsquit-0.1.3-py3-none-any.whl

Total release size: 34.3 kB

Release files / kingsquit-0.1.3.tar.gz

Download URL kingsquit-0.1.3.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2720a3c8600c3f1d804495905087fbe9755eb1ba93464ce6d2e9eb145ab37554
BLAKE2b-256 checksum
How to use checksums
7aa4013b99d117733b79d6aff27c7f729a1cdc4a2bb643e11aeddd7fe7f19a30
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / kingsquit-0.1.3-py3-none-any.whl

Download URL kingsquit-0.1.3-py3-none-any.whl
Size 22.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7806e924947fc4700bd9f15588108b479d21cae1947a5b5f3e59054c137b7432
BLAKE2b-256 checksum
How to use checksums
09b6892a6d28088a754fa0a5d9dddcde29f50d3b28684826ce151cefc4eea23f
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for kingsquit 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page