Skip to content

Bug media3 Video playing issues in telegram X & telegram #1032

@Alvinoproject

Description

@Alvinoproject

Device: Xiaomi Redmi 2312DRAABG
Android: 15 (HyperOS 2.0.208.0)
App: Telegram X 0.28.3.1785

Issue:
4K 60fps H.264 videos fail to play.
Error: MediaCodecVideoRenderer format_supported=NO_EXCEEDS_CAPABILITIES
Decoder: c2.mtk.avc.decoder

Stack trace attached below.

Full log :
MediaCodecVideoRenderer error, index=0, format=Format(1, null, video/mp4, video/avc, avc1.640034, 37792111, und, [2160, 3840, 60.000004, ColorInfo(Unset color space, Unset color range, Unset color transfer, false, 8bit Luma, 8bit Chroma)], [-1, -1]), format_supported=NO_EXCEEDS_CAPABILITIES
Decoder init failed: c2.mtk.avc.decoder, Format(1, null, video/mp4, video/avc, avc1.640034, 37792111, und, [2160, 3840, 60.000004, ColorInfo(Unset color space, Unset color range, Unset color transfer, false, 8bit Luma, 8bit Chroma)], [-1, -1])

Telegram X 0.28.3.1785-arm64-v8a (4ac597c)
TDLib: 1.8.60 (tdlib/td@0da5c72)
androidx-media3: 1.9.0 [common, decoder.opus, decoder.vpx, decoder.flac, decoder.ffmpeg, exoplayer, decoder, datasource, extractor]
tgcalls: TGX-Android/tgcalls@8e27a92
Recaptcha: 18.8.0
WebRTC: TGX-Android/webrtc@6ecff4f
Android: 15 (35)
Device: Xiaomi Redmi 2312DRAABG (AP3A.240905.015.A2)
Screen: 2400x1080 (density: 2.4, fps: 120.00001)
Build: Redmi/iron_id_global/iron:15/AP3A.240905.015.A2/OS2.0.208.0.VNQIDXM:user/release-keys
Package: org.thunderdog.challegram
Locale: en_US (app: en)
Installer: Google Play
Initiator: Google Play
APK Fingerprint: 66:46:21:34:34:5a:6a:da:c3:c1:d5:ae:a9:ce:f0:42:1b:7c:ab:68

MediaCodecVideoRenderer error, index=0, format=Format(1, null, video/mp4, video/avc, avc1.640034, 37792111, und, [2160, 3840, 60.000004, ColorInfo(Unset color space, Unset color range, Unset color transfer, false, 8bit Luma, 8bit Chroma)], [-1, -1]), format_supported=NO_EXCEEDS_CAPABILITIES
Decoder init failed: c2.mtk.avc.decoder, Format(1, null, video/mp4, video/avc, avc1.640034, 37792111, und, [2160, 3840, 60.000004, ColorInfo(Unset color space, Unset color range, Unset color transfer, false, 8bit Luma, 8bit Chroma)], [-1, -1])

=== Stack Trace Dump ===
MediaCodecVideoRenderer error, index=0, format=Format(1, null, video/mp4, video/avc, avc1.640034, 37792111, und, [2160, 3840, 60.000004, ColorInfo(Unset color space, Unset color range, Unset color transfer, false, 8bit Luma, 8bit Chroma)], [-1, -1]), format_supported=NO_EXCEEDS_CAPABILITIES
t3.k: MediaCodecVideoRenderer error, index=0, format=Format(1, null, video/mp4, video/avc, avc1.640034, 37792111, und, [2160, 3840, 60.000004, ColorInfo(Unset color space, Unset color range, Unset color transfer, false, 8bit Luma, 8bit Chroma)], [-1, -1]), format_supported=NO_EXCEEDS_CAPABILITIES
at t3.a.a(SourceFile:48)
at a4.w.X(SourceFile:227)
at a4.w.e0(SourceFile:81)
at j4.k.e0(SourceFile:1)
at a4.w.m0(SourceFile:21)
at a4.w.w(SourceFile:35)
at j4.k.w(SourceFile:20)
at t3.h0.i(SourceFile:1659)
at t3.h0.handleMessage(SourceFile:378)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loopOnce(Looper.java:249)
at android.os.Looper.loop(Looper.java:337)
at android.os.HandlerThread.run(HandlerThread.java:85)
Caused by: a4.u: Decoder init failed: c2.mtk.avc.decoder, Format(1, null, video/mp4, video/avc, avc1.640034, 37792111, und, [2160, 3840, 60.000004, ColorInfo(Unset color space, Unset color range, Unset color transfer, false, 8bit Luma, 8bit Chroma)], [-1, -1])
at a4.w.Y(SourceFile:174)
at a4.w.X(SourceFile:207)
... 11 more
Caused by: java.lang.IllegalArgumentException:
at android.media.MediaCodec.native_configure(Native Method)
at android.media.MediaCodec.configure(MediaCodec.java:2431)
at android.media.MediaCodec.configure(MediaCodec.java:2330)
at a4.d.a(SourceFile:40)
at a4.c.l(SourceFile:121)
at a4.j.d(SourceFile:87)
at a4.w.V(SourceFile:75)
at a4.w.Y(SourceFile:104)
... 12 more

=== Cause #1 ===
Decoder init failed: c2.mtk.avc.decoder, Format(1, null, video/mp4, video/avc, avc1.640034, 37792111, und, [2160, 3840, 60.000004, ColorInfo(Unset color space, Unset color range, Unset color transfer, false, 8bit Luma, 8bit Chroma)], [-1, -1])
a4.u: Decoder init failed: c2.mtk.avc.decoder, Format(1, null, video/mp4, video/avc, avc1.640034, 37792111, und, [2160, 3840, 60.000004, ColorInfo(Unset color space, Unset color range, Unset color transfer, false, 8bit Luma, 8bit Chroma)], [-1, -1])
at a4.w.Y(SourceFile:174)
at a4.w.X(SourceFile:207)
at a4.w.e0(SourceFile:81)
at j4.k.e0(SourceFile:1)
at a4.w.m0(SourceFile:21)
at a4.w.w(SourceFile:35)
at j4.k.w(SourceFile:20)
at t3.h0.i(SourceFile:1659)
at t3.h0.handleMessage(SourceFile:378)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loopOnce(Looper.java:249)
at android.os.Looper.loop(Looper.java:337)
at android.os.HandlerThread.run(HandlerThread.java:85)
Caused by: java.lang.IllegalArgumentException:
at android.media.MediaCodec.native_configure(Native Method)
at android.media.MediaCodec.configure(MediaCodec.java:2431)
at android.media.MediaCodec.configure(MediaCodec.java:2330)
at a4.d.a(SourceFile:40)
at a4.c.l(SourceFile:121)
at a4.j.d(SourceFile:87)
at a4.w.V(SourceFile:75)
at a4.w.Y(SourceFile:104)
... 12 more

=== Cause #2 ===
java.lang.IllegalArgumentException:
at android.media.MediaCodec.native_configure(Native Method)
at android.media.MediaCodec.configure(MediaCodec.java:2431)
at android.media.MediaCodec.configure(MediaCodec.java:2330)
at a4.d.a(SourceFile:40)
at a4.c.l(SourceFile:121)
at a4.j.d(SourceFile:87)
at a4.w.V(SourceFile:75)
at a4.w.Y(SourceFile:104)
at a4.w.X(SourceFile:207)
at a4.w.e0(SourceFile:81)
at j4.k.e0(SourceFile:1)
at a4.w.m0(SourceFile:21)
at a4.w.w(SourceFile:35)
at j4.k.w(SourceFile:20)
at t3.h0.i(SourceFile:1659)
at t3.h0.handleMessage(SourceFile:378)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loopOnce(Looper.java:249)
at android.os.Looper.loop(Looper.java:337)
at android.os.HandlerThread.run(HandlerThread.java:85)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions