No description
- Python 64.7%
- C# 21.7%
- HTML 10.1%
- PowerShell 1.6%
- Batchfile 0.7%
- Other 1.2%
| .github/instructions | ||
| bin | ||
| config | ||
| dotnet | ||
| modules | ||
| .gitattributes | ||
| .gitignore | ||
| .python-version | ||
| extra.md | ||
| IMPROVEMENTS.md | ||
| install-pyenv-win.ps1 | ||
| loopstart.bat | ||
| only-vod-chat.py | ||
| README.md | ||
| requirements.txt | ||
| run_chat_only.py | ||
| run_tests.ps1 | ||
| start.bat | ||
| start_chat_only.bat | ||
| startmulti - Copy.bat | ||
| startmulti.bat | ||
| test_twitch_archive.py | ||
| test_twitch_archive_simple.py | ||
| twitch-archive.py | ||
| UpgradePlan.md | ||
| UpgradePlan2.md | ||
Twitch Archive
Inspired by https://github.com/EnterGin/Auto-Stream-Recording-Twitch
Git LFS
This repository stores large media files (recorded video and some binaries). Use Git LFS to manage large objects.
Quick setup (Windows):
- Install Git LFS:
git lfs install - Ensure
.gitattributesis committed (this repo includes one). - If you already have large files tracked by normal Git, migrate them:
git lfs install
git lfs track "*.mp4" "*.mkv" "bin/*"
git add .gitattributes
git add -A
git commit -m "Migrate large files to LFS"
git push origin main
Notes:
- Git LFS needs server-side support. If using GitHub, enable Git LFS on the remote and ensure you have sufficient bandwidth/storage quota.
- You can customize tracked patterns in
.gitattributes.
Python script to check, download live stream, VOD, chat and upload them to any cloud storage supported by rclone.
⚡ FFmpeg 8.0 Enhanced
Now with FFmpeg 8.0+ support featuring hardware acceleration and performance improvements!
- 5-10x faster encoding with NVIDIA, Intel, or AMD GPUs
- Docker-ready with Linux builds
- Configurable options for different scenarios
- 📖 See FFMPEG_SETUP.md for detailed setup instructions
Requirements
- Python 3
- Streamlink
- FFmpeg 8.0+ (see FFMPEG_SETUP.md for platform-specific versions)
Getting started
- Install Python 3.x
- Install Streamlink 5.1.x
- If you want to upload to any cloud storage using rclone, configure rclone.
git clone https://github.com/piero0920/Twitch-Archive.gitcd Twitch-Archivepip install -r requirements.txt- Edit the
.env.sampleand rename it to.env
CLIENT-ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
CLIENT-SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
OAUTH-PRIVATE-TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # optional to record without ADS or download sub-only VODS
- Copy
config.sample.jsontoconfig.jsonand edit it with your settings (username, quality, paths, etc.) - run
Python twitch-archive.pyor for multiple streamersPython twitch-archive.py -u streamer