go-astisub icon indicating copy to clipboard operation
go-astisub copied to clipboard

not support .ass file?

Open rhettli opened this issue 3 years ago • 4 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.

rhettli avatar Jun 01 '22 10:06 rhettli

.ssa file is not .ass file?

rhettli avatar Jun 01 '22 10:06 rhettli

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

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

rhettli avatar Jun 01 '22 10:06 rhettli

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

rhettli avatar Jun 01 '22 10:06 rhettli

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 🤔

asticode avatar Jun 01 '22 14:06 asticode