SubtitleEdit / subtitleedit

the subtitle editor :)
http://www.nikse.dk/SubtitleEdit/Help
GNU General Public License v3.0
8.32k stars 889 forks source link

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

Open MitchSirco opened 1 month ago

MitchSirco commented 1 month ago

Currently, when you work with multiple subtitle regions (supported by .TTML, .ASS and probably others), that 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 on how the waveform 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)

(i definitely did not accidentally post this in the wrong repository lol)

LeonCheung commented 1 month ago

Oh yeah, having to work with overlapped stuff can often be quite painful. A multi-track/multi-layer waveform is a long-term dream for me as well. XD

Similar to many video editors like Premiere and FCP, it's the ultimate solution, especially for advanced formats like ASSA. (if not with unlimited counts, it can be fairly enough to have up to 5 tracks for 99.9% of cases IMHO).

Benefits may include:

  1. Say goodbye to the pain of working with overlaps.
  2. Perfect for working with things like ASSA BG boxes or other necessary overlaps (e.g. your example above).
  3. Checking/fixing desync issues in Translation mode can be much easier because two individual subtitles can be possibly displayed in one view (not quite for ASSA here, but can be great to have)

I know it's not easy to implement but the benefits are really nice to have. BTW, there's an old discussion, see #1344. Now I feel my old UI proposal isn't quite ideal, but it shares a similar idea.