How can I replace a specific subtitle track in a video on Linux?

0
16
Asked By CuriousCoder42 On

I've been struggling to replace a broken subtitle track in a video file with a modified .srt file. While I can find plenty of guides on exporting or editing .srt files, I haven't found anything useful for actually replacing a specific subtitle track. I want to replace the 'Signs & Songs' track in my anime video since it's currently blank, but every method I've tried either wipes out all the subtitle tracks or appends the new one to the end of the list. This messes up compatibility with Kodi, which keeps track of subtitle indices. Is there a command or program on Linux—perhaps a specific FFMPEG command or something else—that can help me replace just this one track? I've looked for hours and I'm really at my wits' end!

1 Answer

Answered By VideoWhisperer99 On

Have you tried using MKVToolnix-GUI? It lets you copy existing tracks, add new ones, and change the track number in the header editor section. Just keep in mind that replacing one track isn’t exactly a straightforward operation. You’ll have to manage the tracks a bit manually.

LinuxExplorer22 -

I took a look at MKVToolNix but couldn’t figure out how to actually add a .srt file as a new subtitle track or change an existing one. Any tips on where to find that option?

Related Questions

Extract Audio From Video File

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.