iPhone 13 mini video audio codecs randomly change
I'm on iPhone 13 mini. I was having issues playing back some of my videos through a third-party app. Upon further analysis, it turns out some of my videos have audio encoded in AAC format, and some in LPCM. The audio codecs change seemingly randomly, and I found a case where two videos, taken 10 minutes from each other, have audio encoded in different formats.
I would like to know why this behavior occurs, and if it is possible to fix the codec to one or the other.
Thanks.
iPhone 13 mini, iOS 18