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

Next revision
Previous revision
howto:srt-time-shift [2022/06/13 12:49] – created 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.+This script outputs shifted timestamps of an SRT subtitle file by x secondsRedirect output into a new file, overwriting the existing file does not work. 
 + 
 +usage: 
 +<code> 
 +#add 1 second 
 +python3 srt_shift.py subtitle.srt +1 > subtitle_new.srt 
 + 
 +#subtract 1 second 
 +python3 srt_shift.py subtitle.srt -1 > subtitle_new.srt 
 +</code>
  
 <code - srt_shift.py> <code - srt_shift.py>
howto/srt-time-shift.1655120971.txt.gz · Last modified: (external edit)