media: While playing Widevine-DASH videos on certain devices with the MediaTek 'Dimensity' chipset, executing the 'seekTo' action often results in the player encountering "errorCode=ERROR_CODE_DECODING_FAILED".

Version

Media3 1.1.0 / ExoPlayer 2.19.0

More version details

No response

Devices that reproduce the issue

Device:OPPO Ren8 5G, android 12 Screenshot_20240118_144144 Screenshot_20240118_144223

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Yes

Reproduction steps

1.Open the Media3 demo app and play the specified Widevine-DASH video. 2.As the video starts playing, perform the ‘seekTo’ action several times.

https://github.com/androidx/media/assets/156993608/f8079558-4999-4d38-b8b4-7e0721093128

Expected result

During video playback, executing the ‘seekTo’ command should start the video at the specified timestamp, allowing it to resume normal playback.

Actual result

After executing the ‘seekTo’ command multiple times during video playback, the video starts at the specified timestamp. However, the screen tends to freeze with only audio playing, followed by the appearance of the “ERROR_CODE_DECODING_FAILED” error message.

error info: playerFailed [eventTime=35.75, mediaPos=550.65, window=0, period=0, errorCode=ERROR_CODE_DECODING_FAILED androidx.media3.exoplayer.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(1, null, null, video/avc, avc1.4D4029, 7481447, null, [1920, 1080, -1.0], [-1, -1]), format_supported=YES at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:586) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loopOnce(Looper.java:233) at android.os.Looper.loop(Looper.java:344) at android.os.HandlerThread.run(HandlerThread.java:67) Caused by: androidx.media3.exoplayer.video.MediaCodecVideoDecoderException: Decoder failed: c2.mtk.avc.decoder.secure at androidx.media3.exoplayer.video.MediaCodecVideoRenderer.createDecoderException(MediaCodecVideoRenderer.java:1642) at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:805) at androidx.media3.exoplayer.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:1015) at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:510) at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loopOnce(Looper.java:233)  at android.os.Looper.loop(Looper.java:344)  at android.os.HandlerThread.run(HandlerThread.java:67)  Caused by: android.media.MediaCodec$CodecException: Error 0x80000000 ]

Media

{ “name”: “test”, “uri”: “https://dastrm.myvideo.net.tw/Media/20210710/Smooth/VID01000000515…”, “drm_scheme”: “widevine”, “drm_license_uri”: “https://widevine-license…”, “extension”: “mpd”, “drm_key_request_properties”: { “acquirelicenseassertion”: “CIvx2lPc5hG/Js7Ay…” } }

Bug Report

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

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 45 (1 by maintainers)

Most upvoted comments

Do let us know when you have something to share. We received some information on May 28th but it does not look like it is appreciably different from what you shared before.

Can we get another link? It took a while to get Mediatek’s attention. The link had expired by then.

Forgot to update this. We are waiting on MediaTek to investigate.

It may take some time for this to be analyzed. It would be helpful if the links are long term. @fcolley I will report to my supervisor and provide the video with a long-term valid widevineToken. Once ready, I will send it to you via email and notify you.

@fcolley @rrfrias The complete information(videoDetalInfo_#997_0402.txt) of the video (videoUrl, widevineLicenseUrl, and widevineToken [long-lasting token, valid until 5/2]) has been emailed to android-media-github@google.com.

Thanks for that information. We were able to playback the video and are working with MediaTek to investigate furthur.

@myvideotom we received the information you sent here. Will work with @fcolley to reproduce and let you know if we need more information.

Hello @myvideotom,

Thank you for reporting your issue. We will need the bug report for this issue so if you can please send the full report to android-media-github@google.com then that would be great.