Sound gap on stitching together splitted AVCHD files

Hi, brian! On the linked thread not only Win-tools, but also:

Thank You a lot a lot! It looks like that this simple concatenating tool does it - it creates one big file from the truncated ones, and the big one includes all the streams in the original quality both of video and of sound. Actually, the workflow for these kinds of splitted files of AVCHD that have to be concatenated is just to locate all consequent .MTS files with 2GB size and the next smaller one and to join them to one file - it will prevent the sound gaps on the joint points.

I think that the problem is in the demuxer, isn’t it? Looks like those kinds of recording formats (with splitted files) are obsolete, but are still very popular. Do You think there is any chance to get some kind of fix?

I tried some lossless formats, like pcm_s16le, pcm_bluray, but ff still made for me MTS with MP2… Looks like the .MTS in the output file’s name extension sets the codecs in the way that ff ‘thinks’ that are standard for the output file format. 'Cause changing the output file’s name extension to .mp4 recoded the sound to AAC (or AC3, don’t remember already…) Maybe I was doing something wrong on ff CLI syntax, or maybe just kind of bug…