User Tools

Site Tools


howto:srt-time-shift

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howto:srt-time-shift [2022/10/25 16:54] Wulf Rajekhowto:srt-time-shift [2023/05/29 11:55] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== SRT time shift ====== ====== SRT time shift ======
  
-This script shifts timestamps of an SRT subtitle file by x seconds.+This script outputs shifted timestamps of an SRT subtitle file by x seconds. Redirect output into a new file, overwriting the existing file does not work.
  
 usage: usage:
 <code> <code>
 #add 1 second #add 1 second
-python3 srt_shift.py subtitle.srt +1+python3 srt_shift.py subtitle.srt +1 > subtitle_new.srt
  
 #subtract 1 second #subtract 1 second
-python3 srt_shift.py subtitle.srt -1+python3 srt_shift.py subtitle.srt -1 > subtitle_new.srt
 </code> </code>
  
howto/srt-time-shift.1666713284.txt.gz · Last modified: 2023/05/29 11:53 (external edit)