Skip to content

视频分辨率不是正常比例是无法播放 #70

Description

@zhangkun0018

描述一下大概怎么回事
视频的分辨率是1920 * 4266,4266不是16的整数倍时,在某些手机上无法播放。我这使用的是华为 nova12活力版 型号 FIN-AL60

如何复现
在nova12活力版 型号 FIN-AL60 手机上,视频的分辨率不是正常的比例时,无法播放

错误日志
playerFailed [0.32]
androidx.media3.exoplayer.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(1, null, video/mp4, video/avc, avc1.640034, 7500000, und, [1920, 4180, 29.990004, ColorInfo(BT601, Limited range, SDR SMPTE 170M, false, 8bit Luma, 8bit Chroma)], [-1, -1]), format_supported=YES
at androidx.media3.exoplayer.BaseRenderer.createRendererException(SourceFile:545)
at androidx.media3.exoplayer.BaseRenderer.createRendererException(SourceFile:514)
at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.maybeInitCodecOrBypass(SourceFile:599)
at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.onInputFormatChanged(SourceFile:1671)
at androidx.media3.exoplayer.video.MediaCodecVideoRenderer.onInputFormatChanged(SourceFile:1530)
at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.readSourceOmittingSampleData(SourceFile:1120)
at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.render(SourceFile:883)
at androidx.media3.exoplayer.video.MediaCodecVideoRenderer.render(SourceFile:1314)
at androidx.media3.exoplayer.RendererHolder.render(SourceFile:391)
at androidx.media3.exoplayer.ExoPlayerImplInternal.doSomeWork(SourceFile:1367)
at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(SourceFile:697)
at android.os.Handler.dispatchMessage(Handler.java:113)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:293)
at android.os.HandlerThread.run(HandlerThread.java:110)
Caused by: androidx.media3.exoplayer.mediacodec.MediaCodecRenderer$DecoderInitializationException: Decoder init failed: c2.qti.avc.decoder, Format(1, null, video/mp4, video/avc, avc1.640034, 7500000, und, [1920, 4180, 29.990004, ColorInfo(BT601, Limited range, SDR SMPTE 170M, false, 8bit Luma, 8bit Chroma)], [-1, -1])
at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.maybeInitCodecWithFallback(SourceFile:1234)
at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.maybeInitCodecOrBypass(SourceFile:597)
at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.onInputFormatChanged(SourceFile:1671) 
at androidx.media3.exoplayer.video.MediaCodecVideoRenderer.onInputFormatChanged(SourceFile:1530) 
at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.readSourceOmittingSampleData(SourceFile:1120) 
at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.render(SourceFile:883) 
at androidx.media3.exoplayer.video.MediaCodecVideoRenderer.render(SourceFile:1314) 
at androidx.media3.exoplayer.RendererHolder.render(SourceFile:391) 
at androidx.media3.exoplayer.ExoPlayerImplInternal.doSomeWork(SourceFile:1367) 
at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(SourceFile:697) 
at android.os.Handler.dispatchMessage(Handler.java:113) 
at android.os.Looper.loopOnce(Looper.java:205) 
at android.os.Looper.loop(Looper.java:293) 
at android.os.HandlerThread.run(HandlerThread.java:110) 
Caused by: java.lang.IllegalArgumentException
at android.media.MediaCodec.native_configure(Native Method)
at android.media.MediaCodec.configure(MediaCodec.java:2176)
at android.media.MediaCodec.configure(MediaCodec.java:2092)
at androidx.media3.exoplayer.mediacodec.AsynchronousMediaCodecAdapter.initialize(SourceFile:195)
at androidx.media3.exoplayer.mediacodec.AsynchronousMediaCodecAdapter.access$100(SourceFile:54)
at androidx.media3.exoplayer.mediacodec.AsynchronousMediaCodecAdapter$Factory.createAdapter(SourceFile:135)
at androidx.media3.exoplayer.mediacodec.DefaultMediaCodecAdapterFactory.createAdapter(SourceFile:164)
at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.initCodec(SourceFile:1307)
at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.maybeInitCodecWithFallback(SourceFile:1219)
at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.maybeInitCodecOrBypass(SourceFile:597) 
at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.onInputFormatChanged(SourceFile:1671) 
at androidx.media3.exoplayer.video.MediaCodecVideoRenderer.onInputFormatChanged(SourceFile:1530) 
at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.readSourceOmittingSampleData(SourceFile:1120) 
at androidx.media3.exoplayer.mediacodec.MediaCodecRenderer.render(SourceFile:883) 
at androidx.media3.exoplayer.video.MediaCodecVideoRenderer.render(SourceFile:1314) 
at androidx.media3.exoplayer.RendererHolder.render(SourceFile:391) 
at androidx.media3.exoplayer.ExoPlayerImplInternal.doSomeWork(SourceFile:1367) 
at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(SourceFile:697) 
at android.os.Handler.dispatchMessage(Handler.java:113) 
at android.os.Looper.loopOnce(Looper.java:205) 
at android.os.Looper.loop(Looper.java:293) 
at android.os.HandlerThread.run(HandlerThread.java:110) 

default.mp4

设备信息:

  • 手机型号: FIN-AL60
  • Android12
  • OpenImageGlideLib:2.5.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions