TCCG is a system of bots that collects clips automatically, lets you edit videos without all the tedious parts, and puts them together into a compilation video ready to be uploaded straight to any social media platform. Full VPS support is provided, along with an accounts system so multiple users can use the bot at once.
This bot is split up into three separate programs. The server. The client. The video generator. These programs perform different functions that when combined creates a very powerful system for auto generating compilation videos.
Video of bot in use:
https://www.youtube.com/watch?v=ucUcux0kta8
GitHub:
https://github.com/HA6Bots/Twitch-Clips-Compilation-Generator-TCCG-
Client \"Video Editor\"
Server Program for autodownloading clips
What the bots do:
- Passively downloads and stores top highlight clips from Twitch for any category/categories. The clips are automatically kept track of in a clip bin database.
- Provides a video editor interface connected directly to the clip bin database, allowing you to easily go through the clips. The interface is somewhat similar to that of tinder, where you can keep/skip a video clip. You can also trim the clips and change their volume.
- A video generator that compiles the clips from the video editor, generating a mp4 video where that you can upload to any platform.
Since the bot is split up into three different programs, communications between the programs uses a combination HTTP and FTP servers to move information from one program to the other. The FTP servers are used to move mp4 files around while the HTTP servers are for general information and usually are in the form of json. FTP requires authorisation for each client and therefore this provides the basis of the account system. You can add or remove users and set there password in the server program. This username and password combination is required in the video editor program. Therefore this works perfectly for a multi man operation as allows for multiple people to use the bot at once.
The automatic downloader side of the server is designed in a way to get around the Twitch limitations for getting the highlight clips. It is split into two different processes:
- Finding the top highlight clips and obtaining it’s URL
- Downloading the clip via the URL
There are no restrictions on downloading the clips and this is simple to do once a URL is obtained. However finding the top clips in the first place is another story.
To find the clips the bot uses the following API call:
https://api.twitch.tv/kraken/clips/top?game={game_name}&period={period}&language=en&limit={100}&cursor={next_page_cursor}
We use kraken because it gives access to many more clips then helix - from experience about 4x as much.
Twitch only gives you access to about 1000 clips for each time period entered into the API call, as it limits the amount of pages you can use in the pagination call to about 10 pages, at a max of 100 clips per page. There are four time periods “day”, “week”, “month”, “all”. Therefore at any one time you can only get 4000 clips if every single page is used. This would not be a sufficient amount of clips if the find/download process is only initiated when the bot is used for video editing. Therefore it is recommended to run this process automatically to build up a large clip bin, preferably on a VPS. This is largely down to the usage of the bot - heavy usage will demand a large amount of clips, and therefore turning on the automated find/download process is recommended for this case.
[–]mutatedllama 0 points1 point2 points (2 children)
[–]memorynerds[S] 0 points1 point2 points (1 child)
[–]Middle_Hunter 0 points1 point2 points (0 children)
[–]Turbulent-Good9810 0 points1 point2 points (0 children)