Sign inSign up

felixbreuer/highzer

By felixbreuer

•Updated almost 5 years ago

Image
0

10K+

felixbreuer/highzer repository overview

⁠highzer

Twitch Stream Analyzer and Video Cutter

⁠Dependencies

  • ffmpeg
  • poetry
  • selenium
  • firefox
  • geckodriver

Recommended: Run your scripts in a container with the Dockerfile provided in this Repo.

⁠Setup and Run

poetry install
poetry shell
python highzer/highzer.py --help

⁠Nice to Know

YouTube Channel⁠ which i automate with this script.

# 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

Tag summary

Content type

Image

Digest

Size

435.3 MB

Last updated

almost 5 years ago

docker pull felixbreuer/highzer