Closed dburckh closed 1 year ago
https://github.com/dburckh/ExoPlayer/issues/10 is closely related to this topic as code described above could be used to correct problems caused by poorly muxed streams.
This issue is partially addressed with the addition of the MpegAudioStreamHandler. However this is only part of the problem. They complete fix is documented here. https://github.com/dburckh/Media3Avi/issues/1
Currently audio timestamps are averaged based on the number of chunks in the audio stream. This generally works pretty well if the audio is muxed with a consistent time frame. It may have issues in the future. With PCM and possibly others, it should be possible to produce highly accurate timestamps based on the chunk size.