AVCHD is a modern high-definition video format developed by Sony and Panasonic. It is targeted to consumer camcorders recording in DVD disks, SD and SDHC memory cards and hard disk drives.
AVCHD is stored in .mts files. In the typical file structure, they are found in the BDMV folder:
Root directory of recording medium | |--[PRIVATE] | | | |--[AVCHD] | | | | | |--[BDMV] | | | | | | | |--[STREAM] | | | | | | | | | |-- XXXX.MTS ... video clip
AVCHD files use an MPEG Transport Stream structure that contain a H264 video stream and an audio stream that can be AC-3 or PCM. Unlike other containers, transport streams do not need indexes, instead they use fixed-length blocks to organize the data. Blocks start with 0x47 byte and are easily found. This contributes to make transport streams robust to all types of corruption.
How to re-wrap a AVCHD file for use in Mac computers?
The .mts file can be used with very few applications. Usually you must go through re-encoding to Intermediate format before you can use them.
ffmpeg -i sampleAVCHD.mts -vcodec copy -an -f mp4 myfile.mp4
Note that you need a version of ffmpeg at least as recent as below listed
libavutil 50. 3. 0 / 50. 3. 0 libavcodec 52.37. 1 / 52.37. 1 libavformat 52.39. 2 / 52.39. 2 libavdevice 52. 2. 0 / 52. 2. 0 libswscale 0. 7. 1 / 0. 7. 1