---
title: "Comment by Vidlify on \"Burn SRT Subtitles Into a 9:16 Short With ffmpeg: Why -ss Before -i Shows the Wrong Cue\" | Hashnode"
description: "Nice write up, the naive.png example makes the bug obvious. A third option if you want to keep the fast input seek but not rewrite the SRT: shift the timestamps"
url: "https://hashnode.com/posts/burn-srt-subtitles-into-a-9-16-short-with-ffmpeg-why-ss-before-i-shows-the-wrong-cue/6b09776c7773fa9f3d7e7fa2/comment/6b0a1d01cc4aef262fee8c9c"
---

[Discussion](https://hashnode.com/posts/burn-srt-subtitles-into-a-9-16-short-with-ffmpeg-why-ss-before-i-shows-the-wrong-cue/6b09776c7773fa9f3d7e7fa2)

Comment [Burn SRT Subtitles Into a 9:16 Short With ffmpeg: Why -ss Before -i Shows the Wrong Cue](https://hashnode.com/posts/burn-srt-subtitles-into-a-9-16-short-with-ffmpeg-why-ss-before-i-shows-the-wrong-cue/6b09776c7773fa9f3d7e7fa2)

[Vidlify](https://hashnode.com/@vidlify)

[10h ago](https://hashnode.com/posts/burn-srt-subtitles-into-a-9-16-short-with-ffmpeg-why-ss-before-i-shows-the-wrong-cue/6b09776c7773fa9f3d7e7fa2/comment/6b0a1d01cc4aef262fee8c9c)

Nice write up, the naive.png example makes the bug obvious. A third option if you want to keep the fast input seek but not rewrite the SRT: shift the timestamps back just for the subtitle filter and reset them afterwards, `-vf "setpts=PTS+4/TB,subtitles=subs.srt,setpts=PTS-STARTPTS"` (the 4 being whatever you passed to -ss).

I tried it with your timings on a black 540x960 test clip with FFmpeg 6.1.1: `-ss 4 -i clip.mp4 -ss 1 -frames:v 1` burned the first cue with plain subtitles=, and the third cue with the setpts pair around it. Rewriting the cues like your script does is still nicer when you also want the lint and the pixel sizes, but for a quick one-off cut this saves the temp file.
