<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックScreenrecord says &amp;quot;Encoder failed&amp;quot; with Android 9.0.0_2.3.4</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Screenrecord-says-quot-Encoder-failed-quot-with-Android-9-0-0-2/m-p/1194815#M166086</link>
    <description>&lt;P&gt;When I try to use "screenrecord" with Android 9.0.0_2.3.4 on an i.MX8QXP, I'm getting this:&lt;/P&gt;&lt;PRE&gt;# screenrecord --verbose /data/blah.mp4&lt;BR /&gt;Main display is 1920x1080 @60.00fps (orientation=0)&lt;BR /&gt;Configuring recorder for 1920x1080 video/avc at 20.00Mbps&lt;BR /&gt;Content area is 1920x1080 at offset x=0 y=0&lt;BR /&gt;Encoder failed (err=-38)&lt;BR /&gt;Stopping encoder and muxer&lt;/PRE&gt;&lt;P&gt;Here is what logcat has to say when I run that command:&lt;/P&gt;&lt;PRE&gt;12-04 20:14:14.401 4520 4524 I OMXClient: IOmx service obtained&lt;BR /&gt;12-04 20:14:14.402 4503 4503 I OMXMaster: makeComponentInstance(OMX.Freescale.std.video_encoder.avc.hw-based) in omx@1.0-service process&lt;BR /&gt;12-04 20:14:14.422 4503 4503 W OMXNodeInstance: [0xf2b32004:Freescale.std._encoder.avc.hw-based] component does not support metadata mode; using fallback&lt;BR /&gt;12-04 20:14:14.423 4520 4524 W OMXUtils: do not know color format 0x6 = 6&lt;BR /&gt;12-04 20:14:14.423 4520 4524 W OMXUtils: do not know color format 0x7f000789 = 2130708361&lt;BR /&gt;12-04 20:14:14.424 4520 4524 I ACodec : setupAVCEncoderParameters with [profile: Baseline] [level: Level1]&lt;BR /&gt;12-04 20:14:14.425 4520 4524 I ACodec : [OMX.Freescale.std.video_encoder.avc.hw-based] cannot encode HDR static metadata. Ignoring.&lt;BR /&gt;12-04 20:14:14.425 4520 4524 I ACodec : setupVideoEncoder succeeded&lt;BR /&gt;12-04 20:14:14.426 4520 4524 W OMXUtils: do not know color format 0x7f000789 = 2130708361&lt;BR /&gt;12-04 20:14:14.426 4503 4503 E OMXNodeInstance: getConfig(0xf2b32004:Freescale.std._encoder.avc.hw-based, ConfigLatency(0x6f800005)) ERROR: NotImplemented(0x80001006)&lt;BR /&gt;12-04 20:14:14.426 4503 4503 E OMXNodeInstance: getConfig(0xf2b32004:Freescale.std._encoder.avc.hw-based, ConfigAndroidVendorExtension(0x6f100004)) ERROR: NotImplemented(0x80001006)&lt;BR /&gt;12-04 20:14:14.430 4503 4503 D GraphicBufferSource: setting dataspace: 0x104, acquired=0&lt;BR /&gt;12-04 20:14:14.430 4503 4503 D GraphicBufferSource: requesting color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M))&lt;BR /&gt;12-04 20:14:14.433 2427 2427 W AshmemAllocator: ashmem_create_region(12) returning hidl_memory(0xf2ade842c100, 12)&lt;BR /&gt;12-04 20:14:14.483 2427 2427 I chatty : uid=1000(system) allocator@1.0-s identical 4 lines&lt;BR /&gt;12-04 20:14:14.483 2427 2427 W AshmemAllocator: ashmem_create_region(12) returning hidl_memory(0xf2ade842c100, 12)&lt;BR /&gt;12-04 20:14:14.485 2427 2427 W AshmemAllocator: ashmem_create_region(1572864) returning hidl_memory(0xf2ade842c100, 1572864)&lt;BR /&gt;12-04 20:14:14.491 2427 2427 I chatty : uid=1000(system) allocator@1.0-s identical 2 lines&lt;BR /&gt;12-04 20:14:14.492 2427 2427 W AshmemAllocator: ashmem_create_region(1572864) returning hidl_memory(0xf2ade842c100, 1572864)&lt;BR /&gt;12-04 20:14:14.534 4503 4513 I display : open gpu gralloc module!&lt;BR /&gt;12-04 20:14:14.549 2442 2530 E dpug2d : g2d_open: Init Dpu Handle fail !&lt;BR /&gt;12-04 20:14:14.550 2442 2530 I chatty : uid=1000(system) HwBinder:2442_2 identical 1 line&lt;BR /&gt;12-04 20:14:14.550 2442 2530 E dpug2d : g2d_open: Init Dpu Handle fail !&lt;BR /&gt;12-04 20:14:14.569 4503 4513 D GraphicBufferSource: got buffer with new dataSpace #104&lt;BR /&gt;12-04 20:14:14.569 4503 4528 D OMXNodeInstance: Codec resolved it to (R:2(??), P:1(??), M:1(??), T:3(??)) err=0(NO_ERROR)&lt;BR /&gt;12-04 20:14:14.569 4520 4524 D ACodec : dataspace changed to 0x10c10000 (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) (R:2(Limited), S:1(BT709), T:3(SMPTE_170M))&lt;BR /&gt;12-04 20:14:14.571 2442 2530 E display : updateScreen invalid drmfd&lt;BR /&gt;12-04 20:14:14.576 4503 4526 I OMXPlayer: LEVEL: 1 FUNCTION: PrepareForPreprocess LINE: 1935&lt;BR /&gt;12-04 20:14:14.576 4503 4526 I OMXPlayer: PrepareForPreprocess pPreProcess Create failed&lt;BR /&gt;12-04 20:14:14.577 4503 4526 I OMXPlayer: LEVEL: 1 FUNCTION: ProcessDataBuffer LINE: 1335&lt;BR /&gt;12-04 20:14:14.577 4503 4526 I OMXPlayer: PrepareForPreprocess failed&lt;BR /&gt;12-04 20:14:14.578 2488 2488 I /system/bin/tombstoned: received crash request for pid 4503&lt;BR /&gt;12-04 20:14:14.592 4503 4526 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***&lt;BR /&gt;12-04 20:14:14.592 4503 4526 F DEBUG : Build fingerprint: 'spaulding/spauldingonedevice/spauldingonedevice:9/dea-9.0-r2.1/rob10200800:eng/dev-keys'&lt;BR /&gt;12-04 20:14:14.592 4503 4526 F DEBUG : Revision: '0'&lt;BR /&gt;12-04 20:14:14.592 4503 4526 F DEBUG : ABI: 'arm'&lt;BR /&gt;12-04 20:14:14.592 4503 4526 F DEBUG : pid: 4503, tid: 4526, name: omx@1.0-service &amp;gt;&amp;gt;&amp;gt; media.codec &amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;12-04 20:14:14.592 4503 4526 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x44&lt;BR /&gt;12-04 20:14:14.592 4503 4526 F DEBUG : Cause: null pointer dereference&lt;BR /&gt;12-04 20:14:14.592 4503 4526 F DEBUG : r0 00000000 r1 41424752 r2 00000001 r3 7f000001&lt;BR /&gt;12-04 20:14:14.592 4503 4526 F DEBUG : r4 41424752 r5 00000000 r6 8000100e r7 f206a58d&lt;BR /&gt;12-04 20:14:14.592 4503 4526 F DEBUG : r8 80001005 r9 f28ad004 r10 f206a579 r11 f206a550&lt;BR /&gt;12-04 20:14:14.592 4503 4526 F DEBUG : ip f2094ddc sp f1f71760 lr f2088281 pc f208822c&lt;BR /&gt;12-04 20:14:14.602 4503 4526 F DEBUG :&lt;BR /&gt;12-04 20:14:14.602 4503 4526 F DEBUG : backtrace:&lt;BR /&gt;12-04 20:14:14.602 4503 4526 F DEBUG : #00 pc 0000822c /vendor/lib/lib_omx_v4l2_common_arm11_elinux.so (V4l2Object::IsFormatSupported(unsigned int)+8)&lt;BR /&gt;12-04 20:14:14.602 4503 4526 F DEBUG : #01 pc 0000827d /vendor/lib/lib_omx_v4l2_common_arm11_elinux.so (V4l2Object::SetFormat(V4l2ObjectFormat*)+36)&lt;BR /&gt;12-04 20:14:14.602 4503 4526 F DEBUG : #02 pc 0000db6f /vendor/lib/lib_omx_v4l2_common_arm11_elinux.so (IsiColorConvert::setParam()+78)&lt;BR /&gt;12-04 20:14:14.602 4503 4526 F DEBUG : #03 pc 0000ddbf /vendor/lib/lib_omx_v4l2_common_arm11_elinux.so (IsiColorConvert::AddInputFrame(OMX_BUFFERHEADERTYPE*)+158)&lt;BR /&gt;12-04 20:14:14.602 4503 4526 F DEBUG : #04 pc 00006f37 /vendor/lib/lib_omx_v4l2_enc_arm11_elinux.so (V4l2Enc::ProcessInputBuffer()+274)&lt;BR /&gt;12-04 20:14:14.602 4503 4526 F DEBUG : #05 pc 00006769 /vendor/lib/lib_omx_v4l2_enc_arm11_elinux.so (V4l2Enc::ProcessDataBuffer()+500)&lt;BR /&gt;12-04 20:14:14.602 4503 4526 F DEBUG : #06 pc 00009ebb /vendor/lib/lib_omx_common_v2_arm11_elinux.so (DoThread(void*)+114)&lt;BR /&gt;12-04 20:14:14.602 4503 4526 F DEBUG : #07 pc 00063bb5 /system/lib/libc.so (__pthread_start(void*)+22)&lt;BR /&gt;12-04 20:14:14.602 4503 4526 F DEBUG : #08 pc 0001e02d /system/lib/libc.so (__start_thread+22)&lt;BR /&gt;12-04 20:14:14.678 2488 2488 E /system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_28&lt;BR /&gt;12-04 20:14:14.686 2598 2618 I BootReceiver: Copying /data/tombstones/tombstone_28 to DropBox (SYSTEM_TOMBSTONE)&lt;BR /&gt;12-04 20:14:14.702 4520 4524 E ACodec : OMX/mediaserver died, signalling error!&lt;BR /&gt;12-04 20:14:14.702 4520 4524 E ACodec : signalError(omxError 0x8000100d, internalError -32)&lt;BR /&gt;12-04 20:14:14.702 4520 4523 E MediaCodec: Codec reported err 0xffffffe0, actionCode 0, while in state 6&lt;BR /&gt;12-04 20:14:14.702 4520 4520 W ScreenRecord: dequeueOutputBuffer returned INVALID_OPERATION&lt;BR /&gt;12-04 20:14:14.708 4520 4520 E MediaMuxer: stop() is called in invalid state 1&lt;BR /&gt;12-04 20:14:14.724 2467 2467 W libEGL : EGLNativeWindowType 0xe93b42bf9010 disconnect failed&lt;BR /&gt;12-04 20:14:14.727 2442 2530 E dpug2d : g2d_open: Init Dpu Handle fail !&lt;BR /&gt;12-04 20:14:14.727 2442 2530 I chatty : uid=1000(system) HwBinder:2442_2 identical 1 line&lt;BR /&gt;12-04 20:14:14.727 2442 2530 E dpug2d : g2d_open: Init Dpu Handle fail !&lt;BR /&gt;12-04 20:14:14.732 4520 4520 D ScreenRecord: failed&lt;BR /&gt;12-04 20:14:14.732 2442 2530 E display : updateScreen invalid drmfd&lt;BR /&gt;12-04 20:14:14.761 2598 2613 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver&lt;BR /&gt;12-04 20:14:14.762 2598 2613 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver&lt;BR /&gt;12-04 20:14:14.752 4533 4533 W init : type=1400 audit(0.0:217): avc: granted { read } for name="null" dev="tmpfs" ino=9292 scontext=u:r:init:s0 tcontext=u:object_r:null_device:s0 tclass=chr_file&lt;BR /&gt;12-04 20:14:14.951 4533 4533 I media.codec: mediacodecservice starting&lt;BR /&gt;12-04 20:14:14.952 4533 4533 W media.codec: libminijail[4533]: failed to get path of fd 4: No such file or directory&lt;BR /&gt;12-04 20:14:14.952 4533 4533 W media.codec: libminijail[4533]: allowing syscall: clock_gettime&lt;BR /&gt;12-04 20:14:14.952 4533 4533 W media.codec: libminijail[4533]: allowing syscall: connect&lt;BR /&gt;12-04 20:14:14.952 4533 4533 W media.codec: libminijail[4533]: allowing syscall: fcntl64&lt;BR /&gt;12-04 20:14:14.952 4533 4533 W media.codec: libminijail[4533]: allowing syscall: socket&lt;BR /&gt;12-04 20:14:14.952 4533 4533 W media.codec: libminijail[4533]: allowing syscall: writev&lt;BR /&gt;12-04 20:14:14.954 4533 4533 W media.codec: libminijail[4533]: compile_file: &amp;lt;fd&amp;gt;(61): nonexistent syscall 'create'&lt;BR /&gt;12-04 20:14:14.954 4533 4533 W media.codec: libminijail[4533]: compile_file: &amp;lt;fd&amp;gt;(63): nonexistent syscall 'mkfifo'&lt;BR /&gt;12-04 20:14:14.954 4533 4533 W media.codec: libminijail[4533]: logging seccomp filter failures&lt;BR /&gt;12-04 20:14:14.961 4533 4533 W MediaCodecsXmlParser: unable to open media codecs configuration xml file: /data/misc/media/media_codecs_profiling_results.xml&lt;BR /&gt;12-04 20:14:14.962 4533 4533 W MediaCodecsXmlParser: parseTopLevelXMLFile(/data/misc/media/media_codecs_profiling_results.xml) failed&lt;BR /&gt;12-04 20:14:14.964 4533 4533 I ServiceManagement: Removing namespace from process name android.hardware.media.omx@1.0-service to omx@1.0-service.&lt;BR /&gt;12-04 20:14:14.971 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: Open LINE: 39&lt;BR /&gt;12-04 20:14:14.971 4533 4533 I OMXPlayer: Can't open file: /vendor/etc/component_register_ac3&lt;BR /&gt;12-04 20:14:14.971 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: ComponentRegister LINE: 75&lt;BR /&gt;12-04 20:14:14.971 4533 4533 I OMXPlayer: Open component register file /vendor/etc/component_register_ac3 fail.&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: Open LINE: 39&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Can't open file: /vendor/etc/component_register_ddp&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: ComponentRegister LINE: 75&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Open component register file /vendor/etc/component_register_ddp fail.&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: Open LINE: 39&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Can't open file: /vendor/etc/component_register_ms&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: ComponentRegister LINE: 75&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Open component register file /vendor/etc/component_register_ms fail.&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: Open LINE: 39&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Can't open file: /vendor/etc/component_register_wmv9&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: ComponentRegister LINE: 75&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Open component register file /vendor/etc/component_register_wmv9 fail.&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: Open LINE: 39&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Can't open file: /vendor/etc/component_register_ra&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: ComponentRegister LINE: 75&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Open component register file /vendor/etc/component_register_ra fail.&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: Open LINE: 39&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Can't open file: /vendor/etc/component_register_rv&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: ComponentRegister LINE: 75&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Open component register file /vendor/etc/component_register_rv fail.&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: Open LINE: 39&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Can't open file: /vendor/etc/component_register_dsp_aacp&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: ComponentRegister LINE: 75&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Open component register file /vendor/etc/component_register_dsp_aacp fail.&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: Open LINE: 39&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Can't open file: /vendor/etc/component_register_dsp&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: ComponentRegister LINE: 75&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Open component register file /vendor/etc/component_register_dsp fail.&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: Open LINE: 39&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Can't open file: /vendor/etc/component_register_divx&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: ComponentRegister LINE: 75&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Open component register file /vendor/etc/component_register_divx fail.&lt;BR /&gt;12-04 20:14:14.979 4533 4533 W MediaCodecsXmlParser: unable to open media codecs configuration xml file: /data/misc/media/media_codecs_profiling_results.xml&lt;BR /&gt;12-04 20:14:14.979 4533 4533 W MediaCodecsXmlParser: parseTopLevelXMLFile(/data/misc/media/media_codecs_profiling_results.xml) failed&lt;BR /&gt;12-04 20:14:14.979 4533 4533 I ServiceManagement: Removing namespace from process name android.hardware.media.omx@1.0-service to omx@1.0-service.&lt;BR /&gt;12-04 20:14:14.981 4533 4533 I media.codec: IOmx HAL service created.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Are there Android device build settings that I don't have enabled, or extra firmware that I need to include, or something else I'm missing from the build that allows the video encoder codec to grab frames from the display frame buffer?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Dec 2020 16:33:43 GMT</pubDate>
    <dc:creator>rob_mclean</dc:creator>
    <dc:date>2020-12-07T16:33:43Z</dc:date>
    <item>
      <title>Screenrecord says "Encoder failed" with Android 9.0.0_2.3.4</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Screenrecord-says-quot-Encoder-failed-quot-with-Android-9-0-0-2/m-p/1194815#M166086</link>
      <description>&lt;P&gt;When I try to use "screenrecord" with Android 9.0.0_2.3.4 on an i.MX8QXP, I'm getting this:&lt;/P&gt;&lt;PRE&gt;# screenrecord --verbose /data/blah.mp4&lt;BR /&gt;Main display is 1920x1080 @60.00fps (orientation=0)&lt;BR /&gt;Configuring recorder for 1920x1080 video/avc at 20.00Mbps&lt;BR /&gt;Content area is 1920x1080 at offset x=0 y=0&lt;BR /&gt;Encoder failed (err=-38)&lt;BR /&gt;Stopping encoder and muxer&lt;/PRE&gt;&lt;P&gt;Here is what logcat has to say when I run that command:&lt;/P&gt;&lt;PRE&gt;12-04 20:14:14.401 4520 4524 I OMXClient: IOmx service obtained&lt;BR /&gt;12-04 20:14:14.402 4503 4503 I OMXMaster: makeComponentInstance(OMX.Freescale.std.video_encoder.avc.hw-based) in omx@1.0-service process&lt;BR /&gt;12-04 20:14:14.422 4503 4503 W OMXNodeInstance: [0xf2b32004:Freescale.std._encoder.avc.hw-based] component does not support metadata mode; using fallback&lt;BR /&gt;12-04 20:14:14.423 4520 4524 W OMXUtils: do not know color format 0x6 = 6&lt;BR /&gt;12-04 20:14:14.423 4520 4524 W OMXUtils: do not know color format 0x7f000789 = 2130708361&lt;BR /&gt;12-04 20:14:14.424 4520 4524 I ACodec : setupAVCEncoderParameters with [profile: Baseline] [level: Level1]&lt;BR /&gt;12-04 20:14:14.425 4520 4524 I ACodec : [OMX.Freescale.std.video_encoder.avc.hw-based] cannot encode HDR static metadata. Ignoring.&lt;BR /&gt;12-04 20:14:14.425 4520 4524 I ACodec : setupVideoEncoder succeeded&lt;BR /&gt;12-04 20:14:14.426 4520 4524 W OMXUtils: do not know color format 0x7f000789 = 2130708361&lt;BR /&gt;12-04 20:14:14.426 4503 4503 E OMXNodeInstance: getConfig(0xf2b32004:Freescale.std._encoder.avc.hw-based, ConfigLatency(0x6f800005)) ERROR: NotImplemented(0x80001006)&lt;BR /&gt;12-04 20:14:14.426 4503 4503 E OMXNodeInstance: getConfig(0xf2b32004:Freescale.std._encoder.avc.hw-based, ConfigAndroidVendorExtension(0x6f100004)) ERROR: NotImplemented(0x80001006)&lt;BR /&gt;12-04 20:14:14.430 4503 4503 D GraphicBufferSource: setting dataspace: 0x104, acquired=0&lt;BR /&gt;12-04 20:14:14.430 4503 4503 D GraphicBufferSource: requesting color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M))&lt;BR /&gt;12-04 20:14:14.433 2427 2427 W AshmemAllocator: ashmem_create_region(12) returning hidl_memory(0xf2ade842c100, 12)&lt;BR /&gt;12-04 20:14:14.483 2427 2427 I chatty : uid=1000(system) allocator@1.0-s identical 4 lines&lt;BR /&gt;12-04 20:14:14.483 2427 2427 W AshmemAllocator: ashmem_create_region(12) returning hidl_memory(0xf2ade842c100, 12)&lt;BR /&gt;12-04 20:14:14.485 2427 2427 W AshmemAllocator: ashmem_create_region(1572864) returning hidl_memory(0xf2ade842c100, 1572864)&lt;BR /&gt;12-04 20:14:14.491 2427 2427 I chatty : uid=1000(system) allocator@1.0-s identical 2 lines&lt;BR /&gt;12-04 20:14:14.492 2427 2427 W AshmemAllocator: ashmem_create_region(1572864) returning hidl_memory(0xf2ade842c100, 1572864)&lt;BR /&gt;12-04 20:14:14.534 4503 4513 I display : open gpu gralloc module!&lt;BR /&gt;12-04 20:14:14.549 2442 2530 E dpug2d : g2d_open: Init Dpu Handle fail !&lt;BR /&gt;12-04 20:14:14.550 2442 2530 I chatty : uid=1000(system) HwBinder:2442_2 identical 1 line&lt;BR /&gt;12-04 20:14:14.550 2442 2530 E dpug2d : g2d_open: Init Dpu Handle fail !&lt;BR /&gt;12-04 20:14:14.569 4503 4513 D GraphicBufferSource: got buffer with new dataSpace #104&lt;BR /&gt;12-04 20:14:14.569 4503 4528 D OMXNodeInstance: Codec resolved it to (R:2(??), P:1(??), M:1(??), T:3(??)) err=0(NO_ERROR)&lt;BR /&gt;12-04 20:14:14.569 4520 4524 D ACodec : dataspace changed to 0x10c10000 (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) (R:2(Limited), S:1(BT709), T:3(SMPTE_170M))&lt;BR /&gt;12-04 20:14:14.571 2442 2530 E display : updateScreen invalid drmfd&lt;BR /&gt;12-04 20:14:14.576 4503 4526 I OMXPlayer: LEVEL: 1 FUNCTION: PrepareForPreprocess LINE: 1935&lt;BR /&gt;12-04 20:14:14.576 4503 4526 I OMXPlayer: PrepareForPreprocess pPreProcess Create failed&lt;BR /&gt;12-04 20:14:14.577 4503 4526 I OMXPlayer: LEVEL: 1 FUNCTION: ProcessDataBuffer LINE: 1335&lt;BR /&gt;12-04 20:14:14.577 4503 4526 I OMXPlayer: PrepareForPreprocess failed&lt;BR /&gt;12-04 20:14:14.578 2488 2488 I /system/bin/tombstoned: received crash request for pid 4503&lt;BR /&gt;12-04 20:14:14.592 4503 4526 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***&lt;BR /&gt;12-04 20:14:14.592 4503 4526 F DEBUG : Build fingerprint: 'spaulding/spauldingonedevice/spauldingonedevice:9/dea-9.0-r2.1/rob10200800:eng/dev-keys'&lt;BR /&gt;12-04 20:14:14.592 4503 4526 F DEBUG : Revision: '0'&lt;BR /&gt;12-04 20:14:14.592 4503 4526 F DEBUG : ABI: 'arm'&lt;BR /&gt;12-04 20:14:14.592 4503 4526 F DEBUG : pid: 4503, tid: 4526, name: omx@1.0-service &amp;gt;&amp;gt;&amp;gt; media.codec &amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;12-04 20:14:14.592 4503 4526 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x44&lt;BR /&gt;12-04 20:14:14.592 4503 4526 F DEBUG : Cause: null pointer dereference&lt;BR /&gt;12-04 20:14:14.592 4503 4526 F DEBUG : r0 00000000 r1 41424752 r2 00000001 r3 7f000001&lt;BR /&gt;12-04 20:14:14.592 4503 4526 F DEBUG : r4 41424752 r5 00000000 r6 8000100e r7 f206a58d&lt;BR /&gt;12-04 20:14:14.592 4503 4526 F DEBUG : r8 80001005 r9 f28ad004 r10 f206a579 r11 f206a550&lt;BR /&gt;12-04 20:14:14.592 4503 4526 F DEBUG : ip f2094ddc sp f1f71760 lr f2088281 pc f208822c&lt;BR /&gt;12-04 20:14:14.602 4503 4526 F DEBUG :&lt;BR /&gt;12-04 20:14:14.602 4503 4526 F DEBUG : backtrace:&lt;BR /&gt;12-04 20:14:14.602 4503 4526 F DEBUG : #00 pc 0000822c /vendor/lib/lib_omx_v4l2_common_arm11_elinux.so (V4l2Object::IsFormatSupported(unsigned int)+8)&lt;BR /&gt;12-04 20:14:14.602 4503 4526 F DEBUG : #01 pc 0000827d /vendor/lib/lib_omx_v4l2_common_arm11_elinux.so (V4l2Object::SetFormat(V4l2ObjectFormat*)+36)&lt;BR /&gt;12-04 20:14:14.602 4503 4526 F DEBUG : #02 pc 0000db6f /vendor/lib/lib_omx_v4l2_common_arm11_elinux.so (IsiColorConvert::setParam()+78)&lt;BR /&gt;12-04 20:14:14.602 4503 4526 F DEBUG : #03 pc 0000ddbf /vendor/lib/lib_omx_v4l2_common_arm11_elinux.so (IsiColorConvert::AddInputFrame(OMX_BUFFERHEADERTYPE*)+158)&lt;BR /&gt;12-04 20:14:14.602 4503 4526 F DEBUG : #04 pc 00006f37 /vendor/lib/lib_omx_v4l2_enc_arm11_elinux.so (V4l2Enc::ProcessInputBuffer()+274)&lt;BR /&gt;12-04 20:14:14.602 4503 4526 F DEBUG : #05 pc 00006769 /vendor/lib/lib_omx_v4l2_enc_arm11_elinux.so (V4l2Enc::ProcessDataBuffer()+500)&lt;BR /&gt;12-04 20:14:14.602 4503 4526 F DEBUG : #06 pc 00009ebb /vendor/lib/lib_omx_common_v2_arm11_elinux.so (DoThread(void*)+114)&lt;BR /&gt;12-04 20:14:14.602 4503 4526 F DEBUG : #07 pc 00063bb5 /system/lib/libc.so (__pthread_start(void*)+22)&lt;BR /&gt;12-04 20:14:14.602 4503 4526 F DEBUG : #08 pc 0001e02d /system/lib/libc.so (__start_thread+22)&lt;BR /&gt;12-04 20:14:14.678 2488 2488 E /system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_28&lt;BR /&gt;12-04 20:14:14.686 2598 2618 I BootReceiver: Copying /data/tombstones/tombstone_28 to DropBox (SYSTEM_TOMBSTONE)&lt;BR /&gt;12-04 20:14:14.702 4520 4524 E ACodec : OMX/mediaserver died, signalling error!&lt;BR /&gt;12-04 20:14:14.702 4520 4524 E ACodec : signalError(omxError 0x8000100d, internalError -32)&lt;BR /&gt;12-04 20:14:14.702 4520 4523 E MediaCodec: Codec reported err 0xffffffe0, actionCode 0, while in state 6&lt;BR /&gt;12-04 20:14:14.702 4520 4520 W ScreenRecord: dequeueOutputBuffer returned INVALID_OPERATION&lt;BR /&gt;12-04 20:14:14.708 4520 4520 E MediaMuxer: stop() is called in invalid state 1&lt;BR /&gt;12-04 20:14:14.724 2467 2467 W libEGL : EGLNativeWindowType 0xe93b42bf9010 disconnect failed&lt;BR /&gt;12-04 20:14:14.727 2442 2530 E dpug2d : g2d_open: Init Dpu Handle fail !&lt;BR /&gt;12-04 20:14:14.727 2442 2530 I chatty : uid=1000(system) HwBinder:2442_2 identical 1 line&lt;BR /&gt;12-04 20:14:14.727 2442 2530 E dpug2d : g2d_open: Init Dpu Handle fail !&lt;BR /&gt;12-04 20:14:14.732 4520 4520 D ScreenRecord: failed&lt;BR /&gt;12-04 20:14:14.732 2442 2530 E display : updateScreen invalid drmfd&lt;BR /&gt;12-04 20:14:14.761 2598 2613 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver&lt;BR /&gt;12-04 20:14:14.762 2598 2613 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver&lt;BR /&gt;12-04 20:14:14.752 4533 4533 W init : type=1400 audit(0.0:217): avc: granted { read } for name="null" dev="tmpfs" ino=9292 scontext=u:r:init:s0 tcontext=u:object_r:null_device:s0 tclass=chr_file&lt;BR /&gt;12-04 20:14:14.951 4533 4533 I media.codec: mediacodecservice starting&lt;BR /&gt;12-04 20:14:14.952 4533 4533 W media.codec: libminijail[4533]: failed to get path of fd 4: No such file or directory&lt;BR /&gt;12-04 20:14:14.952 4533 4533 W media.codec: libminijail[4533]: allowing syscall: clock_gettime&lt;BR /&gt;12-04 20:14:14.952 4533 4533 W media.codec: libminijail[4533]: allowing syscall: connect&lt;BR /&gt;12-04 20:14:14.952 4533 4533 W media.codec: libminijail[4533]: allowing syscall: fcntl64&lt;BR /&gt;12-04 20:14:14.952 4533 4533 W media.codec: libminijail[4533]: allowing syscall: socket&lt;BR /&gt;12-04 20:14:14.952 4533 4533 W media.codec: libminijail[4533]: allowing syscall: writev&lt;BR /&gt;12-04 20:14:14.954 4533 4533 W media.codec: libminijail[4533]: compile_file: &amp;lt;fd&amp;gt;(61): nonexistent syscall 'create'&lt;BR /&gt;12-04 20:14:14.954 4533 4533 W media.codec: libminijail[4533]: compile_file: &amp;lt;fd&amp;gt;(63): nonexistent syscall 'mkfifo'&lt;BR /&gt;12-04 20:14:14.954 4533 4533 W media.codec: libminijail[4533]: logging seccomp filter failures&lt;BR /&gt;12-04 20:14:14.961 4533 4533 W MediaCodecsXmlParser: unable to open media codecs configuration xml file: /data/misc/media/media_codecs_profiling_results.xml&lt;BR /&gt;12-04 20:14:14.962 4533 4533 W MediaCodecsXmlParser: parseTopLevelXMLFile(/data/misc/media/media_codecs_profiling_results.xml) failed&lt;BR /&gt;12-04 20:14:14.964 4533 4533 I ServiceManagement: Removing namespace from process name android.hardware.media.omx@1.0-service to omx@1.0-service.&lt;BR /&gt;12-04 20:14:14.971 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: Open LINE: 39&lt;BR /&gt;12-04 20:14:14.971 4533 4533 I OMXPlayer: Can't open file: /vendor/etc/component_register_ac3&lt;BR /&gt;12-04 20:14:14.971 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: ComponentRegister LINE: 75&lt;BR /&gt;12-04 20:14:14.971 4533 4533 I OMXPlayer: Open component register file /vendor/etc/component_register_ac3 fail.&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: Open LINE: 39&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Can't open file: /vendor/etc/component_register_ddp&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: ComponentRegister LINE: 75&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Open component register file /vendor/etc/component_register_ddp fail.&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: Open LINE: 39&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Can't open file: /vendor/etc/component_register_ms&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: ComponentRegister LINE: 75&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Open component register file /vendor/etc/component_register_ms fail.&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: Open LINE: 39&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Can't open file: /vendor/etc/component_register_wmv9&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: ComponentRegister LINE: 75&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Open component register file /vendor/etc/component_register_wmv9 fail.&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: Open LINE: 39&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Can't open file: /vendor/etc/component_register_ra&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: ComponentRegister LINE: 75&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Open component register file /vendor/etc/component_register_ra fail.&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: Open LINE: 39&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Can't open file: /vendor/etc/component_register_rv&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: ComponentRegister LINE: 75&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Open component register file /vendor/etc/component_register_rv fail.&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: Open LINE: 39&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Can't open file: /vendor/etc/component_register_dsp_aacp&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: ComponentRegister LINE: 75&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Open component register file /vendor/etc/component_register_dsp_aacp fail.&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: Open LINE: 39&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Can't open file: /vendor/etc/component_register_dsp&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: ComponentRegister LINE: 75&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Open component register file /vendor/etc/component_register_dsp fail.&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: Open LINE: 39&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Can't open file: /vendor/etc/component_register_divx&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: LEVEL: 1 FUNCTION: ComponentRegister LINE: 75&lt;BR /&gt;12-04 20:14:14.972 4533 4533 I OMXPlayer: Open component register file /vendor/etc/component_register_divx fail.&lt;BR /&gt;12-04 20:14:14.979 4533 4533 W MediaCodecsXmlParser: unable to open media codecs configuration xml file: /data/misc/media/media_codecs_profiling_results.xml&lt;BR /&gt;12-04 20:14:14.979 4533 4533 W MediaCodecsXmlParser: parseTopLevelXMLFile(/data/misc/media/media_codecs_profiling_results.xml) failed&lt;BR /&gt;12-04 20:14:14.979 4533 4533 I ServiceManagement: Removing namespace from process name android.hardware.media.omx@1.0-service to omx@1.0-service.&lt;BR /&gt;12-04 20:14:14.981 4533 4533 I media.codec: IOmx HAL service created.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Are there Android device build settings that I don't have enabled, or extra firmware that I need to include, or something else I'm missing from the build that allows the video encoder codec to grab frames from the display frame buffer?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 16:33:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Screenrecord-says-quot-Encoder-failed-quot-with-Android-9-0-0-2/m-p/1194815#M166086</guid>
      <dc:creator>rob_mclean</dc:creator>
      <dc:date>2020-12-07T16:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Screenrecord says "Encoder failed" with Android 9.0.0_2.3.4</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Screenrecord-says-quot-Encoder-failed-quot-with-Android-9-0-0-2/m-p/1195679#M166141</link>
      <description>&lt;P&gt;I've discovered that when IsiColorConvert::Create calls the pColorDev-&amp;gt;LookupNode it enumerates all the /dev/video&amp;lt;n&amp;gt; device handles from 2 to 20 looking for a capture or output device that has "mxc-isi" in its name.&amp;nbsp; As it turns out the only /dev/video devices handles available on my device are named "mxc-jpeg decode", "mxc-jpeg encode", "vpu B0", and "vpu encoder".&amp;nbsp; So it fails to find the video device it is looking for, and the error code isn't properly handled further upstream, causing the codec to crash later on.&lt;/P&gt;&lt;P&gt;For reference, I'm using a 4.14.181 Linux kernel with DRM support driving a Raydium MIPI-DSI display.&lt;/P&gt;&lt;P&gt;I suspect all I need to do is add, enable, or configure a node or two in my device tree so that the "LookupNode" function will find the source of buffers to use for the encoder.&amp;nbsp; I suspect the device I seek is the "fsl,imx8-isi" compatible device since that's the only device that has "mxc-isi" in it's name in my kernel source code.&amp;nbsp; However, I'm not sure how to configure the "interface" parameter to work with DRM.&amp;nbsp; I tried the obvious interface settings (input from either DC0 or DC1, output to memory).&amp;nbsp; That did create more /dev/video&amp;lt;n&amp;gt; device handles, but none of them worked.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 15:13:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Screenrecord-says-quot-Encoder-failed-quot-with-Android-9-0-0-2/m-p/1195679#M166141</guid>
      <dc:creator>rob_mclean</dc:creator>
      <dc:date>2020-12-10T15:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Screenrecord says "Encoder failed" with Android 9.0.0_2.3.4</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Screenrecord-says-quot-Encoder-failed-quot-with-Android-9-0-0-2/m-p/1197629#M166283</link>
      <description>&lt;P&gt;I've been reading through the kernel code for the mxc-isi driver, specifically in the file named "drivers/media/platform/imx8/mxc-media-dev.c". In that file, it looks like DC0, DC1, and MEM are unsupported input devices by the function "mxc_md_create_links" which is responsible for setting up the v4l2 pipeline source and sink pads.&lt;/P&gt;&lt;P&gt;I hope that someone out there can prove me wrong, but at this point&amp;nbsp;I think this means the Android apps screenrecord and scrcpy are not supported from my Linux kernel.&lt;/P&gt;&lt;P&gt;I may jump ahead to see if there is a solution I can easily backport from a newer kernel.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 21:16:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Screenrecord-says-quot-Encoder-failed-quot-with-Android-9-0-0-2/m-p/1197629#M166283</guid>
      <dc:creator>rob_mclean</dc:creator>
      <dc:date>2020-12-10T21:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Screenrecord says "Encoder failed" with Android 9.0.0_2.3.4</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Screenrecord-says-quot-Encoder-failed-quot-with-Android-9-0-0-2/m-p/1198949#M166432</link>
      <description>&lt;P&gt;It looks like there are some pretty big changes between my 4.14 kernel and the "latest and greatest" kernel.&amp;nbsp; For example the file that sets up the DRM connections isn't even in the 5.x kernel I looked at.&amp;nbsp; So an easy backport is not likely.&lt;/P&gt;&lt;P&gt;For the time being I'm just going to have to live without screenrecord or scrcpy.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 13:39:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Screenrecord-says-quot-Encoder-failed-quot-with-Android-9-0-0-2/m-p/1198949#M166432</guid>
      <dc:creator>rob_mclean</dc:creator>
      <dc:date>2020-12-14T13:39:21Z</dc:date>
    </item>
  </channel>
</rss>

