-
Notifications
You must be signed in to change notification settings - Fork 1
Subtitle Options
patrickenfuego edited this page Jun 25, 2022
·
6 revisions
FFEncoder can copy subtitle streams from the input file to the output file using the -Subtitles
/ s
parameter. I have not added subtitle transcoding because, frankly, ffmpeg is not the best option for this. If you need to convert subtitles from one format to the other, I recommend using Subtitle Edit (Windows only).
The different parameter options are:
-
default
/d
- Copies the default (primary) subtitle stream from the input file -
all
/a
/copyall
/ca
- Copies all subtitle streams from the input file -
none
/n
- Excludes subtitles from the output entirely
You can also specify a language to copy, and FFEncoder will search the input for all subtitles matching that language. If the specified language isn't found, no subtitles will be copied. The following languages are supported using the corresponding ISO 639-2 code on the right:
Language | ISO 639-2 Code |
---|---|
Arabic | ara |
Bulgarian | bul |
Chinese |
chi / zho
|
Czech | cze |
Danish | dan |
Dutch |
dut / nld
|
English | eng |
Estonian | est |
Finnish | fin |
French | fre |
German | ger |
Greek |
gre / ell
|
Hebrew | heb |
Hindi | hin |
Indonesian | ind |
Korean | kor |
Polish | pol |
Portuguese | por |
Romanian | rum |
Russian | rus |
Slovenian | slv |
Spanish | spa |
Swedish | swe |
Turkish | tur |
Vietnamese | vie |
Additionally, you can use the !
character with a language code to copy everything but that language. For example:
# Copy all subtitles except English
PS > .\FFEncoder.ps1 'in.mkv' -CRF 17 -Subtitles '!eng' -o 'out.mkv'