Create vertical videos from twitch clips
Project description
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
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file twitch-to-clip-1.0.1.tar.gz.
File metadata
- Download URL: twitch-to-clip-1.0.1.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
819a6eea6e4caf35fd881dbc791a124d2534ce15432d446f6e531b36c6528372
|
|
| MD5 |
7a45cbc3bd39c5ef925c28224353b33c
|
|
| BLAKE2b-256 |
4f4e119bc1267026fa3f0eb4750cde2b787c3fdc84bf2abf47bcfc313c030917
|
File details
Details for the file twitch_to_clip-1.0.1-py3-none-any.whl.
File metadata
- Download URL: twitch_to_clip-1.0.1-py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8755c557d5de1797b812775783dc381b46930b01b9bbbc7e00cb6155e1dac1e
|
|
| MD5 |
fabbf0fc8326bde242333efc12dd521a
|
|
| BLAKE2b-256 |
891240d69f86778195b26087542596cb432bd0c32d8ae2555b0ed761ac6317d1
|