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:1select first video stream-map 0:aselect all audio tracks-map 0:sselect all subtitles tracks-c:a copy -c:s copycopy audio and subtitles tracks-c:v libx264encode 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 0do 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=3stack horizontally 3 input streams[v]name the resulting streamv[v]scale=w=576:h=72select the stream namedvand scale it to 576x72 pixels-t 10encode 10 seconds of the output stream