How to find the best moments in a 6-hour stream without watching it
The slowest part of clipping isn't editing. It's sitting through hours of stream to find the 10 moments worth posting. Chat has already done that work for you.
Why chat is the best signal
When something happens on stream, chat reacts within seconds: a wall of KEKW, NO WAY, W, clips being requested. Thousands of viewers are effectively voting on what was worth watching. The streamer's voice isn't nearly as reliable. Plenty of great gaming moments are silent until the reaction, and plenty of loud moments are just the streamer talking.
Five things that make chat spikes work
1. Count in short windows
Count messages in 5-second windows. Per-minute counts blur two moments together; per-second counts are too noisy.
2. Compare to that stream, not a fixed number
200 messages in 5 seconds is nothing for a top streamer and a once-a-year event for a small one. Compare each window to the stream's normal level around it: the median of the last few minutes works well. A spike is a window far above its own baseline.
3. Shift for chat lag
Viewers see the stream a few seconds late and then need time to type. The peak usually lands 4 to 8 seconds after the moment itself. Shift your timestamps back by about 6 seconds before cutting.
4. Weigh reactions over chatter
A message in caps, a laughing emote or a stretched NOOOOO says more than "hi from Brazil". Give reaction messages extra weight and normal messages less.
5. Throw out polls
The most common false spike: the streamer asks a question and chat answers it. Hundreds of 1, 2, yes, left look exactly like hype to a simple counter. If most messages in a spike are the same short answer, skip it.
Do it yourself in 40 lines of Python
Download the chat as JSON with TwitchDownloader, then run this Python script on it. It prints up to 10 of the biggest spikes, with their timestamps:
import json, re, statistics, sys
WINDOW, LAG, BASELINE_S = 5, 6, 300
REACTION = re.compile(r"KEKW|LUL|OMEGALUL|LMAO|NO+ WAY|W+$|POG|\?\?\?|ICANT|HOLY", re.I)
chat = json.load(open(sys.argv[1], encoding="utf-8"))["comments"]
bins = {}
for c in chat:
text = c["message"]["body"]
if text.strip().lower() in {"1", "2", "yes", "no", "left", "right"}:
continue # poll answers, not hype
w = 1.0 if REACTION.search(text) or text.isupper() else 0.5
t = int((c["content_offset_seconds"] - LAG) // WINDOW)
bins[t] = bins.get(t, 0) + w
n = max(bins) + 1
vals = [bins.get(i, 0) for i in range(n)]
k = BASELINE_S // WINDOW
scores = []
for i, v in enumerate(vals):
if i < 12:
continue # no baseline yet in the first minute
around = vals[max(0, i - k):i]
base = statistics.median(around) + 1
scores.append((v / base, i))
picked = []
for score, i in sorted(scores, reverse=True):
if score < 3:
break # the rest is normal chatter
if all(abs(i - j) * WINDOW > 45 for _, j in picked): # one clip per moment
picked.append((score, i))
if len(picked) == 10:
break
for score, i in sorted(picked, key=lambda p: p[1]):
s = i * WINDOW
print(f"{s // 3600}:{s % 3600 // 60:02d}:{s % 60:02d} x{score:.1f}")
Run it with python spikes.py chat.json. The output is a list like 2:14:35 x9.4, meaning chat was 9.4 times its normal level at 2:14:35. Cut from about 20 seconds before each timestamp to 10 seconds after.
When there's no chat: use the audio
Kick VODs don't come with a downloadable chat replay, and some channels have chat replays turned off. Then the audio is your best signal: measure loudness every second and flag moments much louder than the stream's own normal level. It works well for yelling and laughter. It misses quiet moments, which is why chat comes first when it's available.
What VodHound does on top
VodHound runs this same idea, tuned on real streams: chat weighted by reactions and measured against a rolling baseline, audio as a second signal, polls filtered out, and clip edges padded so the setup is included. Then it cuts each moment into a vertical clip with the webcam on top and captions burned in. On a 35-minute test of a live Twitch stream, it found 16 moments, about one every two minutes.