Skip to content

Formats

Petter Kraabøl edited this page Jan 8, 2019 · 12 revisions

Download all formats

The --format all argument can be used to download all formats in one go. You may whitelist or blacklist format names by adding "all": {..} in the settings file, within "formats": {...}.

"all": {
    "whitelist": ["irc", "srt"]
}
"all": {
    "blacklist": ["kappa"]
}

IRC

# zarlach/v212503931.log

[10:24:30] <@Zarlach> Hello
[10:24:35] *Zarlach backflips
Symbol Description
~ Broadcaster
& Twitch Staff
! Admin
* Global moderator
@ Chat moderator
% Subscriber
+ Turbo/Premium (Prime)

Badges can be customized in the settings file.

JSON

Raw JSON data directly from the Twitch API.

# zarlach/v212503931.json

{
    "video": {...},
    "comments": [{...}]
}

SRT Subtitles

# zarlach/v212503931.srt

1
0:00:12,000 --> 0:00:14,000
Zarlach: spam Kappa

2
0:00:13,000 --> 0:00:15,000
Zarlach: Kappa

duration in milliseconds can be configured in the settings file.

Note that some messages will overlap.

SSA Subtitles

SSA subtitles can be customized in the settings file and edited with programs like Aegisub.

# zarlach/v212503931.ssa

[Script Info]
Title: Happy New Year! Streaming @ my parents house, been a long time since i've streamed here, I hope their internet works. 
ScriptType: v4.00
Collisions: Normal
PlayResX: 1280
PlayResY: 720
PlayDepth: 0
Timer: 100,0000

[V4 Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, TertiaryColour, BackColour, Bold, Italic, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, AlphaLevel, Encoding
Style: Default,Arial,21,16777215,8793979,0,-2147483640,0,0,1,1.5,0,11,30,30,30,0,0

[Events]
Format: Marked, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: Marked=0,0:00:15.98,0:00:17.98,Default,MoeAltorbeny,0000,0000,0000,,{\c&H9ACD32&}MoeAltorbeny {\c&HFFFFFF&}SAVED
Dialogue: Marked=0,0:00:19.19,0:00:21.19,Default,ZedExhe,0000,0000,0000,,{\c&H20E3F6&}ZedExhe {\c&HFFFFFF&}@hnl my dream is for you to notice me BibleThump

default_user_color with the ssa format in settings.json can be set to either a hex color or random to specify a color for users who have not set their own.

Changing SSA styles and format

It's recommended to use Aegisub to style the subtitles.

Exporting styles and format to TCD is done manually by opening the .ssa file generated by Aegisub in a text editor and transferring the settings under [V4 Styles] and [Events] into the settings file under formats.ssa.styles and formats.ssa.events.

Clone this wiki locally