Twitch-To-Clip
CLI tool that allows you to download Twitch clips or highlight videos and convert them into vertical videos ideal for TikTok and YouTube shorts. It uses the twitch-dl and ffmpeg packages to achieve this.
Installation
You can install using pip. Open your terminal and run the following command:
pip install twitch-to-clip
Requirements
- Python 3.7 or higher installed on your system
- ffmpeg, installed and on the system path
To check if ffmpeg is properly installed on your system, open your terminal and run the following command:
ffmpeg -version
If ffmpeg is installed and added to the system path, it will display the version information.
Usage
To use the package, run the twitch-to-clip command followed by the Twitch clip or highlight URL/s you want to download and convert into vertical video.
twitch-to-clip "twitch clip or highlight URL/s"
Supports the following custom arguments:
- --output (-o) : Specify the output file name
- --twitchdl : Add additional arguments to the twitch-dl download command. Encase in quotes.
- --ffmpeg : Optional ffmpeg command to apply to videos. Encase in quotes.
Usage: twitch-to-clip [-h] [--output OUTPUT] [--twitchdl TWITCHDL]
[--ffmpeg FFMPEG]
urls [urls ...]
Create vertical videos from twitch clips
positional arguments:
urls Twitch clip or highlight url/s
optional arguments:
-h, --help show this help message and exit
--output OUTPUT, -o OUTPUT
Output file name
--twitchdl TWITCHDL Arguments to pass to twitchdl download. Encase in
quotes.
--ffmpeg FFMPEG Optional ffmpeg command to apply to videos. Encase in
quotes.
Example
To download and convert a Twitch clip to a vertical video, run the following command:
twitch-to-clip "https://www.twitch.tv/jerma985/clip/ScaryLittleKleePoooound-chk_kaV2M2xZuzV5"
You can also specify the output file name using the --output (-o) argument:
twitch-to-clip "https://www.twitch.tv/jerma985/clip/ScaryLittleKleePoooound-chk_kaV2M2xZuzV5" -o myclip.mp4
If you want to add additional arguments that can be passed throught to the twitch-dl download command or apply an optional ffmpeg command to the downloaded video, you can use the --twitchdl and --ffmpeg arguments respectively.
twitch-to-clip "https://www.twitch.tv/jerma985/clip/ScaryLittleKleePoooound-chk_kaV2M2xZuzV5" --twitchdl "-q 720p" --ffmpeg "-af highpass=f=100 \"output.mp4\""
Useful Links
https://twitch-dl.bezdomni.net/
Author
This package was created by Emmanuil B.
License
Copyright 2023 Emmanuil Borovikovs https://eb1811.github.io/
Licensed under the GPLv3: http://www.gnu.org/licenses/gpl-3.0.html
Metadata
Release files for twitch-to-clip 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| twitch-to-clip-1.0.3.tar.gz | 16.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| twitch_to_clip-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.3 kB
Release files / twitch-to-clip-1.0.3.tar.gz
| Download URL | twitch-to-clip-1.0.3.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2b58800ca3b077865233cddbf7d709e33fd88381ef3aef3b33bba72d3974896
|
|
BLAKE2b-256 checksum How to use checksums |
bf34bacc7181d6abb6f2941d64a7bfa833274a4a8d525862fc75dc684435ee72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.1
|
Release files / twitch_to_clip-1.0.3-py3-none-any.whl
| Download URL | twitch_to_clip-1.0.3-py3-none-any.whl |
|---|---|
| Size | 17.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e6d7b823c8ab78994d0a38e1591714123c821d1a45bdbd7d4f4b7a5282054e7b
|
|
BLAKE2b-256 checksum How to use checksums |
26a14a0376597e6199bb7dd57f3cb4599e16c3d107ddb46c1a780648d390029d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.1
|
Security for twitch-to-clip 1.0.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.