stream2clip

stream2clip user manual

Version
v0.19
Audience
Users of the Windows installer, the executables and the Python package
Source
github.com/BudongJW/stream2clip

Installation

Windows installer

  1. Download the Windows installer (setup.exe) from the releases page and run it
  2. Choose the language on the first page: Korean, Japanese or English. It is used for the installer and for the app
  3. Confirm the folder. No administrator rights needed
  4. On the additional tasks page, keep Download ffmpeg ticked and install. ffmpeg (115 MB), which video conversion needs, is downloaded during the installation. The task is not shown on a PC that already has ffmpeg
  5. Start stream2clip from the Start menu
Components window: state, purpose, place and fix for each component
Components window. ffmpeg and the face detection model can be downloaded from it
Start window on a PC without ffmpeg: the notice at the top with the Download ffmpeg button
Start window on a PC without ffmpeg. The notice goes away once ffmpeg is there

Note

  • Not code signed. Windows SmartScreen may show a warning
  • Smart App Control may block the programs. Use the Python package in that case
  • File integrity: compare the SHA-256 value on the releases page with the result of the command below
Get-FileHash .\stream2clip-*-windows-x64.zip -Algorithm SHA256

Python package

pip install "stream2clip[gui,ingest,obs] @ git+https://github.com/BudongJW/stream2clip"
stream2clip gui
ExtraFunction
asrSpeech-to-text subtitles (Whisper)
detectAutomatic detection of the avatar position
uploadYouTube upload

Extras are added inside the square brackets of the install command. Speech-to-text subtitles and YouTube upload are provided by the Python package.

Basic use

Launcher: capture, screen recording and clip areas
Launcher. From the top: capture, screen recording, clips
ShortcutFunction
F8Capture a screen area and open it in the editor
F9Select an area and start recording. Press again to stop and save
F10Save the OBS replay buffer and convert it to a clip. Only when switched on in the launcher

Screen capture and editing

Editor: toolbar, colour palette, width, undo, copy, save
Editor
KeyTool or action
V P HSelect, pen, highlighter
R A TBox, arrow, text
M E CMosaic, erase, crop
IEyedropper (pick a colour from the screen)
[ ]Decrease, increase the width
Ctrl+Z, Ctrl+YUndo, redo
Ctrl+C, Ctrl+SCopy, save
DeleteRemove the selected annotation

Screen recording

  1. Choose the output format, frame rate and size in the launcher
  2. Press F9 and drag the area to record. Recording starts at once
  3. Press F9 again to stop and save
FormatCharacteristics
GIFPlays almost everywhere. Transparency has two levels
MP4Small files
WebPGood picture quality. Soft transparent edges
WebMVideo with transparency

Transparent background

Highlight clips

Detection, adjustment of spans and export are done in Find highlights in the launcher.

Highlights window: input files at the top, timeline and list of spans in the middle, export settings on the right
Highlights window. Pink bars are detected spans, the yellow frame is the selected span

Input

FieldContent
VideoArchive file or stream address
ChatChat replay file. Collected automatically for a stream address
InfoOptional. Title and address of the source stream, used for the description text
SubtitlesOptional. SRT or WebVTT file

Start from a stream address

Procedure

  1. Run Find highlights. Spans with chat activity above normal appear on the timeline and in the list
  2. Adjust spans on the timeline. Drag the middle to move, drag an edge to change the start or end, use the wheel or a double click to zoom
  3. Select the spans to export and choose the layout and format
  4. Run Export clips. The save folder receives the clips, subtitle files (.ass) and description texts (.txt)

Video, chat, info and subtitle files can be dropped onto the window.

Compilation and editing programs

ItemDescription
Source creditThe text is shown small in the top left corner of each clip. Example: Source: channel name
Music, sound effectEnter a downloaded music file, or a name in the sound library, under Music. It plays under the clip's sound and goes lower while someone speaks. The sound effect is one of five built-in ones, or Auto (matched to chat's reaction), at the peak, the start or the end. Record a track's source and license with stream2clip sounds add: the description credit and the check use them. MP4 and WebM only
Sound libraryLibrary on the music row adds a downloaded file with its license, title, author, page and credit wording. The description credit and the check result are shown while typing. A chosen track becomes the music
LoudnessBring to -14 LUFS sets the clip's sound to YouTube's reference loudness, measured once and then raised or lowered by one fixed amount (MP4, WebM)
Shorten quiet partsStretches of a clip that stay quiet for more than 0.7 s are cut down to a short pause. Captions move along. Judged by loudness, so check the result before posting
CompilationWhen ticked, the exported clips are also joined in stream order into compilation.mp4, with the chapter list compilation.txt
Export for editingSaves the ticked spans as a cut list highlights.edl, timeline markers markers.edl and a timestamp list timestamps.txt, to go on in DaVinci Resolve, Premiere Pro and others

Video type and opening

ItemDescription
Video typeShorts (vertical, 15-90 s), horizontal clip (1-3 min) or horizontal compilation (about 10 minutes of 6 clips, with chapters). Sets the layout, the compilation, the context line, the caption style (sentence captions for horizontal videos, karaoke for Shorts) and the number of spans together; picked before finding highlights, it also sets their length. Most clip channels post horizontal videos
Context lineOne line on the stream's topic at the top for the first 3 seconds, such as the game name in the brackets of the stream title
Peak teaserOpens the clip with 2 seconds of its peak before the clip itself (MP4, WebM)
ThumbnailA 1280x720 image (clip_01.jpg) of the sharpest frame near the peak, with the start of the title in large type. Zoomed onto the avatar when its position is set
Title, hashtagsA suggested title per clip from the line at the peak, the talent's name and the agency's name, filled into the upload window. Korean titles without an agency read [name] line. Hashtags at the end of the description (Korean adds the CHZZK or SOOP platform tag and kirinuki, up to five). Exaggerated words are flagged by the check
Collab guests, channel linksCollab guests (separated by commas) go at the end of the title as (w/ name). Channel links go under the original channel line of the description. The contact line adds a sentence for streamers without clip guidelines. The description is written in the title's language, with a line for the stream date
Upload categoryThe category in the upload window. Auto picks Gaming when the original stream was a game stream, People & Blogs otherwise. A category can also be picked by hand
EffectsOnly at the peak: a short zoom and one emphasised caption word (Subtle), plus a tag for the chat's reaction (Variety). Left out when neither the moment the sound rises nor a VTube Studio hotkey press is clear. Reduce motion emphasises the word more instead of zooming
Reused content checkFlags clips only cut from the stream, with no captions, context line or teaser. Under YouTube's reused content policy, commentary or captions by the editor are needed before posting

Layouts

NameComposition
blurStream picture in the centre, blurred copy filling the space above and below
centerCentre of the picture enlarged to the vertical frame. Left and right are cut off
fitWhole picture scaled down to fit
stackAvatar on top, game picture below. Find it detects the avatar position
pipGame picture fills the frame, avatar in a corner. Find it detects the avatar position
Avatar videoOptional for stack and pip. A recording of the avatar alone is laid over the game with its green background removed. A transparent video is used as it is
9:16 layouts center, blur and stack with karaoke subtitles
Layout examples, made with the brand image as the stream picture

Detection options

Download of a whole stream

The command below saves the video, chat and stream information to the vod folder when the whole video is needed.

stream2clip.exe fetch "STREAM_ADDRESS" -o vod --video

Subtitles and translation

ItemContent
Subtitle fileSRT and WebVTT. YouTube automatic captions can be used
KaraokeColour follows the spoken word. Applies to subtitles with word timing
Style27 looks and 7 places. Default, Box, Pink highlight and Small use an installed font that suits the language of the captions; the others use free fonts (14 Korean, 6 Japanese, 4 English, SIL Open Font License), downloaded on first use and checked against their checksums. Places: Bottom, Bottom edge, Middle, Top, and for Shorts right under, over and right above the stream picture. Sizes follow Korean clip channels (about 4.5% of the height in Shorts, 5.5% in horizontal clips)
Snap to spoken linesWith a subtitle file, the start and the end of each span move to the edge of a subtitle line. Limit 3 seconds. Applied when highlights are searched
TranscriptionSubtitles made from speech when there is no file (Whisper small, medium, large-v3-turbo, large-v3). The large models need a GPU to be quick. Provided by the Python package
TranslationChoose a translator file in the translator list with translators\openai_compatible.py translates through an OpenAI compatible address such as a local Ollama
GlossaryCSV with two columns, source and translation. Fixes names and other set terms. Transcription takes the names as hints, and misheard spellings in a heard column are corrected to the names
Keep originalOriginal and translation shown on two lines
Caption checkFor each exported clip, lines too fast to read, too wide for the frame, shown too briefly or repeated, and phrases transcription invents over silence are listed in clips.json and counted

OBS replay

Saves the recent moments held in the OBS replay buffer and converts them to a clip.

Preparation in OBS

  1. Enable the replay buffer in the Output section of the OBS settings. It is off after a new installation
  2. Enable the server in the WebSocket server settings of the OBS Tools menu and check the password
  3. Start the replay buffer in OBS when the stream starts

Settings and use in stream2clip

  1. Enter the OBS password in Connection in the launcher. The password is not saved and is entered at every start
  2. Set the length to keep in Last and run Save replay. The format and size of the recording settings are used
  3. With F10 checked, F10 saves while other programs are in use. Other programs do not receive F10 meanwhile

Live mode

Detects a chat surge during a stream, saves the OBS replay buffer and cuts the moment out as a clip of about 35 seconds.

Prerequisites

Procedure

  1. Enter a live address on YouTube, Twitch, CHZZK or SOOP in the Live mode field of the launcher
  2. Choose the sensitivity. High saves on small surges, Low only on large ones
  3. Run Start live mode. A chat surge creates a clip named live_DATE_TIME in the save folder
  4. End with Stop live mode

How it decides

Command line

stream2clip.exe live "https://www.youtube.com/watch?v=VIDEO_ID" -o clips
OptionFunction
--thresholdLevel that triggers a save. Default 3.5. A higher value saves less often
--no-obsReports surges without saving
--simulateShows when a finished stream would have triggered, from its chat file
--delayReaction delay of viewers. Streamers add their stream latency

Stream recorder

Records the chat, markers, OBS scenes and the position and expression of the VTube Studio avatar into a session file during the stream, for making clips afterwards. OBS records the video.

Procedure

  1. Open Stream recorder in the clip area of the start window
  2. Enter the live address of the streamer's own channel and choose whether to use OBS and VTube Studio. In VTube Studio, switch the API on in the settings and press Allow in the plugin popup the first time
  3. Enter the name of the OBS source that shows VTube Studio. It places the avatar box when clips are made
  4. Run Start recording. At a moment to keep, press Mark now or F11 (when switched on)
  5. After the stream, Stop recording, then Find highlights opens the session file in the highlights window

What is recorded and what for

Settings in the highlights window

Command line

stream2clip.exe session record --chat "https://chzzk.naver.com/live/CHANNEL_ID" --vts --vts-source "VTube Studio"
stream2clip.exe auto vod.mp4 -o clips --session session.jsonl --skip-scene waiting --layout stack --avatar session

Command line

Every function of the app is available through stream2clip.exe. Used for processing several streams in one go.

CommandFunction
fetchDownload of stream information, chat, video and subtitles from a stream address
autoFrom a video with chat, or from a stream address, to finished clips
highlights, clipsDetection and export as separate steps
convertCuts a span and area of a video and converts it to GIF, WebP or MP4
record, captureRecording and capture of a screen area
replay, liveOBS replay save, live mode
checkCompares a description text with the guideline items of an agency
stream2clip.exe auto "STREAM_ADDRESS" --top 5 -o clips
stream2clip.exe auto vod\video.mp4 --chat vod\VIDEO_ID.live_chat.json --info vod\info.json -o clips
stream2clip.exe convert vod.mp4 --start 1:02:03 --end 1:02:18 --width 480 -o highlight.webp

All options: add --help to a command. More examples in the README (Korean).

Troubleshooting

SymptomAction
Program blockedCaused by the missing code signature. Use the Python package where Smart App Control is on
Newer version noticeShown at the top of the start window. Open the download page gets the new installer, Stop asking ends the check. It asks at most once a day and sends nothing about the user
ffmpeg not foundUse the Download ffmpeg button on the app's start window, or stream2clip setup --ffmpeg on the command line. After installing it yourself: Look again, or restart the program
No spans foundLower the threshold and run again. Check that the chat file belongs to the stream
YouTube asks for sign-inPass browser cookies on the command line with --cookies-from-browser chrome
Replay buffer not runningEnable the replay buffer in the Output section of the OBS settings and start it. OBS does not start the buffer for a scene without sources
No connection to OBSCheck that the WebSocket server is enabled, and the password and port (default 4455)
Live mode clip misses its beginningSet the maximum replay time in OBS to 60 seconds or more
F8 or F9 without effectClose the other program that uses the same key and restart

Other problems: GitHub issues.

Copyright and guidelines

  • A clip is a derivative work of the source stream. The guidelines of the creator and of the agency apply
  • Choosing an agency in the guideline list of the export settings writes a description text with the source title and address and checks the guideline items
  • Items checked: members-only stream, public archive, channel registration, disclosure of AI use
  • The results are for reference and are not legal advice. Read the original guidelines of the agency and the creator before uploading