ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

mediacodec flower screen and blue screen on some phones with poor performance

Open kuailedeadai opened this issue 6 years ago • 9 comments

Hello, please ask at high bit rate and high quality, using mediacodec decoding, there are flower screen and blue screen problems on mobile phones with poor performance, what is the solution?

kuailedeadai avatar May 07 '20 12:05 kuailedeadai

Could you please explain what is a flower sreen? Does the video contain flowers that are glitched out? Like so maybe. Same question for blue screen is it a decoder error? Maybe provide a screenshot?

Additionally, please provide complete information as requested in the issue template. The issue template can be found here. If you're unable to share bug reports or test content publicly, please send them to [email protected] using a subject in the format "Issue #1234", where "#1234" should be replaced with your issue number. Please also update this issue to indicate you’ve done this.

krocard avatar May 11 '20 15:05 krocard

Hello, I have captured the effect picture of Huaping as follows: Screenshot_20200513-072507, The video file is in h265 format, the phone model is TECNO I5,thank you

kuailedeadai avatar May 13 '20 02:05 kuailedeadai

Hello, my test video is in h265 format, the decoded data bit depth is 16 bits, at this time Huaping, I use another h265 video, the decoded bit depth is 8 bits, the rendering is normal, please ask if this Is there any parameter of mediacodec that can be obtained or optimized?

kuailedeadai avatar May 15 '20 11:05 kuailedeadai

Spider-Man-x265-59fps-60s.mkv.zip

This is a video file of the test Huaping, which occurs on most models below Android5.1

kuailedeadai avatar May 18 '20 02:05 kuailedeadai

HDR video files generally have errors

kuailedeadai avatar May 18 '20 02:05 kuailedeadai

Thank you for posting the problematic media. I played it on both VLC with maximum verbosity and on my test Pixel 2 (checking the logcat), but could not observe any decoding log (1).

(1) Except for 05-18 10:36:11.067 920 10494 W QC2V4l2Codec: [hevcD_13] unknown/unsupported param index = 0xD200180A but it did not prevent the video from playing.

As you commented, this seems to be device specific.

if this Is there any parameter of mediacodec that can be obtained or optimized?

I'm not sure we can help you regarding device specific tuning, but maybe @ojw28 has some tips regarding video glitches?

krocard avatar May 18 '20 09:05 krocard

@andrewlewis Do we have a way to validate an/this h265 stream?

krocard avatar May 18 '20 09:05 krocard

@andrewlewis, sorry to assign you this issue but this seems to be a bad media case (1) and I don't know of a way to validate the h265 stream. None of the validators online seem to be free/easy to use.

(1) handled differently on certain devices. if the stream is correct, then this is a device specific decoder issue

krocard avatar May 20 '20 20:05 krocard

I'm afraid we don't have a stream validator/verifier, but the video does appear to play correctly on a Pixel 2 XL I have here. mediainfo identifies the stream profile/tier/level as Main 10, main, L4.1.

We have seen some cases of video rendering being broken in one of SurfaceView or TextureView so it may be worth trying both in case that fixes it.

This is a video file of the test Huaping, which occurs on most models below Android5.1

I'm not sure what 'Huaping' is, but the Android 5.0 CDD doesn't require support for 1080p H.265/HEVC, so I don't think there's an expectation that all Android devices can handle this.

You could try checking codec capabilities on the device to make sure this profile is supported (there are utilities in MediaCodecUtil) and contact the manufacturer if the device should be capable but it doesn't play.

andrewlewis avatar Jun 01 '20 11:06 andrewlewis