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
Closing thoughts
I welcome your feedback and hearing about your experiences! If this post has been useful to you, please feel free to leave a comment down below.