FFMPEG: Remux MTS files to MP4
I sometimes receive .mts video files made with Sony videocameras. These don’t play well on web video players or iOS devices. This is how, for most models, you can remux them to mp4 without converting and thus without losing quality and waiting a long time for the conversion to complete.
One file at a time
ffmpeg -i input.MTS -c copy output.mp4
Multiple files at once
While in directory with .MTS files
for f in *.MTS;do ffmpeg -i "$f" -c copy "${f%MTS}mp4";done
Remove MTS
rm *.MTS