tkarabela / pysubs2

A Python library for editing subtitle files
http://pysubs2.readthedocs.io
MIT License
320 stars 40 forks source link

Optional time format in SSA/ASS #19

Open latot opened 6 years ago

latot commented 6 years ago

Hi, i found the player can reproduce files with 0:01:19.24 and 0:01:19:24 formats, i don't know if in the specs or if should be supported here.

Bye.

moi15moi commented 2 years ago

It should not work.

Libass only support the X:XX:XX.XX format: https://github.com/libass/libass/blob/5f57443f1784434fe8961275da08be6d6febc688/libass/ass.c#L233

But ffmpeg did something different. This is why it can work on some player: https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/assdec.c#L60