[FFmpeg-user] How to hardcode subtitles
Moritz Barsnick
barsnick at gmx.net
Tue Mar 24 10:28:13 EET 2020
On Mon, Mar 23, 2020 at 20:48:01 -0400, Andy wrote:
> There are 3 subtitles in the file, how do I choose the correct subtitles?
[...]
> Input #0, matroska,webm, from
> 'LImmortale.2019.BluRay.1080xH264.Ita.AC3.5.1.Sub.Eng.Ita.mkv':
> Metadata:
> title : Encoded By realDMDJ
> creation_time : 2020-03-14 08:39:17
> ENCODER : Lavf58.20.100
> Duration: 01:55:25.15, start: 0.000000, bitrate: 3249 kb/s
> Stream #0:0: Video: h264 (Main), yuv420p(tv, bt709), 1920x1080 [SAR 90:67 DAR 160:67], 24 fps, 24 tbr, 1k tbn, 48 tbc (default)
> Metadata:
> DURATION : 01:55:25.130000000
> Stream #0:1(ita): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
> Metadata:
> title : Surround
> DURATION : 01:55:25.152000000
> Stream #0:2(ita): Subtitle: ass (default) (forced)
> Metadata:
> DURATION : 01:47:24.380000000
> Stream #0:3(ita): Subtitle: ass
> Metadata:
> DURATION : 01:47:25.755000000
> Stream #0:4(eng): Subtitle: ass
> Metadata:
> DURATION : 01:47:25.755000000
Kindly check the nice documentation. The subtitle filter is documented
here:
https://ffmpeg.org/ffmpeg-filters.html#subtitles-1
There's even an example:
To render the second subtitles stream from that file, use:
subtitles=video.mkv:si=1
Cheers,
Moritz
More information about the ffmpeg-user
mailing list