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

is there a way to fix words that are displayed at the same time (ass>srt) #101

Open
nwgat opened this issue Oct 20, 2024 · 3 comments
Open
Assignees

Comments

@nwgat
Copy link

nwgat commented Oct 20, 2024

am having a issue with ass > srt conversion, some of the text does not show as they seem to be at the same time, is there a way to detect words that are timestamped the same time and just shift them forward and back a little during pysubs2 conversion?

using the pysubs cli

nice work on this project btw :)

@tkarabela tkarabela self-assigned this Oct 21, 2024
@tkarabela
Copy link
Owner

Hi @nwgat, can you provide an example file where this happens? I'm not exactly sure what you mean.

There is currently nothing to handle such things at the CLI level, but it should be reasonably simple to script. If it's something generally useful I'm happy to add it to the CLI for everybody.

@nwgat
Copy link
Author

nwgat commented Oct 21, 2024

ASS

Dialogue: 0,0:13:57.02,0:13:59.69,Default,NTP,0,0,0,,You guys, what are you doing—
Dialogue: 0,0:13:59.69,0:14:12.45,Default,OS,0,0,0,,{\an9}THE\NFIVE-COLORED\NCLOUDS
Dialogue: 0,0:14:00.11,0:14:02.02,Default,NTP,0,0,0,,Please stay in bed for now.

SRT from pysubs2

250
00:13:57,020 --> 00:13:59,690
You guys, what are you doing—

251
00:13:59,690 --> 00:14:12,450
THE
FIVE-COLORED
CLOUDS

252
00:14:00,110 --> 00:14:02,020
Please stay in bed for now.

the OS one is the issue, when i play this sub on jellyfin androidtv player the only the OS line is shown not any of the rest of the NTP lines during the duration of the OS line

the solutions are probably to

  • make the OS lines stop when next NTP line start
  • strip out OS (will lose some lines, so not the best idea, i suspect OS is mostly used for chapters etc)

@nwgat
Copy link
Author

nwgat commented Oct 21, 2024

i think ive figured it out, make the OS lines stop when next NTP line start, that way everything shows on screen, there should also be a way to make the OS line before NTP line show a little earlier and still not clash with the NTP line, but thats not that critical

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