---
title: "Discussion on \"How to Tell Hardcoded Subtitles from Soft Captions with ffprobe\" | Hashnode"
description: "Discussion on \"How to Tell Hardcoded Subtitles from Soft Captions with ffprobe\". Use the player menu, sidecar files, and the streams inside the container, then choose extract, remux, re-export, or inpaint."
url: "https://hashnode.com/posts/how-to-tell-hardcoded-subtitles-from-soft-captions-with-ffprobe/6b0a947287c5dbda643e4ceb"
---

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

Discussion

# [How to Tell Hardcoded Subtitles from Soft Captions with ffprobe](https://jerryleemaker.hashnode.dev/how-to-tell-hardcoded-subtitles-from-soft-captions-with-ffprobe?utm_source=hashnode&utm_medium=feed)

Use the player menu, sidecar files, and the streams inside the container, then choose extract, remux, re-export, or inpaint.

1h ago · 11 min read · jerryleemaker.hashnode.dev  
Read the article

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

## Written by

[jerry lee](https://hashnode.com/@jerryleemaker)

@jerryleemaker · Los Angeles, USA

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

Founder of ObjectRemover. I write about cleaning up video: removing objects, people and burned-in text from footage you own.

## Responses 2

Markdown supported · ⌘↵ to post

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

[36m ago](https://hashnode.com/posts/how-to-tell-hardcoded-subtitles-from-soft-captions-with-ffprobe/6b0a947287c5dbda643e4ceb/comment/6b0aa69236f09bb76009d220)

Useful decision tree. One trap in the mux back step: `ffmpeg -i video.mp4 -i newsubs.srt -c copy -c:s mov_text output.mp4` has no `-map`, so automatic stream selection picks one stream per type. I tried it on FFmpeg 6.1.1 with an MP4 that already had a subtitle track and two audio tracks: the output kept the old subtitle track, ignored the new SRT completely, and dropped the second audio track. That is the same selection behaviour you describe for `-sn` further down, so the same fix applies:

```
ffmpeg -i video.mp4 -i newsubs.srt -map 0 -map -0:s -map 1:0 -c copy -c:s mov_text -metadata:s:s:0 language=eng output.mp4
```

That kept both audio tracks, replaced the subtitle with the edited one, and tagged it `eng` instead of `und`.

[jerry lee](https://hashnode.com/@jerryleemaker)

[26m ago](https://hashnode.com/posts/how-to-tell-hardcoded-subtitles-from-soft-captions-with-ffprobe/6b0a947287c5dbda643e4ceb/comment/6b0aa69236f09bb76009d220#reply-6b0aa8fe6212949bcce62403)

Thanks, that's a fair catch — and it is the same default stream selection I already warn about later for `-sn`. I'll update the mux-back example so it maps both inputs, drops the old subtitle track, and sets the language tag. Appreciate you testing it on 6.1.1.
