Open smelfungus opened 4 years ago
Does screenrecord
work?
adb shell screenrecord /sdcard/file.mp4
adb pull /sdcard/file.mp4
@rom1v seems like screenrecord
output file is broken and the logcat output is pretty much the same:
05-27 11:05:12.085 148-1139/? E/OMXNodeInstance: setParameter(40:amlogic.encoder.avc, OMX.google.android.index.storeMetaDataInBuffers(0x7f000002): Output:1 en=0 GB=0) ERROR: BadPortIndex(0x8000101b)
05-27 11:05:12.087 17510-17514/? E/ACodec: [OMX.amlogic.video.encoder.avc] storeMetaDataInBuffers (output) failed w/ err -2147483648
05-27 11:05:12.091 148-148/? E/OMXNodeInstance: getParameter(40:amlogic.encoder.avc, ??(0x7f000007)) ERROR: UnsupportedSetting(0x80001019)
05-27 11:05:12.095 148-148/? E/OMXNodeInstance: setParameter(40:amlogic.encoder.avc, OMX.google.android.index.enableAndroidNativeBuffers(0x7f000000): Output:1 en=0) ERROR: UnsupportedIndex(0x8000101a)
05-27 11:05:12.096 148-1139/? E/OMXNodeInstance: getParameter(40:amlogic.encoder.avc, ??(0x7f000007)) ERROR: UnsupportedSetting(0x80001019)
05-27 11:05:12.111 132-132/? E/gralloc: gralloc_alloc: Requested auto format selection, but no known format for this usage: 1024 x 600, usage 10800
05-27 11:05:12.112 148-1139/? E/BufferQueueProducer: [GraphicBufferSource] dequeueBuffer: createGraphicBuffer failed
05-27 11:05:12.113 132-132/? E/SurfaceFlinger: [ScreenRecorder] dequeueBuffer: no buffer, bailing out
05-27 11:05:12.113 132-132/? E/[EGL-ERROR]: void __egl_platform_dequeue_buffer(egl_surface*):1691: failed to dequeue buffer from native window 0xb6516d08; err = -12, buf = 0x0,max_allowed_dequeued_buffers 3
05-27 11:05:12.113 132-132/? E/libEGL: eglMakeCurrent:777 error 3003 (EGL_BAD_ALLOC)
05-27 11:05:16.059 132-132/? E/gralloc: gralloc_alloc: Requested auto format selection, but no known format for this usage: 1024 x 600, usage 10800
05-27 11:05:16.060 148-148/? E/BufferQueueProducer: [GraphicBufferSource] dequeueBuffer: createGraphicBuffer failed
05-27 11:05:16.061 132-132/? E/SurfaceFlinger: [ScreenRecorder] dequeueBuffer: no buffer, bailing out
05-27 11:05:16.061 132-132/? E/[EGL-ERROR]: void __egl_platform_dequeue_buffer(egl_surface*):1691: failed to dequeue buffer from native window 0xb6516d08; err = -12, buf = 0x0,max_allowed_dequeued_buffers 3
05-27 11:05:16.061 132-132/? E/libEGL: eglMakeCurrent:777 error 3003 (EGL_BAD_ALLOC)
05-27 11:05:16.076 132-132/? E/gralloc: gralloc_alloc: Requested auto format selection, but no known format for this usage: 1024 x 600, usage 10800
05-27 11:05:16.076 148-18539/? E/BufferQueueProducer: [GraphicBufferSource] dequeueBuffer: createGraphicBuffer failed
05-27 11:05:16.077 132-132/? E/SurfaceFlinger: [ScreenRecorder] dequeueBuffer: no buffer, bailing out
05-27 11:05:16.077 132-132/? E/[EGL-ERROR]: void __egl_platform_dequeue_buffer(egl_surface*):1691: failed to dequeue buffer from native window 0xb6516d08; err = -12, buf = 0x0,max_allowed_dequeued_buffers 3
05-27 11:05:16.077 132-132/? E/libEGL: eglMakeCurrent:777 error 3003 (EGL_BAD_ALLOC)
05-27 11:05:16.093 132-132/? E/gralloc: gralloc_alloc: Requested auto format selection, but no known format for this usage: 1024 x 600, usage 10800
05-27 11:05:16.093 148-4118/? E/BufferQueueProducer: [GraphicBufferSource] dequeueBuffer: createGraphicBuffer failed
05-27 11:05:16.094 132-132/? E/SurfaceFlinger: [ScreenRecorder] dequeueBuffer: no buffer, bailing out
05-27 11:05:16.094 132-132/? E/[EGL-ERROR]: void __egl_platform_dequeue_buffer(egl_surface*):1691: failed to dequeue buffer from native window 0xb6516d08; err = -12, buf = 0x0,max_allowed_dequeued_buffers 3
05-27 11:05:16.094 132-132/? E/libEGL: eglMakeCurrent:777 error 3003 (EGL_BAD_ALLOC)
05-27 11:05:16.109 132-132/? E/gralloc: gralloc_alloc: Requested auto format selection, but no known format for this usage: 1024 x 600, usage 10800
05-27 11:05:16.109 148-1139/? E/BufferQueueProducer: [GraphicBufferSource] dequeueBuffer: createGraphicBuffer failed
05-27 11:05:16.110 132-132/? E/SurfaceFlinger: [ScreenRecorder] dequeueBuffer: no buffer, bailing out
05-27 11:05:16.110 132-132/? E/[EGL-ERROR]: void __egl_platform_dequeue_buffer(egl_surface*):1691: failed to dequeue buffer from native window 0xb6516d08; err = -12, buf = 0x0,max_allowed_dequeued_buffers 3
05-27 11:05:16.110 132-132/? E/libEGL: eglMakeCurrent:777 error 3003 (EGL_BAD_ALLOC)
OK, then it's probably a bug in the ROM of your device.
I'm in the same boat. Any known workarounds?
Not sure if the below logcat provides any additional insight
D/AndroidRuntime(13547): >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
D/AndroidRuntime(13547): CheckJNI is OFF
D/AndroidRuntime(13547): Calling main entry com.genymobile.scrcpy.Server
I/scrcpy (13547): Device: Google Tablet-G21 (Android 5.1.1)
W/linker (13547): libamffmpeg.so has text relocations. This is wasting memory and prevents security hardening. Please fix.
I/art (13547): Thread[1,tid=13547,WaitingForJniOnLoad,Thread*=0xb4827800,peer=0x12c41100,"main"] recursive attempt to load library "/system/lib/libmedia_jni.so"
D/MtpDeviceJNI(13547): register_android_mtp_MtpDevice
I/art (13547): Thread[1,tid=13547,WaitingForJniOnLoad,Thread*=0xb4827800,peer=0x12c41100,"main"] recursive attempt to load library "/system/lib/libmedia_jni.so"
I/art (13547): Thread[1,tid=13547,WaitingForJniOnLoad,Thread*=0xb4827800,peer=0x12c41100,"main"] recursive attempt to load library "/system/lib/libmedia_jni.so"
I/OMXClient(13547): Using client-side OMX mux.
D/OmxComponentManagerImpl( 147): getEntryByName_2_num=0, componentName:OMX.amlogic.video.encoder.avc
W/OmxLogConf( 147): Can not read property media.omx.log_levels, using 0
D/OmxComponentManagerImpl( 147): IncreaseEntryNumByName pEntry->mNum=0, pEntry->mMaxNum:1,componentName:OMX.amlogic.video.encoder.avc
I/omx_core( 147): OMX_getHandle_num=1
D/OmxComponent( 147): getExtensionIndex 1021 name="OMX.amlogic.android.index.setClientPidInfo"
D/OmxComponent( 147): getExtensionIndex 1021 name="OMX.google.android.index.storeMetaDataInBuffers"
E/OmxVideoEncoder( 147): setParameter: StoreMetadataInBuffersParams.nPortIndex not input port!
E/OMXNodeInstance( 147): setParameter(5c:amlogic.encoder.avc, OMX.google.android.index.storeMetaDataInBuffers(0x7f000002): Output:1 en=0 GB=0) ERROR: BadPortIndex(0x8000101b)
E/ACodec (13547): [OMX.amlogic.video.encoder.avc] storeMetaDataInBuffers (output) failed w/ err -2147483648
D/OmxComponent( 147): getExtensionIndex 1021 name="OMX.google.android.index.describeColorFormat"
D/OmxComponent( 147): getExtensionIndex 1021 name="OMX.google.android.index.describeColorFormat"
D/OmxComponent( 147): getExtensionIndex 1021 name="OMX.google.android.index.describeColorFormat"
E/OMXNodeInstance( 147): getParameter(5c:amlogic.encoder.avc, ??(0x7f000007)) ERROR: UnsupportedSetting(0x80001019)
W/ACodec (13547): do not know color format 0x7f000789 = 2130708361
I/ACodec (13547): setupVideoEncoder succeeded
D/OmxComponent( 147): getExtensionIndex 1021 name="OMX.google.android.index.enableAndroidNativeBuffers"
E/OMXNodeInstance( 147): setParameter(5c:amlogic.encoder.avc, OMX.google.android.index.enableAndroidNativeBuffers(0x7f000000): Output:1 en=0) ERROR: UnsupportedIndex(0x8000101a)
D/OmxComponent( 147): getExtensionIndex 1021 name="OMX.google.android.index.describeColorFormat"
E/OMXNodeInstance( 147): getParameter(5c:amlogic.encoder.avc, ??(0x7f000007)) ERROR: UnsupportedSetting(0x80001019)
W/ACodec (13547): do not know color format 0x7f000789 = 2130708361
D/OmxComponent( 147): getExtensionIndex 1021 name="OMX.google.android.index.storeGraphicBufferInMetaData"
D/OmxComponent( 147): getExtensionIndex 1021 name="OMX.google.android.index.storeMetaDataInBuffers"
E/gralloc ( 126): gralloc_alloc: Requested auto format selection, but no known format for this usage: 640 x 360, usage 10800
W/GraphicBufferAllocator( 126): alloc(640, 360, 34, 00010800, ...) failed -22 (Invalid argument)
E/ ( 126): GraphicBufferAlloc::createGraphicBuffer(w=640, h=360) failed (Invalid argument), handle=0x0
E/BufferQueueProducer( 147): [GraphicBufferSource] dequeueBuffer: createGraphicBuffer failed
E/SurfaceFlinger( 126): [scrcpy] dequeueBuffer: no buffer, bailing out
E/[EGL-ERROR]( 126): void __egl_platform_dequeue_buffer(egl_surface*):1691: failed to dequeue buffer from native window 0xb6516d08; err = -12, buf = 0x0,max_allowed_dequeued_buffers 3
E/libEGL ( 126): eglMakeCurrent:777 error 3003 (EGL_BAD_ALLOC)
W/SurfaceFlinger( 126): DisplayDevice::makeCurrent failed. Aborting surface composition for display scrcpy
I/OmxComponent( 147): OMX_CommandStateSet 663 Cmd 0 nParam1 0x2
I/OmxComponent( 147): STATE_SET: OMX_StateLoaded => OMX_StateIdle : OMX.amlogic.video.encoder.avc
I/OmxComponent( 147): OMX_CommandStateSet 663 Cmd 0 nParam1 0x3
I/OmxComponent( 147): STATE_SET: OMX_StateIdle => OMX_StateExecuting : OMX.amlogic.video.encoder.avc
D/AmlogicVideoAVCEncoder( 147): mVideoColorFormat :0x7f000789, mVideoFrameRate: 60
D/AmlogicVideoAVCEncoder( 147): mStoreMetaDataInBuffers:1
D/AmlogicVideoAVCEncoder( 147): mVideoBitRate :1000000
D/AmlogicVideoAVCEncoder( 147): Video frame height is not standard:360
W/SurfaceFlinger( 126): [scrcpy] Unexpected onFrameCommitted() in GLES state
I/AMLVENC_API( 147): hw.encoder.forcemode = 0, dev_id=1. fd:55
D/NOISE_REDUCTION( 147): int noise_redution_init(PRM_NR*, int, int), 19, noise value =0
D/M8VENCDUMP( 147): encoder dump value:0
D/AMLVENC ( 147): AML_HWEncInitialize success, handle: 0xb5a29680, fd:55
D/AndroidRuntime(13561): >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
D/AndroidRuntime(13561): CheckJNI is OFF
D/AndroidRuntime(13561): Calling main entry com.genymobile.scrcpy.CleanUp
I/AudioFlinger( 147): BUFFER TIMEOUT: remove(4097) from active list on thread 0xb58dd000
E/gralloc ( 126): gralloc_alloc: Requested auto format selection, but no known format for this usage: 640 x 360, usage 10800
W/GraphicBufferAllocator( 126): alloc(640, 360, 34, 00010800, ...) failed -22 (Invalid argument)
E/ ( 126): GraphicBufferAlloc::createGraphicBuffer(w=640, h=360) failed (Invalid argument), handle=0x0
E/BufferQueueProducer( 147): [GraphicBufferSource] dequeueBuffer: createGraphicBuffer failed
E/SurfaceFlinger( 126): [scrcpy] dequeueBuffer: no buffer, bailing out
E/[EGL-ERROR]( 126): void __egl_platform_dequeue_buffer(egl_surface*):1691: failed to dequeue buffer from native window 0xb6516d08; err = -12, buf = 0x0,max_allowed_dequeued_buffers 3
E/libEGL ( 126): eglMakeCurrent:777 error 3003 (EGL_BAD_ALLOC)
W/SurfaceFlinger( 126): DisplayDevice::makeCurrent failed. Aborting surface composition for display scrcpy
W/SurfaceFlinger( 126): [scrcpy] Unexpected onFrameCommitted() in GLES state
E/gralloc ( 126): gralloc_alloc: Requested auto format selection, but no known format for this usage: 640 x 360, usage 10800
W/GraphicBufferAllocator( 126): alloc(640, 360, 34, 00010800, ...) failed -22 (Invalid argument)
E/ ( 126): GraphicBufferAlloc::createGraphicBuffer(w=640, h=360) failed (Invalid argument), handle=0x0
E/BufferQueueProducer( 147): [GraphicBufferSource] dequeueBuffer: createGraphicBuffer failed
E/SurfaceFlinger( 126): [scrcpy] dequeueBuffer: no buffer, bailing out
E/[EGL-ERROR]( 126): void __egl_platform_dequeue_buffer(egl_surface*):1691: failed to dequeue buffer from native window 0xb6516d08; err = -12, buf = 0x0,max_allowed_dequeued_buffers 3
E/libEGL ( 126): eglMakeCurrent:777 error 3003 (EGL_BAD_ALLOC)
W/SurfaceFlinger( 126): DisplayDevice::makeCurrent failed. Aborting surface composition for display scrcpy
W/SurfaceFlinger( 126): [scrcpy] Unexpected onFrameCommitted() in GLES state
D/audio_hw_primary( 147): do_output_standby(0xb5893300)
D/audio_hw_primary( 147): do_output_standby : output_standby=1,input_standby=1
I/OmxComponent( 147): OMX_CommandStateSet 663 Cmd 0 nParam1 0x2
I/OmxComponent( 147): STATE_SET: OMX_StateExecuting => OMX_StateIdle : OMX.amlogic.avc.decoder.awesome
I/OmxComponent( 147): OMX.amlogic.avc.decoder.awesome: flush input
V/AmlogicVideoDecoderAwesome( 147): flushInput:381 >
V/AmlogicVideoDecoderAwesome( 147): pause:194 >
V/AmlogicVideoDecoderAwesome( 147): reset:247 >
I/amcodec ( 147): [codec_reset:438]ret=0
V/AmlogicVideoDecoderAwesome( 147): start:202 >
E/ThreadWorker( 147): Worker is already running.
I/OmxComponent( 147): OMX.amlogic.avc.decoder.awesome: flush output
V/AmlogicVideoDecoderAwesome( 147): flushOutput:399 >
D/AmlogicVideoDecoderAwesome( 147): displayThread__flushOutput__fillBufferDone
D/AmlogicVideoDecoderAwesome( 147): displayThread__flushOutput__fillBufferDone
D/AmlogicVideoDecoderAwesome( 147): displayThread__flushOutput__fillBufferDone
D/AmlogicVideoDecoderAwesome( 147): displayThread__flushOutput__fillBufferDone
D/AmlogicVideoDecoderAwesome( 147): mVideo stop
V/AmlogicVideoDecoderAwesome( 147): stop:224 >
I/OmxComponent( 147): OMX_CommandStateSet 663 Cmd 0 nParam1 0x1
I/OmxComponent( 147): STATE_SET: OMX_StateIdle => OMX_StateLoaded : OMX.amlogic.avc.decoder.awesome
V/AmlogicVideoDecoderAwesome( 147): releaseResources:273 >
V/AmlogicVideoDecoderAwesome( 147): tearDown:713 >
V/AmlogicVideoDecoderAwesome( 147): initializeState_l:736 >
V/AmlogicVideoDecoderAwesome( 147): get def maping [decoder ppmgr deinterlace amvideo]
I/SystemControl( 153): writeSysfs [ /sys/module/amlvideodri/parameters/freerun_mode ] [ 0 ] from pid=147, uid=1013, process name=/system/bin/mediaserver
I/SystemControl( 153): writeSysfs [ /sys/class/vfm/map ] [ rm default ] from pid=147, uid=1013, process name=/system/bin/mediaserver
V/AmlogicVideoDecoderAwesome( 147): disable osd or video__rm default,ret=0
I/SystemControl( 153): writeSysfs [ /sys/class/vfm/map ] [ add default decoder ppmgr deinterlace amvideo ] from pid=147, uid=1013, process name=/system/bin/mediaserver
V/AmlogicVideoDecoderAwesome( 147): disable osd video ...0
D/OmxComponentManagerImpl( 147): DecreaseEntryNumByName pEntry->mNum=1, pEntry->mMaxNum:4,componentName:OMX.amlogic.avc.decoder.awesome
I/omx_core( 147): OMX_freeHandle_num_=0
D/audio_hw_primary( 147): out_set_parameters(kvpairs(routing=2), out_device=0x2)
I/MediaFocusControl( 523): AudioFocus abandonAudioFocus() from android.media.AudioManager@3deb796
I/MediaFocusControl( 523): AudioFocus requestAudioFocus() from android.media.AudioManager@3deb796 req=1flags=0x0
E/gralloc ( 126): gralloc_alloc: Requested auto format selection, but no known format for this usage: 640 x 360, usage 10800
W/GraphicBufferAllocator( 126): alloc(640, 360, 34, 00010800, ...) failed -22 (Invalid argument)
E/ ( 126): GraphicBufferAlloc::createGraphicBuffer(w=640, h=360) failed (Invalid argument), handle=0x0
E/BufferQueueProducer( 147): [GraphicBufferSource] dequeueBuffer: createGraphicBuffer failed
E/SurfaceFlinger( 126): [scrcpy] dequeueBuffer: no buffer, bailing out
E/[EGL-ERROR]( 126): void __egl_platform_dequeue_buffer(egl_surface*):1691: failed to dequeue buffer from native window 0xb6516d08; err = -12, buf = 0x0,max_allowed_dequeued_buffers 3
E/libEGL ( 126): eglMakeCurrent:777 error 3003 (EGL_BAD_ALLOC)
W/SurfaceFlinger( 126): DisplayDevice::makeCurrent failed. Aborting surface composition for display scrcpy
W/SurfaceFlinger( 126): [scrcpy] Unexpected onFrameCommitted() in GLES state
E/gralloc ( 126): gralloc_alloc: Requested auto format selection, but no known format for this usage: 640 x 360, usage 10800
W/GraphicBufferAllocator( 126): alloc(640, 360, 34, 00010800, ...) failed -22 (Invalid argument)
E/ ( 126): GraphicBufferAlloc::createGraphicBuffer(w=640, h=360) failed (Invalid argument), handle=0x0
E/BufferQueueProducer( 147): [GraphicBufferSource] dequeueBuffer: createGraphicBuffer failed
E/SurfaceFlinger( 126): [scrcpy] dequeueBuffer: no buffer, bailing out
E/[EGL-ERROR]( 126): void __egl_platform_dequeue_buffer(egl_surface*):1691: failed to dequeue buffer from native window 0xb6516d08; err = -12, buf = 0x0,max_allowed_dequeued_buffers 3
E/libEGL ( 126): eglMakeCurrent:777 error 3003 (EGL_BAD_ALLOC)
W/SurfaceFlinger( 126): DisplayDevice::makeCurrent failed. Aborting surface composition for display scrcpy
W/SurfaceFlinger( 126): [scrcpy] Unexpected onFrameCommitted() in GLES state
D/audio_hw_primary( 147): out_set_parameters(kvpairs(routing=2), out_device=0x2)
D/audio_hw_primary( 147): start_output_stream(adev->out_device=0x2, adev->mode=0)
D/audio_hw_primary( 147): select_devices(mode=0, out_device=0x2)
D/audio_hw_primary( 147): ~~~~ select_devices : hs=0 , hp=0, sp=2, hdmi=0x0,earpiece=0x0
D/audio_hw_primary( 147): ~~~~ select_devices : in_device(0x4), mic_in(0x4), headset_mic(0)
D/audio_hw_primary( 147): ****select_devices : output_standby=1,input_standby=1
D/audio_hw_primary( 147): *start_output_stream, open card(0) port(0)-------
D/audio_hw_primary( 147): channels=2---format=0---period_count4---period_size1024---rate=48000---
I/audio_hw_primary( 147): to enable same source,need reset alsa,type 0,same source flag 0
D/OmxComponentManagerImpl( 147): getEntryByName_2_num=0, componentName:OMX.amlogic.avc.decoder.awesome
D/OmxComponentManagerImpl( 147): have no decoder component
D/OmxComponentManagerImpl( 147): amstream_vbuf is free
D/OmxComponentManagerImpl( 147): ret =0,*pEntry->mRoleNames=video_decoder.avc
D/OmxComponentManagerImpl( 147): ionvide is free
D/OmxComponentManagerImpl( 147): ready for creat omx decoder component
V/AmlogicVideoDecoderAwesome( 147): initializeState_l:736 >
V/AmlogicVideoDecoderAwesome( 147): media.omx.latency is not set used def=2.000000
W/OmxLogConf( 147): Can not read property media.omx.log_levels, using 0
D/OmxComponentManagerImpl( 147): IncreaseEntryNumByName pEntry->mNum=0, pEntry->mMaxNum:4,componentName:OMX.amlogic.avc.decoder.awesome
I/omx_core( 147): OMX_getHandle_num=1
D/OmxComponent( 147): getExtensionIndex 1021 name="OMX.google.android.index.storeMetaDataInBuffers"
D/OmxVideoDecoder( 147): setParameter 673 OMX_IndexAndroidStoreMetadataInBuffers
D/OmxVideoDecoder( 147): setParameter nPortIndex 0 CompFmt 0x7 ColorFmt 0
D/OmxVideoDecoder( 147): setParameter nPortIndex 1 CompFmt 0 ColorFmt 0x15
D/OmxVideoDecoder( 147): newBufferCount = 5
D/OmxVideoDecoder( 147): setParameter nPortIndex 0 nFrameWidth 1920 nFrameHeight 1080 nSliceHeight 16
E/OmxVideoDecoder( 147): reset input buffer:2073600
D/OmxVideoDecoder( 147): newBufferCount = 4
W/OmxVideoDecoder( 147): Can not read property media.omx.display_mode
D/OmxVideoDecoder( 147): setParameter nPortIndex 1 nFrameWidth 1920 nFrameHeight 1080 nSliceHeight 1080
D/OmxComponent( 147): getExtensionIndex 1021 name="OMX.google.android.index.enableAndroidNativeBuffers"
D/AmlogicVideoDecoderAwesome( 147): get native buffer info NV:w:1920,h:1080..
D/AmlogicVideoDecoderAwesome( 147): get native buffer info NV:w:1920,h:1080..
D/OmxVideoDecoder( 147): getConfig 755 nIndex 0x700000f
D/OmxVideoDecoder( 147): getConfig OMX_IndexConfigCommonOutputCrop pRect->nWidth=1920, pRect->nHeight=1080
I/OmxComponent( 147): OMX_CommandStateSet 663 Cmd 0 nParam1 0x2
I/OmxComponent( 147): STATE_SET: OMX_StateLoaded => OMX_StateIdle : OMX.amlogic.avc.decoder.awesome
E/OmxVideoDecoder( 147): OMX.amlogic.avc.decoder.awesome: useBuffer 158 nPortIndex 0 pAppPrivate 0xb40303d0 nSizeBytes 2073600 pBuffer 0xb1f7c000
E/OmxVideoDecoder( 147): OMX.amlogic.avc.decoder.awesome: useBuffer 158 nPortIndex 0 pAppPrivate 0xb583bb10 nSizeBytes 2073600 pBuffer 0xb2176400
E/OmxVideoDecoder( 147): OMX.amlogic.avc.decoder.awesome: useBuffer 158 nPortIndex 0 pAppPrivate 0xb5a93770 nSizeBytes 2073600 pBuffer 0xb2370800
E/OmxVideoDecoder( 147): OMX.amlogic.avc.decoder.awesome: useBuffer 158 nPortIndex 0 pAppPrivate 0xb5a29570 nSizeBytes 2073600 pBuffer 0xb256ac00
E/OmxVideoDecoder( 147): OMX.amlogic.avc.decoder.awesome: useBuffer 158 nPortIndex 0 pAppPrivate 0xb4030470 nSizeBytes 2073600 pBuffer 0xb2765000
D/AmlogicVideoDecoderAwesome( 147): get native buffer info NV:w:1920,h:1080..
D/OmxComponent( 147): getExtensionIndex 1021 name="OMX.google.android.index.getAndroidNativeBufferUsage"
D/OmxVideoDecoder( 147): newBufferCount = 8
E/OmxVideoDecoder( 147): set output error, new BufferCountActual = 8
E/OMXNodeInstance( 147): setParameter(5d:amlogic.avc.decoder.awesome, ParamPortDefinition(0x2000001)) ERROR: UnsupportedSetting(0x80001019)
D/OmxVideoDecoder( 147): newBufferCount = 7
E/OmxVideoDecoder( 147): set output error, new BufferCountActual = 7
E/OMXNodeInstance( 147): setParameter(5d:amlogic.avc.decoder.awesome, ParamPortDefinition(0x2000001)) ERROR: UnsupportedSetting(0x80001019)
D/OmxVideoDecoder( 147): newBufferCount = 6
W/OmxVideoDecoder( 147): Can not read property media.omx.display_mode
D/OmxVideoDecoder( 147): setParameter nPortIndex 1 nFrameWidth 1920 nFrameHeight 1080 nSliceHeight 1080
D/AmlogicVideoDecoderAwesome( 147): get native buffer info NV:w:1920,h:1080..
E/OmxVideoDecoder( 147): OMX.amlogic.avc.decoder.awesome: useBuffer 158 nPortIndex 0x1 pAppPrivate 0xb5a295f0 nSizeBytes 8 pBuffer 0xb4428000
E/OmxVideoDecoder( 147): OMX.amlogic.avc.decoder.awesome: useBuffer 158 nPortIndex 0x1 pAppPrivate 0xb583ba30 nSizeBytes 8 pBuffer 0xb4428020
E/OmxVideoDecoder( 147): OMX.amlogic.avc.decoder.awesome: useBuffer 158 nPortIndex 0x1 pAppPrivate 0xb4030510 nSizeBytes 8 pBuffer 0xb4428040
E/OmxVideoDecoder( 147): OMX.amlogic.avc.decoder.awesome: useBuffer 158 nPortIndex 0x1 pAppPrivate 0xb5a93570 nSizeBytes 8 pBuffer 0xb4428060
E/OmxVideoDecoder( 147): OMX.amlogic.avc.decoder.awesome: useBuffer 158 nPortIndex 0x1 pAppPrivate 0xb5a93b10 nSizeBytes 8 pBuffer 0xb4428080
E/OmxVideoDecoder( 147): OMX.amlogic.avc.decoder.awesome: useBuffer 158 nPortIndex 0x1 pAppPrivate 0xb4030440 nSizeBytes 8 pBuffer 0xb44280a0
V/AmlogicVideoDecoderAwesome( 147): acquireResources:262 >
D/AmlogicVideoDecoderAwesome( 147): mVideoDisplay =0
I/SystemControl( 153): writeSysfs [ /sys/class/vfm/map ] [ rm default ] from pid=147, uid=1013, process name=/system/bin/mediaserver
V/AmlogicVideoDecoderAwesome( 147): enable osd or video__rm default,ret=0
I/SystemControl( 153): writeSysfs [ /sys/class/vfm/map ] [ add default decoder ionvideo ] from pid=147, uid=1013, process name=/system/bin/mediaserver
V/AmlogicVideoDecoderAwesome( 147): enable osd or video ...0
V/debugSetup( 147): media.omx.dumpRecv is disabled
V/debugSetup( 147): media.omx.dumpCodec is disabled
V/AmlogicVideoDecoderAwesome( 147): *Input Frame Rate is 0..
V/AmlogicVideoDecoderAwesome( 147): videoDefine.xFramerate:0
V/AmlogicVideoDecoderAwesome( 147): mFlvFlag=0
V/AmlogicVideoDecoderAwesome( 147): mOutBufferCount =6
I/amvdec ( 147): amvideo_init ret=0
D/AmlogicVideoDecoderAwesome( 147): output buffer:mWidth:1920, mHeight:1080
I/OmxComponent( 147): OMX_CommandStateSet 663 Cmd 0 nParam1 0x3
I/OmxComponent( 147): STATE_SET: OMX_StateIdle => OMX_StateExecuting : OMX.amlogic.avc.decoder.awesome
V/AmlogicVideoDecoderAwesome( 147): prepare:189 >
V/AmlogicVideoDecoderAwesome( 147): start:202 >
D/AmlogicVideoDecoderAwesome( 147): mVideo start
D/AmlogicVideoDecoderAwesome( 147): omx output size changed from 1920*1080 to 960*540
D/AmlogicVideoDecoderAwesome( 147): get native buffer info NV:w:1920,h:1080..
D/OmxVideoDecoder( 147): getConfig 755 nIndex 0x700000f
D/OmxVideoDecoder( 147): getConfig OMX_IndexConfigCommonOutputCrop pRect->nWidth=960, pRect->nHeight=540
W/SurfaceFlinger( 126): setTransactionState timed out waiting for previous animation frame
I/art ( 523): Background sticky concurrent mark sweep GC freed 32258(3MB) AllocSpace objects, 0(0B) LOS objects, 13% free, 24MB/28MB, paused 2.398ms total 269.905ms
W/SurfaceFlinger( 126): setTransactionState timed out waiting for previous animation frame
W/SurfaceFlinger( 126): setTransactionState timed out waiting for previous animation frame
Hello. Thank you for scrcpy! We're facing an issue on making it work with our custom integration on top of slightly non-typical environment setup:
Environment
Describe the bug
Launch command and args used:
scrcpy.exe --always-on-top -b2M -m800 -n
scrcpy hangs with next Windows output:
And next logcat output:
I would appreciate any ideas.