Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not support .ass file? #68

Open
rhettli opened this issue Jun 1, 2022 · 4 comments
Open

not support .ass file? #68

rhettli opened this issue Jun 1, 2022 · 4 comments

Comments

@rhettli
Copy link

rhettli commented Jun 1, 2022

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
Copy link
Author

rhettli commented Jun 1, 2022

.ssa file is not .ass file?

@rhettli
Copy link
Author

rhettli commented Jun 1, 2022

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

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

@rhettli
Copy link
Author

rhettli commented Jun 1, 2022

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

@asticode
Copy link
Owner

asticode commented Jun 1, 2022

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 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants