Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Subtitles
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 5th April 2022, 15:15   #1  |  Link
cubicibo
Registered User
 
Join Date: Feb 2022
Posts: 9
I think so?
Quote:
Originally Posted by screamingtrees View Post
Thanks for the reply. I tried this using a "copy sub1.sup+sub2.sup output.sup" command, but it seems like it's not going to work for my purposes. I can't seem to get a "blank" sup segment to keep it's duration when rejoining.
Assuming the timing were resets by the splitting tool, try this very elementary python script which will move all timestamps of sub2.sup to a value of your calculation (probably equal to duration of part1 + duration of subtitle-sliced sequence).

Usage:
Code:
python3 pgshift.py input.sup MS output.sup [-dts]

Where:
   MS is the shift delay in MILLISECONDS to add or subtract. It must be an integer.
   -dts, if provided, also shifts the decoding timestamps
I have seen a few streams which sets PTS = DTS at all time. In general you don't need to specify the optional -dts argument (and in fact it should not matter).

When done, concatenate the two files and hopefully the subtitles appears now properly.
Attachments Pending Approval
File Type: txt pgshift.txt

Last edited by cubicibo; 5th April 2022 at 15:33.
cubicibo is offline   Reply With Quote
Reply

Tags
.sup file, pgs subtitle, subtitle splitter, sup file


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 19:21.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.