dburckh / ExoPlayer

Deprecated. See https://github.com/dburckh/Media3Avi
Apache License 2.0
3 stars 2 forks source link

Better audio timestamp support #7

Closed dburckh closed 1 year ago

dburckh commented 2 years ago

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.

dburckh commented 2 years 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.

dburckh commented 1 year ago

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