---
title: "Discussion on \"Burn SRT Subtitles Into a 9:16 Short With ffmpeg: Why -ss Before -i Shows the Wrong Cue\" | Hashnode"
description: "Discussion on \"Burn SRT Subtitles Into a 9:16 Short With ffmpeg: Why -ss Before -i Shows the Wrong Cue\". Burning an SRT into a vertical Short looks like a one-liner:\nffmpeg -i clip.mp4 -vf subtitles=subs.srt -c:v libx264 -pix_fmt yuv420p burned.mp4\n\nOn a short, clean file with a simple filename, that oft"
url: "https://hashnode.com/posts/burn-srt-subtitles-into-a-9-16-short-with-ffmpeg-why-ss-before-i-shows-the-wrong-cue/6b09776c7773fa9f3d7e7fa2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Burn SRT Subtitles Into a 9:16 Short With ffmpeg: Why -ss Before -i Shows the Wrong Cue](https://jadenvo259.hashnode.dev/burn-srt-subtitles-into-a-9-16-short-with-ffmpeg-why-ss-before-i-shows-the-wrong-cue?utm_source=hashnode&utm_medium=feed)

Burning an SRT into a vertical Short looks like a one-liner: ffmpeg -i clip.mp4 -vf subtitles=subs.srt -c:v libx264 -pix\_fmt yuv420p burned.mp4 On a short, clean file with a simple filename, that oft

22h ago · 9 min read · jadenvo259.hashnode.dev  
Read the article

-   [#video](https://hashnode.com/tag/video)
-   [#subtitles](https://hashnode.com/tag/subtitles)
-   [#python](https://hashnode.com/tag/python)
-   [#ffmpeg](https://hashnode.com/tag/ffmpeg)

## Written by

[Jaden Vo](https://hashnode.com/@jadenvo259)

@jadenvo259

  
[View profile](https://hashnode.com/@jadenvo259)

## Responses 1

Markdown supported · ⌘↵ to post

[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.
