Converting Satellite Transport Stream (*.ts) to MKV

Convert all files using ffmpeg while keeping all streams (video/audio/subtitles):

for f in *.ts; do ffmpeg -i "$f" -c copy -map 0:v -map 0:a -map 0:s "$f".mkv; done

This prevents any conversion and thus keeps the quality at the source level. Quotes are required to work correctly with filenames containing spaces.