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

How to insert a delay at specific timestamp? #26

Open
joelishness opened this issue Jan 1, 2025 · 0 comments
Open

How to insert a delay at specific timestamp? #26

joelishness opened this issue Jan 1, 2025 · 0 comments

Comments

@joelishness
Copy link

Hello,
I have a PGS .sup and I would like to add in a delay of 189 seconds at timestamp 00:44:45
In other words, no delay before 00:44:45, and after 00:44:45 delay 189 seconds.
Is it possible to accomplish this?

I don't see that supported as an explicit option, but maybe I could do something like this?

  1. --delay 189000 to make a shifted .sup
  2. --cut_merge to combine the original (up to 00:44:45) and shifted (after 00:48:09)

If so, could you please help me with the correct commands and options to use?

FYI, here is the --trace for the last subtitle that I want to keep unchanged:

+ DS
  + PTS: 0:44:42.846
  + PCS Segment: offset 0xf73975
    + Video size: 1920x1080
    + Composition number: 1500
    + Composition state: Epoch Start
    + Palette ID: 0
    + Composition object
      + Object ID: 0
      + Window ID: 0
      + Position: 774,916
  + WDS Segment: offset 0xf73995
    + Window
      + Window ID: 0
      + Position: 774,916
      + Size: 368x57
  + PDS Segment: offset 0xf739ac
    + Palette ID: 0
    + Version: 0
    + Palette entries: 84
  + ODS Segment: offset 0xf73b5f
    + Object ID: 0
    + Version: 0
    + Size: 368x57
  + END Segment: offset 0xf75d55
+ DS
  + PTS: 0:44:44.056
  + PCS Segment: offset 0xf75d62
    + Video size: 1920x1080
    + Composition number: 1501
    + Composition state: Normal
    + Palette ID: 0
  + WDS Segment: offset 0xf75d7a
    + Window
      + Window ID: 0
      + Position: 774,916
      + Size: 368x57
  + END Segment: offset 0xf75d91

And the the first (and all subsequent ones) that I want to --delay 189000:

+ DS
  + PTS: 0:44:52.982
  + PCS Segment: offset 0xf75d9e
    + Video size: 1920x1080
    + Composition number: 1502
    + Composition state: Epoch Start
    + Palette ID: 0
    + Composition object
      + Object ID: 0
      + Window ID: 0
      + Position: 811,915
  + WDS Segment: offset 0xf75dbe
    + Window
      + Window ID: 0
      + Position: 811,915
      + Size: 300x61
  + PDS Segment: offset 0xf75dd5
    + Palette ID: 0
    + Version: 0
    + Palette entries: 92
  + ODS Segment: offset 0xf75fb0
    + Object ID: 0
    + Version: 0
    + Size: 300x61
  + END Segment: offset 0xf782f2
+ DS
  + PTS: 0:44:54.483
  + PCS Segment: offset 0xf782ff
    + Video size: 1920x1080
    + Composition number: 1503
    + Composition state: Normal
    + Palette ID: 0
  + WDS Segment: offset 0xf78317
    + Window
      + Window ID: 0
      + Position: 811,915
      + Size: 300x61
  + END Segment: offset 0xf7832e
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

1 participant