Embedding Subtitles with Ffmpeg

Created on 2022-10-04T05:10:17-05:00

Return to the Index

This card pertains to a resource available on the internet.

This card can also be read via Gemini.

Subtitles are just another input stream you include while encoding the video.

ffmpeg -i input.mp4 -i subtitle.en.srt -i subtitle.chi.srt -map 0 -map 1 -map 2 -c copy -c:s mov_text -metadata:s:s:0 language=eng -metadata:s:s:1 language=chi output_eng_chi.mp4