Keep (copy) subtitle stream while re-encoding video?

Discuss about generic usage of MediaCoder.

Moderator: HuggiL

Post Reply
BlackPlatypus
Beginner
Beginner
Posts: 4
Joined: Wed Jan 13, 2021 4:39 pm

Keep (copy) subtitle stream while re-encoding video?

Post by BlackPlatypus » Fri Jun 09, 2023 12:40 am

Hi!
I have .mp4 and .mkv files with embedded subtitles; for example created with

Code: Select all

ffmpeg -i input.mp4 -i subtitle.srt -c copy -c:s mov_text -metadata:s:s:0 language=eng out.mp4
Now I would like to convert these files, re-encoding the video and audio streams, but keeping the subtitle stream.
I would expect the Mode "Stream Copy" to do just that, but in all my tests I couldn't get it to work.
No subtitle stream is included in the output.

How do I do this correctly?

Post Reply