androidx / androidx/media

TS stream pixelating when subtitles are parsed during extraction

Open
#1,621 4 comments 0 reactions 1 assignee View on GitHub

@icbaker is already working on this.

Since Aug 15, 2024.

bug needs triage
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

Version

Media3 1.4.0

More version details

The first commit with this issue is 0352db9. We weren't able to reproduce with 5c6f48e.

Devices that reproduce the issue
  • Changhong GIU3A00 (Android 9)
  • Changhong GIU6770 (Android 9)
  • SEI Robotics Box R Lite 4K (Android 11)
  • Amlogic TwinKey2 (Android 7.1.1)
  • Amino Amigo7x (Android 12)
Devices that do not reproduce the issue
  • Pixel 3a (Android 12)
  • Lenovo TB-X606F (Android 10)
Reproducible in the demo app?

Yes

Reproduction steps

Play the file sent via email in Media3 demo app (either from local storage or via UDP).

Parsing subtitles during rendering fixes the issue:

textRenderer.experimentalSetLegacyDecodingEnabled(true)
mediaSourceFactory.experimentalParseSubtitlesDuringExtraction(false)
Expected result

The media plays without pixelating even when subtitles are parsed during extraction

Actual result

The media is pixelating with the following error in the logcat every time there is a pixelation in the video

Audio sink error
androidx.media3.exoplayer.audio.AudioSink$UnexpectedDiscontinuityException: Unexpected audio track timestamp discontinuity: expected 1000029511400, got 1000029799400
    at androidx.media3.exoplayer.audio.DefaultAudioSink.handleBuffer(DefaultAudioSink.java:997)
    at androidx.media3.exoplayer.audio.MediaCodecAudioRenderer.processOutputBuffer(MediaCodecAudioRenderer.java:773)
    at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.bypassRender(MediaCodecRenderer.java:2358)
    at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:868)
    at androidx.media3.exoplayer.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:1136)
    at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:561)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:193)
    at android.os.HandlerThread.run(HandlerThread.java:65)
Media

Sent via email

Bug Report
  • You will email the zip file produced by adb bugreport to android-media-github@google.com after filing this issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.