I am trying to concatenate mp3 files using ffmpeg with not much luck. I have 100 very short 0.05-2 second mp3 samples (pronouncing letters) which I want to combine into one file which I can then jump to specific locations on to play specific sounds, rather than having individual files for each sample. When I concatenate following those instructions, it appears there are slight gaps placed in between the sounds, as the further I go down the track, the further off it appears.
For example, I have taken each individual mp3 file and calculated its duration using this. From that I can create offsets to start playing, and offsets to stop playing, each sample in the overall single mp3 file. But when I do that, the further tracks are off by more and more, telling me a gap is placed in between each track. How can I get this process to be accurate? That is, how can I concatenate 100s of mp3s without any gap, so I can calculate exactly where in the track it is I should start and stop playing?
For reference, I tried audio-joiner.com and there is even more of a gap placed between tracks.