androidx / media

Jetpack Media3 support libraries for media use cases, including ExoPlayer, an extensible media player for Android
https://developer.android.com/media/media3
Apache License 2.0
1.52k stars 362 forks source link

HLS-FMP4 DTS:X Profile 2 Streams are missing first 2 seconds during Tunnel mode (Direct) Playback due to timestampAdjuster in FragmentedMp4Extractor.java #1245

Open cedricxperi opened 4 months ago

cedricxperi commented 4 months ago

Version

Media3 main branch

More version details

Devices that reproduce the issue

All Android TV with DTSX Decoder. E.g. Xiaomi Q2 55"

Devices that do not reproduce the issue

None.

Reproducible in the demo app?

Yes

Reproduction steps

NOTES: HLS-FMP4 DTS:X Profile 2 Streams are missing first 2 seconds of audio during Tunnel mode (Direct) Playback due to timestampAdjuster in FragmentedMp4Extractor.java.

Thanks!

Expected result

Playback does not skip the first 2 seconds.

Actual result

Playback skipped the first 2 seconds.

Media

HLS-fMP4 stream. First 2 seconds lost during playback in tunnel mode: DTS:X 5.1.4 - HLS fMP4: https://secured.streamdts.com/dtsx/dtsx/hls/fmp4/callout/index.m3u8

DASH stream with no playback issues: DTS:X 5.1.4 - DASH: https://secured.streamdts.com/dtsx/dtsx/dash/callout/index.mpd

The PTS values are the same in both streams.

Bug Report

cedricxperi commented 4 months ago

@tianyif If you have the bandwidth, kindly have a look at this issue above and let me know if it rings any bell. Thanks!

cedricxperi commented 4 months ago

@tianyif Just checking if you have any updates for me on this issue. Thanks.

cedricxperi commented 1 week ago

@tianyif We just received notice that this issue is affecting some Android TVs running Disney+ apps. Kindly look at this issue. It is highly likely that any audio codec with a Sync Frame concept delivered with HLS-fMP4 will be affected. Thanks.