ffmpeg -i two-text-tracks.mkv -map 0:s:2 -c:s copy missing.srt exit=4294967274 Input #0, matroska,webm, from 'two-text-tracks.mkv': Metadata: COMPATIBLE_BRANDS: isomiso2avc1mp41 MAJOR_BRAND : isom MINOR_VERSION : 512 ENCODER : Lavf61.7.100 Duration: 00:00:04.00, start: 0.000000, bitrate: 35 kb/s Stream #0:0: Video: h264 (High), yuv420p(progressive), 960x540, 24 fps, 24 tbr, 1k tbn (default) Metadata: HANDLER_NAME : VideoHandler VENDOR_ID : [0][0][0][0] ENCODER : Lavc61.19.100 libx264 DURATION : 00:00:04.000000000 Stream #0:1(eng): Subtitle: subrip (srt) (default) Metadata: DURATION : 00:00:03.125000000 Stream #0:2(spa): Subtitle: subrip (srt) Metadata: DURATION : 00:00:03.500000000 Stream map '' matches no streams. To ignore this, add a trailing '?' to the map. Failed to set value '0:s:2' for option 'map': Invalid argument Error parsing options for output file missing.srt. Error opening output files: Invalid argument