SubtitleEdit / plugins

Plugins for Subtitle Edit
GNU General Public License v3.0
91 stars 44 forks source link

Waveform/Spectogram - Visual support for different Regions/Styles #245

Open MitchSirco opened 3 months ago

MitchSirco commented 3 months ago

Currently, when you work with multiple subtitle regions, who overlap each other, the UI on the Waveform looks a bit messy. image It also makes it annoying to work if, if don't want to enable "allow overlap" in the settings.

What if the Waveform can show different regions, each on their in their own "track"? image (i tried to make it myself, but my lack of understanding how it fully works, stopped me)

This is inspired by davinci resolve, which allows you to create subtitle tracks for better visual clarity image

ASS subtitle sample:

[Script Info]
; This is an Advanced Sub Station Alpha v4+ script.
Title: ValueSubtitless
ScriptType: v4.00+
PlayDepth: 0
ScaledBorderAndShadow: Yes
PlayResX: 2560
PlayResY: 1440

[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: ValueSubtitles_style,proportionalSansSerif,80.0,&H00FFFFFF,&H0300FFFF,&H18000000,&H26000000,0,0,0,0,100,100,0,0,3,2,0.0,2,10,10,10,1
Style: bottom-center_style,proportionalSansSerif,80.0,&H00FFFFFF,&H0300FFFF,&H26000000,&H18000000,0,-1,0,0,100,100,0,0,3,2,2,8,10,10,10,1

[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: 0,0:17:21.40,0:17:24.15,ValueSubtitles_style,,0,0,0,,I look up sometimes and to my surprise
Dialogue: 0,0:17:24.15,0:17:26.65,ValueSubtitles_style,,0,0,0,,I can finally breathe, woah
Dialogue: 0,0:17:26.18,0:17:26.67,bottom-center_style,,0,0,0,,{\an8}(woah)