ffmpeg -i input.mkv -map 0:1 -map 0:a -map 0:s -c:a copy -c:s copy -c:v libx264 output.mkv
Explanations:
-map 0:1
select first video stream-map 0:a
select all audio tracks-map 0:s
select all subtitles tracks-c:a copy -c:s copy
copy audio and subtitles tracks-c:v libx264
encode video stream to h624
ffmpeg -ignore_loop 0 -i 1.gif -ignore_loop 0 -i 2.gif -ignore_loop 0 -i 3.gif -filter_complex "[0:v]hstack=inputs=3[v];[v]scale=w=576:h=72" -t 10 out.mp4
Explanations:
-ignore_loop 0
do not ignore GIF loop informations-filter_complex "[0:v]hstack=inputs=3[v];[v]scale=w=576:h=72"
[0:v]
select the video streamhstack=inputs=3
stack horizontally 3 input streams[v]
name the resulting streamv
[v]scale=w=576:h=72
select the stream namedv
and scale it to 576x72 pixels-t 10
encode 10 seconds of the output stream