Open tony95271 opened 1 year ago
How did you come up with this .ass
file ? 🤔
Its content is weird :
1) Only eng
style is declared
2) In events, styles *eng
and *chs
are requested but it won't match anything with the leading *
I extract it from a MKV media file via
ffmpeg -hide_banner -loglevel error -y -i /tmp/Armageddon.1998.mkv -copyts -map 0:3 -an -vn -c:s copy /tmp/3.ass
BTW ffmpeg v5.1.2 extract it into WebVTT it works good as expected
ffmpeg -hide_banner -loglevel error -y -i /tmp/Armageddon.1998.mkv -copyts -map 0:3 -an -vn /tmp/3.vtt
both IINA v1.3.1(mpv 0.34.1) and VLC v3.0.17.3 parse the same Armageddon.1998.mkv subtitle stream successfully.
Could you share the WebVTT
generated by ffmpeg
?
I've pushed a fix on master
, could you check this fixes your issue?
Also could you share both ffmpeg
's webvtt as well as astisub
's webvtt to check the differences?
Could you share the
WebVTT
generated byffmpeg
?
its original file too long, here is first 20 lines
head -n 20 /tmp/3.vtt
WEBVTT
00:53.110 --> 00:55.230
This is the Earth at a time...
00:53.110 --> 00:55.230
这是地球
00:55.360 --> 01:00.190
when the dinosaurs roamed a lush and fertile planet.
00:55.360 --> 01:00.190
那是恐龙称霸的时代 万物滋长 欣欣向荣
01:07.580 --> 01:11.030
A piece of rock just six miles wide...
01:07.580 --> 01:11.030
一块只有六里宽的石头
IINA and VLC auto merge and show the same timestamp eng and chs lines in view
I've pushed a fix on
master
, could you check this fixes your issue?Also could you share both
ffmpeg
's webvtt as well asastisub
's webvtt to check the differences?
nope, it doesn't works.
I think it is a good idea that go-astisub should use above ass and vtt subtitles snippet as test sample, check it in and out data.
nope, it doesn't works.
What is going wrong?
cat /tmp/Armageddon.1998.ass
reproduct bug
it shows
2022/12/13 21:32:07 astisub: style *eng not found while opening /tmp/Armageddon.1998.ass