Hi,
I see V4L2 errors when trying to play AVC in Android 11 ported VIM3 and using Codec 2.0 decoder.
06-28 11:52:09.904 2384 2433 I MediaCodec: MediaCodec will operate in async mode
06-28 11:52:09.907 2384 2434 W Codec2Client: query – param skipped: index = 1342179345.
06-28 11:52:09.907 2384 2434 W Codec2Client: query – param skipped: index = 2415921170.
06-28 11:52:09.907 2384 2434 W Codec2Client: query – param skipped: index = 1073743886.
06-28 11:52:09.907 2384 2434 W Codec2Client: query – param skipped: index = 1610614798.
06-28 11:52:09.908 2384 2434 W Codec2Client: query – param skipped: index = 2684356609.
06-28 11:52:09.908 2384 2434 D CCodecBufferChannel: [c2.v4l2.avc.decoder#131] Using basic input block pool with poolID 0 => got 0 - OK (0)
06-28 11:52:09.908 2384 2434 I V4L2PluginStore: createAllocator(): Fallback to create C2AllocatorGralloc (id=21)
06-28 11:52:09.908 2384 2434 I V4L2PluginStore: createAllocator(): Fallback to create C2AllocatorGralloc (id=20)
06-28 11:52:09.908 2384 2434 D CCodecBufferChannel: [c2.v4l2.avc.decoder#131] Configured output block pool ids 1 => OK
06-28 11:52:09.908 2384 2434 D Codec2-OutputBufferQueue: remote graphic buffer migration 0/0
06-28 11:52:09.908 2384 2434 D Codec2Client: generation remote change 2441218
06-28 11:52:09.909 2384 2433 W ResourceManagerService: Ignoring request to add new resource entry with value <= 0
06-28 11:52:09.900 383 383 I HwBinder:383_6: type=1400 audit(0.0:60): avc: denied { search } for name="/" dev=“cgroup2” ino=1 scontext=u:r:mediacodec:s0 tcontext=u:object_r:cgroup_bpf:s0 tclass=dir permissive=1
06-28 11:52:09.921 383 2435 I V4L2Decoder: Set state Idle => Decoding
06-28 11:52:10.011 2131 2131 W Choreographer: Frame time is 0.017993 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase.
06-28 11:52:10.285 403 416 E BufferQueueProducer: com.android.documentsui/com.android.documentsui.files.FilesActivity#0 disconnect: not connected (req=1)
06-28 11:52:10.285 2131 2159 W libEGL : EGLNativeWindowType 0xb400ee297b898a50 disconnect failed
06-28 11:52:10.581 573 1068 D mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
06-28 11:52:10.959 383 2435 W V4L2Decoder: ioctl() VIDIOC_G_CROP failed
06-28 11:52:10.959 383 2435 I V4L2Decoder: Need 13 output buffers. coded size: 480x270, visible rect: (0,0) 480x270
06-28 11:52:10.959 383 2435 I V4L2DecodeComponent: Using C2BlockPool ID = 1 for allocating output buffers
06-28 11:52:10.959 383 2435 E VideoFramePool: requestNewBufferSet(): unknown allocator ID: 17
06-28 11:52:10.959 383 2435 E V4L2Decoder: Failed to get block pool with size: 480x270
06-28 11:52:10.960 383 2435 I V4L2Decoder: Set state Decoding => Error
06-28 11:52:10.960 383 2435 E V4L2DecodeComponent: reportError(error=14)
06-28 11:52:10.960 383 2435 W V4L2DecodeComponent: Could not pump C2Work at state: ERROR
Tried using Android’s SW codec and it works fine. The issue seems to be only with HW decoder. I am putting the VIM3 in debug mode to capture logs. Also, playing AVC from UI. Any suggestions to work this around? Thank you.