Reputation: 9215
I have two files. One with a single video stream and another with one audio stream and one subtitle stream.
How can I merge these two files together?
I tried using the command
ffmpeg -y \
-i "video.mkv" \
-i audioandsubtitles.mkv \
-c copy \
~/Downloads/output.mkv"
but it only copied the audio and video stream, not the subtitle stream.
How can I make it merge all three?
Upvotes: 1
Views: 6826
Reputation: 93221
Use
ffmpeg -y \
-i "video.mkv" \
-i audioandsubtitles.mkv \
-map 0:v -map 1 -c copy \
~/Downloads/output.mkv"
Upvotes: 2