Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/breuerfelix/highzer
Twitch Stream Analyzer
https://github.com/breuerfelix/highzer
analyzer automated clip stream twitch upload youtube
Last synced: 3 months ago
JSON representation
Twitch Stream Analyzer
- Host: GitHub
- URL: https://github.com/breuerfelix/highzer
- Owner: breuerfelix
- Created: 2020-08-18T14:53:15.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-09T12:54:32.000Z (4 months ago)
- Last Synced: 2024-10-12T00:27:05.939Z (3 months ago)
- Topics: analyzer, automated, clip, stream, twitch, upload, youtube
- Language: Python
- Homepage:
- Size: 94.7 KB
- Stars: 6
- Watchers: 4
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# highzer
Twitch Stream Analyzer and Video Cutter
## Dependencies
- poetry
- python
- ffmpeg
- imagemagick__Recommended:__ Run your scripts in a container with the `Dockerfile` provided in this Repo.
## Setup and Run
### Docker
```bash
docker run --rm -v /home//:/usr/app/data ghcr.io/breuerfelix/highzer:latest highzer --help
```### Native
```bash
poetry install
poetry shell
highzer --help
# or
nix-shell
highzer --help
```## Nice to Know
[YouTube Channel](https://www.youtube.com/channel/UC0M8qvpFLG_QoimeBih_6nA) which i automate with this script.
```bash
# broadcast ID
export ID = ""# download a broadcast
streamlink -o "output.ts" "https://www.twitch.tv/videos/$ID" best
# convert to mp4
ffmpeg -i output.ts -c copy output.mp4# download chat
tcd --video $ID --output ~/code/twitch-analyzer --format json# extract audio from mp4
ffmpeg -i output.mp4 -map 0:a sound.wav# chunk wav files
ffmpeg -i raw.mp4 -map 0:a -segment_time 00:30:00 -f segment chunk%03d.wav
```## ToDo
- package this to pypi
- schedule videos
- add videos to playlist