Open
Description
Currently ms_to_frames and frames_to_ms does not works correctly. They can be imprecise.
I did a pullrequest on the PyonFx repos and I think it could be a good idea to do something similar with pysubs2: CoffeeStraw/PyonFX#46
I recommand you to look at these two file of my PR. These are the only one that matters for pysubs2.
- pyonfx/convert.py
- pyonfx/timestamps.py
In brief, here is all the method I propose to change:
-
ms_to_str, should add this little part for the .ass and .saa format: ass_ms = (ass_ms + 5) - (ass_ms + 5) % 10
-
ms_to_frames(Current version) should be something like this: ms_to_frames
-
frames_to_ms (Current version) should be something like this: frames_to_ms- Corrected version