Axiom
Axiom copied to clipboard
Rename subtitle title?
I have an .mkv file that has selectable subtitles, however they are titled incorrectly. They say they are English subtitles, when in fact they are Spanish subtitles. How can I rename them? Can I rename them without having to remux?
Hello, I have been away for a while.
I don't believe Axiom can rename them. I'm unsure how to do it through FFmpeg. See about the program MKVToolNix, it may be able to.
I found out how to do it. Though it will remux it through FFmpeg using Codec Copy
and Maps
.
Example, if video has 3 subtitiles.
Make the custom script in Axiom and press Run
.
ffmpeg
-y
-i "C:\Path\To\Video.mkv"
-c:v copy
-map 0:v?
-map_chapters 0
-c:a copy
-map 0:a?
-metadata:s:a:0 language=spa
-metadata:s:a:0 title="Spanish Audio 1"
-metadata:s:a:1 language=spa
-metadata:s:a:1 title="Spanish Audio 2"
-c:s copy
-map 0:s?
-metadata:s:s:0 language=spa
-metadata:s:s:0 title="Spanish Subs 1"
-metadata:s:s:1 language=spa
-metadata:s:s:1 title="Spanish Subs 2"
-f matroska
-threads 0
"C:\Path\To\New Video.mkv"
If you want to mux from scratch:
1 Video 2 Audio 2 Subtitles
ffmpeg
-y
-i "C:\Path\To\Video.h264"
-i "C:\Path\To\Audio Spanish 1.aac"
-i "C:\Path\To\Audio English 2.ac3"
-i "C:\Path\To\Subs Spanish 1.ssa"
-i "C:\Path\To\Subs English 2.ssa"
-c:v copy
-map 0:v?
-map_chapters 0
-metadata title="My Video"
-c:a copy
-map 1:a?
-map 2:a?
-metadata:s:a:0 language=spa
-metadata:s:a:0 title="Spanish Audio 1"
-metadata:s:a:1 language=eng
-metadata:s:a:1 title="English Audio 2"
-c:s copy
-map 3:s?
-map 4:s?
-metadata:s:s:0 language=spa
-metadata:s:s:0 title="Spanish Subs 1"
-metadata:s:s:1 language=spa
-metadata:s:s:1 title="English Subs 2"
-f matroska
-threads 0
"C:\Path\To\New Video.mkv"