rustdesk / rustdesk/doc.rustdesk.com

Error while configuring MediaCodec for H265/H264 video decoding

Open
#184 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
792
Forks
709
Avg merge
8h 25m
Merged PRs (30d)
3

Description

I encountered an issue while trying to configure MediaCodec for HEVC video decoding. Below is the error log:

04-17 11:56:26.388 D/MediaCodecList(28645): codecHandlesFormat: no format, so no extra checks
04-17 11:56:26.390 D/MediaCodecList(28645): codecHandlesFormat: no format, so no extra checks
04-17 11:56:26.399 I/OMXClient(28645): IOmx service obtained
04-17 11:56:26.401 I/flutter (28645): _globalFFI init
04-17 11:56:26.402 D/ffi     (28645): hbb_common::config: Configuration path: /data/user/0/com.carriez.flutter_hbb/app_flutter/RustDesk_local.toml
04-17 11:56:26.404 I/flutter (28645): _globalFFI init end
04-17 11:56:26.406 I/flutter (28645): flutter got android msg,on_state_changed,{name: input, value: false}
04-17 11:56:26.406 I/flutter (28645): from jvm:on_state_changed,input:false
04-17 11:56:26.406 I/flutter (28645): changeStatue value false
04-17 11:56:26.417 W/OMXUtils(28645): cannot describe color format 0x13 = 19 with stride=0 and sliceHeight=0
04-17 11:56:26.417 E/ACodec  (28645): Wrong cropped rect (0, 0, 0, 0) vs. frame (0, 0)
04-17 11:56:26.417 E/ACodec  (28645): [OMX.allwinner.video.decoder.avc] configureCodec returning error -22
04-17 11:56:26.417 E/ACodec  (28645): signalError(omxError 0x80001001, internalError -22)
04-17 11:56:26.418 E/MediaCodec(28645): Codec reported err 0xffffffea, actionCode 0, while in state 3/CONFIGURING
04-17 11:56:26.419 E/MediaCodec(28645): configure failed with err 0xffffffea, resetting...
04-17 11:56:26.426 I/OMXClient(28645): IOmx service obtained
04-17 11:56:26.436 I/flutter (28645): registerEventHandler callback_query_onlines recent peer
04-17 11:56:26.436 I/flutter (28645): registerEventHandler load_recent_peers recent peer
04-17 11:56:26.436 D/ffi     (28645): hbb_common::config: Configuration path: /data/user/0/com.carriez.flutter_hbb/app_flutter/RustDesk.toml
04-17 11:56:26.437 D/ffi     (28645): hbb_common::config: Configuration path: /data/user/0/com.carriez.flutter_hbb/app_flutter/RustDesk.toml
04-17 11:56:26.438 E/NdkMediaCodec(28645): configure: err(-22), failed with format: AMessage(what = 'conf', target = 1) = {
04-17 11:56:26.438 E/NdkMediaCodec(28645):   string mime = "video/avc"
04-17 11:56:26.438 E/NdkMediaCodec(28645):   int32_t width = 0
04-17 11:56:26.438 E/NdkMediaCodec(28645):   int32_t height = 0
04-17 11:56:26.438 E/NdkMediaCodec(28645):   int64_t color-format = 19
04-17 11:56:26.438 E/NdkMediaCodec(28645):   int32_t flags = 0
04-17 11:56:26.438 E/NdkMediaCodec(28645): }
04-17 11:56:26.438 E/NdkMediaCodec(28645): sf error code: -22
04-17 11:56:26.443 I/BpBinder(28645): onLastStrongRef automatically unlinking death recipients: android.media.IResourceManagerService
04-17 11:56:26.449 D/MediaCodecList(28645): codecHandlesFormat: no format, so no extra checks
04-17 11:56:26.450 D/MediaCodecList(28645): codecHandlesFormat: no format, so no extra checks
04-17 11:56:26.453 I/OMXClient(28645): IOmx service obtained
04-17 11:56:26.466 W/OMXUtils(28645): cannot describe color format 0x13 = 19 with stride=0 and sliceHeight=0
04-17 11:56:26.467 E/ACodec  (28645): Wrong cropped rect (0, 0, 0, 0) vs. frame (0, 0)
04-17 11:56:26.467 E/ACodec  (28645): [OMX.allwinner.video.decoder.hevc] configureCodec returning error -22
04-17 11:56:26.467 E/ACodec  (28645): signalError(omxError 0x80001001, internalError -22)
04-17 11:56:26.467 E/MediaCodec(28645): Codec reported err 0xffffffea, actionCode 0, while in state 3/CONFIGURING
04-17 11:56:26.467 E/MediaCodec(28645): configure failed with err 0xffffffea, resetting...
04-17 11:56:26.474 I/OMXClient(28645): IOmx service obtained
04-17 11:56:26.486 E/NdkMediaCodec(28645): configure: err(-22), failed with format: AMessage(what = 'conf', target = 6) = {
04-17 11:56:26.486 E/NdkMediaCodec(28645):   string mime = "video/hevc"
04-17 11:56:26.486 E/NdkMediaCodec(28645):   int32_t width = 0
04-17 11:56:26.486 E/NdkMediaCodec(28645):   int32_t height = 0
04-17 11:56:26.486 E/NdkMediaCodec(28645):   int64_t color-format = 19
04-17 11:56:26.486 E/NdkMediaCodec(28645):   int32_t flags = 0
04-17 11:56:26.486 E/NdkMediaCodec(28645): }
04-17 11:56:26.486 E/NdkMediaCodec(28645): sf error code: -22
04-17 11:56:26.491 I/BpBinder(28645): onLastStrongRef automatically unlinking death recipients: android.media.IResourceManagerService
04-17 11:56:26.551 I/Gralloc4(28645): mapper 4.x is not supported
04-17 11:56:26.552 W/Gralloc3(28645): mapper 3.x is not supported
04-17 11:56:26.556 E/gralloc (28645): Arm Module v1.0
04-17 11:56:26.558 W/Gralloc4(28645): allocator 4.x is not supported
04-17 11:56:26.558 W/Gralloc3(28645): allocator 3.x is not supported
04-17 11:56:26.572 E/ion     (28645): ioctl c0044901 failed with code -1: Inappropriate ioctl for device

I would appreciate it if you could provide information on the testing environment you used, including the operating system, device model, compiler version, etc., so that I can reproduce the successful execution state in my environment.

Please let me know if there is any additional information I should provide or if there are any other steps I should take to resolve this issue.

Thank you in advance for your help!

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by reproducing the Android MediaCodec configuration failure for both video/avc and video/hevc using the supplied log, focusing on the zero width and height and color-format 19. Record the operating system, device model, compiler version, and configuration outcome; done means documenting the cause and a reproducible successful setup or confirming the device-specific limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, flutter
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.