Skip to content

How to insert a delay at specific timestamp? #26

@joelishness

Description

@joelishness

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions