asticode / go-astisub

Manipulate subtitles in GO (.srt, .ssa/.ass, .stl, .ttml, .vtt (webvtt), teletext, etc.)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

not support .ass file?

rhettli opened this issue · comments

s1, err := astisub.OpenFile("Call.Me.by.Your.Name.2017.BluRay.ass")
if err != nil {
	return nil, err
}

// s1.items is nil, why ,if subtitle file is .srt ,it works.

.ssa file is not .ass file?

Call.Me.by.Your.Name.2017.BluRay.ass.txt

i am sorry,just this ass file can not parse,i try others ok

ass two language trs like one,so i must write myself,but still thanks,.srt still works

I think the problem comes from the fact that the file is UTF16-LE encoded and astisub doesn't handle it well. If you encode your ass file in utf8 it seems to be fine 🤔