arthenica / ffmpeg-kit

FFmpeg Kit for applications. Supports Android, Flutter, iOS, Linux, macOS, React Native and tvOS. Supersedes MobileFFmpeg, flutter_ffmpeg and react-native-ffmpeg.
https://arthenica.github.io/ffmpeg-kit
GNU Lesser General Public License v3.0
4.53k stars 604 forks source link

camera streaming error on ffmpeg_kit_flutter 6.0.3 #1033

Open RobenBaskey opened 2 months ago

RobenBaskey commented 2 months ago

I am trying to stream on youtube using android camera but It's give me an error.

This is my log report:

I/gralloc ( 1686): gralloc_register_buffer hnd=0x8d1a6a40, share_fd=118, share_attr_fd=-1, magic=51647890, format=34, internal_format=101, byte_stride=640, flags=4, usage=0x20000106, size=345600, width=640, height=360, internalWidth=640, internalHeight=360, stride=640, base=0x78a2b000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/flutter ( 1686): work I/flutter ( 1686): Loading ffmpeg-kit-flutter. D/ffmpeg-kit-flutter( 1686): FFmpegKitFlutterPlugin stopped listening to events. D/ffmpeg-kit-flutter( 1686): FFmpegKitFlutterPlugin com.arthenica.ffmpegkit.flutter.FFmpegKitFlutterPlugin@9fde54c started listening to events on io.flutter.plugin.common.EventChannel$IncomingStreamRequestHandler$EventSinkImplementation@e332696. I/flutter ( 1686): Loaded ffmpeg-kit-flutter-android-full-arm-v7a-neon-6.0.3. I/gralloc ( 1686): gralloc_unregister_buffer hnd=0x8d0f2400, share_fd=108, share_attr_fd=-1, magic=51647890, format=34, internal_format=101, byte_stride=640, flags=4, usage=0x20000106, size=345600, width=640, height=360, internalWidth=640, internalHeight=360, stride=640, base=0x79333000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_unregister_buffer hnd=0x8d0f2ac0, share_fd=111, share_attr_fd=-1, magic=51647890, format=34, internal_format=101, byte_stride=640, flags=4, usage=0x20000106, size=345600, width=640, height=360, internalWidth=640, internalHeight=360, stride=640, base=0x7902b000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_unregister_buffer hnd=0x8d0f2dc0, share_fd=112, share_attr_fd=-1, magic=51647890, format=34, internal_format=101, byte_stride=640, flags=4, usage=0x20000106, size=345600, width=640, height=360, internalWidth=640, internalHeight=360, stride=640, base=0x78d2b000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_unregister_buffer hnd=0x8d1a5000, share_fd=113, share_attr_fd=-1, magic=51647890, format=34, internal_format=101, byte_stride=640, flags=4, usage=0x20000106, size=345600, width=640, height=360, internalWidth=640, internalHeight=360, stride=640, base=0x78cab000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_unregister_buffer hnd=0x8d1a6500, share_fd=114, share_attr_fd=-1, magic=51647890, format=34, internal_format=101, byte_stride=640, flags=4, usage=0x20000106, size=345600, width=640, height=360, internalWidth=640, internalHeight=360, stride=640, base=0x78c2b000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_unregister_buffer hnd=0x8d1a6980, share_fd=115, share_attr_fd=-1, magic=51647890, format=34, internal_format=101, byte_stride=640, flags=4, usage=0x20000106, size=345600, width=640, height=360, internalWidth=640, internalHeight=360, stride=640, base=0x78bab000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_unregister_buffer hnd=0x8d1a68c0, share_fd=116, share_attr_fd=-1, magic=51647890, format=34, internal_format=101, byte_stride=640, flags=4, usage=0x20000106, size=345600, width=640, height=360, internalWidth=640, internalHeight=360, stride=640, base=0x78b2b000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 E/CameraCaptureSession( 1686): Session 0: Exception while stopping repeating: E/CameraCaptureSession( 1686): android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): cancelRequest:459: Camera 0: Error clearing streaming request: Function not implemented (-38) E/CameraCaptureSession( 1686): at android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:1009) E/CameraCaptureSession( 1686): at android.hardware.camera2.impl.ICameraDeviceUserWrapper.cancelRequest(ICameraDeviceUserWrapper.java:99) E/CameraCaptureSession( 1686): at android.hardware.camera2.impl.CameraDeviceImpl.stopRepeating(CameraDeviceImpl.java:1251) E/CameraCaptureSession( 1686): at android.hardware.camera2.impl.CameraCaptureSessionImpl.close(CameraCaptureSessionImpl.java:578) E/CameraCaptureSession( 1686): at android.hardware.camera2.impl.CameraCaptureSessionImpl$2.onDisconnected(CameraCaptureSessionImpl.java:789) E/CameraCaptureSession( 1686): at android.hardware.camera2.impl.CameraDeviceImpl$7.run(CameraDeviceImpl.java:245) E/CameraCaptureSession( 1686): at androidx.camera.core.impl.utils.executor.SequentialExecutor$1.run(SequentialExecutor.java:111) E/CameraCaptureSession( 1686): at androidx.camera.core.impl.utils.executor.SequentialExecutor$QueueWorker.workOnQueue(SequentialExecutor.java:231) E/CameraCaptureSession( 1686): at androidx.camera.core.impl.utils.executor.SequentialExecutor$QueueWorker.run(SequentialExecutor.java:173) E/CameraCaptureSession( 1686): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) E/CameraCaptureSession( 1686): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) E/CameraCaptureSession( 1686): at java.lang.Thread.run(Thread.java:923) E/CameraCaptureSession( 1686): Caused by: android.os.ServiceSpecificException: cancelRequest:459: Camera 0: Error clearing streaming request: Function not implemented (-38) (code 10) E/CameraCaptureSession( 1686): at android.os.Parcel.createExceptionOrNull(Parcel.java:2388) E/CameraCaptureSession( 1686): at android.os.Parcel.createException(Parcel.java:2358) E/CameraCaptureSession( 1686): at android.os.Parcel.readException(Parcel.java:2341) E/CameraCaptureSession( 1686): at android.os.Parcel.readException(Parcel.java:2283) E/CameraCaptureSession( 1686): at android.hardware.camera2.ICameraDeviceUser$Stub$Proxy.cancelRequest(ICameraDeviceUser.java:732) E/CameraCaptureSession( 1686): at android.hardware.camera2.impl.ICameraDeviceUserWrapper.cancelRequest(ICameraDeviceUserWrapper.java:97) E/CameraCaptureSession( 1686): ... 10 more D/DeferrableSurface( 1686): use count-1, useCount=1 closed=false androidx.camera.core.SurfaceRequest$2@e1467ae D/DeferrableSurface( 1686): use count-1, useCount=0 closed=false androidx.camera.core.impl.ImmediateSurface@6bc16c8 D/DeferrableSurface( 1686): Surface no longer in use[total_surfaces=4, used_surfaces=2](androidx.camera.core.impl.ImmediateSurface@6bc16c8} D/DeferrableSurface( 1686): use count-1, useCount=0 closed=false androidx.camera.core.impl.ImmediateSurface@6af3d12 D/DeferrableSurface( 1686): Surface no longer in use[total_surfaces=4, used_surfaces=1](androidx.camera.core.impl.ImmediateSurface@6af3d12} D/Camera2CameraImpl( 1686): {Camera@9da3fd1[id=0]} CameraDevice.onDisconnected() D/Camera2CameraImpl( 1686): CameraDevice.onError(): 0 failed with ERROR_CAMERA_IN_USE while in OPENED state. Will attempt recovering from error. D/Camera2CameraImpl( 1686): Attempt to reopen camera[0] after error[ERROR_CAMERA_IN_USE] D/Camera2CameraImpl( 1686): {Camera@9da3fd1[id=0]} Transitioning camera internal state: OPENED --> REOPENING D/CameraStateRegistry( 1686): Recalculating open cameras: D/CameraStateRegistry( 1686): Camera State
D/CameraStateRegistry( 1686): ------------------------------------------------------------------- D/CameraStateRegistry( 1686): Camera@3e66510[id=1] UNKNOWN
D/CameraStateRegistry( 1686): Camera@9da3fd1[id=0] OPENING
D/CameraStateRegistry( 1686): ------------------------------------------------------------------- D/CameraStateRegistry( 1686): Open count: 1 (Max allowed: 1) D/CameraStateMachine( 1686): New public camera state CameraState{type=OPENING, error=StateError{code=2, cause=null}} from OPENING and StateError{code=2, cause=null} D/CameraStateMachine( 1686): Publishing new public camera state CameraState{type=OPENING, error=StateError{code=2, cause=null}} E/ObserverFlutterApi( 1686): The Observer that received a callback has been garbage collected. Please create a new instance to receive any further data changes. D/Camera2CameraImpl( 1686): {Camera@9da3fd1[id=0]} Resetting Capture Session D/Camera2CameraImpl( 1686): {Camera@9da3fd1[id=0]} Releasing session in state REOPENING D/CaptureSession( 1686): onSessionFinished() D/CaptureSession( 1686): CameraCaptureSession.onReady() RELEASED D/Camera2CameraImpl( 1686): {Camera@9da3fd1[id=0]} CameraDevice.onClosed() D/Camera2CameraImpl( 1686): {Camera@9da3fd1[id=0]} Camera closed due to error: ERROR_CAMERA_IN_USE D/Camera2CameraImpl( 1686): {Camera@9da3fd1[id=0]} Attempting camera re-open in 1000ms: androidx.camera.camera2.internal.Camera2CameraImpl$StateCallback$ScheduledReopen@895477a activeResuming = true I/gralloc ( 1686): gralloc_register_buffer hnd=0x8d0f2400, share_fd=108, share_attr_fd=-1, magic=51647890, format=35, internal_format=101, byte_stride=2592, flags=4, usage=0x6, size=7558272, width=2592, height=1944, internalWidth=2592, internalHeight=1944, stride=2592, base=0x61d5f000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_register_buffer hnd=0x8d0f2ac0, share_fd=111, share_attr_fd=-1, magic=51647890, format=35, internal_format=101, byte_stride=2592, flags=4, usage=0x6, size=7558272, width=2592, height=1944, internalWidth=2592, internalHeight=1944, stride=2592, base=0x61629000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_register_buffer hnd=0x8d0f2dc0, share_fd=112, share_attr_fd=-1, magic=51647890, format=35, internal_format=101, byte_stride=2592, flags=4, usage=0x6, size=7558272, width=2592, height=1944, internalWidth=2592, internalHeight=1944, stride=2592, base=0x60ef3000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_register_buffer hnd=0x8d1a5000, share_fd=113, share_attr_fd=-1, magic=51647890, format=35, internal_format=101, byte_stride=2592, flags=4, usage=0x6, size=7558272, width=2592, height=1944, internalWidth=2592, internalHeight=1944, stride=2592, base=0x5ffbc000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_register_buffer hnd=0x8d1a6500, share_fd=114, share_attr_fd=-1, magic=51647890, format=35, internal_format=101, byte_stride=2592, flags=4, usage=0x6, size=7558272, width=2592, height=1944, internalWidth=2592, internalHeight=1944, stride=2592, base=0x5f886000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_register_buffer hnd=0x8d1a68c0, share_fd=115, share_attr_fd=-1, magic=51647890, format=35, internal_format=101, byte_stride=2592, flags=4, usage=0x6, size=7558272, width=2592, height=1944, internalWidth=2592, internalHeight=1944, stride=2592, base=0x5f150000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_register_buffer hnd=0x8d1a6980, share_fd=116, share_attr_fd=-1, magic=51647890, format=35, internal_format=101, byte_stride=2592, flags=4, usage=0x6, size=7558272, width=2592, height=1944, internalWidth=2592, internalHeight=1944, stride=2592, base=0x5ea1a000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 D/Camera2CameraImpl( 1686): {Camera@9da3fd1[id=0]} Attempting to force open the camera. D/CameraStateRegistry( 1686): tryOpenCamera(Camera@9da3fd1[id=0]) [Available Cameras: 0, Already Open: true (Previous state: OPENING)] --> SUCCESS D/CameraStateRegistry( 1686): Recalculating open cameras: D/CameraStateRegistry( 1686): Camera State
D/CameraStateRegistry( 1686): ------------------------------------------------------------------- D/CameraStateRegistry( 1686): Camera@3e66510[id=1] UNKNOWN
D/CameraStateRegistry( 1686): Camera@9da3fd1[id=0] OPENING
D/CameraStateRegistry( 1686): ------------------------------------------------------------------- D/CameraStateRegistry( 1686): Open count: 1 (Max allowed: 1) D/Camera2CameraImpl( 1686): {Camera@9da3fd1[id=0]} Cancelling scheduled re-open: androidx.camera.camera2.internal.Camera2CameraImpl$StateCallback$ScheduledReopen@895477a D/Camera2CameraImpl( 1686): {Camera@9da3fd1[id=0]} Opening camera. I/gralloc ( 1686): gralloc_register_buffer hnd=0x8d1a7100, share_fd=120, share_attr_fd=-1, magic=51647890, format=35, internal_format=101, byte_stride=2592, flags=4, usage=0x6, size=7558272, width=2592, height=1944, internalWidth=2592, internalHeight=1944, stride=2592, base=0x5d2e2000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 D/Camera2CameraImpl( 1686): {Camera@9da3fd1[id=0]} Transitioning camera internal state: REOPENING --> OPENING D/CameraStateMachine( 1686): New public camera state CameraState{type=OPENING, error=null} from OPENING and null D/CameraStateMachine( 1686): Publishing new public camera state CameraState{type=OPENING, error=null} E/ObserverFlutterApi( 1686): The Observer that received a callback has been garbage collected. Please create a new instance to receive any further data changes. D/UseCaseAttachState( 1686): All use case: [androidx.camera.core.ImageCapture-f68bb751-e777-4224-b6e7-925fdee91d9e135338591, androidx.camera.core.Preview-9b388ae4-ec9b-4d93-a8e8-c27369c7da8b264510347, androidx.camera.core.ImageAnalysis-c95c3ef1-d0e7-4bd7-a5bc-ed728788a2a8182127989] for camera: 0 D/ACameraDevice( 1686): Device error received, code 0, frame number 0, request ID -1, subseq ID 0 D/ACameraDevice( 1686): Device error received, code 5, frame number 14, request ID 0, subseq ID 0 I/ample.live_tes( 1686): Background concurrent copying GC freed 56732(2671KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 2875KB/5751KB, paused 570us total 275.511ms I/gralloc ( 1686): gralloc_unregister_buffer hnd=0x8d0f2400, share_fd=108, share_attr_fd=-1, magic=51647890, format=35, internal_format=101, byte_stride=2592, flags=4, usage=0x6, size=7558272, width=2592, height=1944, internalWidth=2592, internalHeight=1944, stride=2592, base=0x61d5f000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_unregister_buffer hnd=0x8d0f2ac0, share_fd=111, share_attr_fd=-1, magic=51647890, format=35, internal_format=101, byte_stride=2592, flags=4, usage=0x6, size=7558272, width=2592, height=1944, internalWidth=2592, internalHeight=1944, stride=2592, base=0x61629000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_unregister_buffer hnd=0x8d0f2dc0, share_fd=112, share_attr_fd=-1, magic=51647890, format=35, internal_format=101, byte_stride=2592, flags=4, usage=0x6, size=7558272, width=2592, height=1944, internalWidth=2592, internalHeight=1944, stride=2592, base=0x60ef3000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_unregister_buffer hnd=0x8d1a5000, share_fd=113, share_attr_fd=-1, magic=51647890, format=35, internal_format=101, byte_stride=2592, flags=4, usage=0x6, size=7558272, width=2592, height=1944, internalWidth=2592, internalHeight=1944, stride=2592, base=0x5ffbc000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_unregister_buffer hnd=0x8d1a6500, share_fd=114, share_attr_fd=-1, magic=51647890, format=35, internal_format=101, byte_stride=2592, flags=4, usage=0x6, size=7558272, width=2592, height=1944, internalWidth=2592, internalHeight=1944, stride=2592, base=0x5f886000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_unregister_buffer hnd=0x8d1a6980, share_fd=116, share_attr_fd=-1, magic=51647890, format=35, internal_format=101, byte_stride=2592, flags=4, usage=0x6, size=7558272, width=2592, height=1944, internalWidth=2592, internalHeight=1944, stride=2592, base=0x5ea1a000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 D/Camera2CameraImpl( 1686): {Camera@9da3fd1[id=0]} CameraDevice.onOpened() D/Camera2CameraImpl( 1686): {Camera@9da3fd1[id=0]} Transitioning camera internal state: OPENING --> OPENED D/CameraStateRegistry( 1686): Recalculating open cameras: D/CameraStateRegistry( 1686): Camera State
D/CameraStateRegistry( 1686): ------------------------------------------------------------------- D/CameraStateRegistry( 1686): Camera@3e66510[id=1] UNKNOWN
D/CameraStateRegistry( 1686): Camera@9da3fd1[id=0] OPEN
D/CameraStateRegistry( 1686): ------------------------------------------------------------------- D/CameraStateRegistry( 1686): Open count: 1 (Max allowed: 1) D/CameraStateMachine( 1686): New public camera state CameraState{type=OPEN, error=null} from OPEN and null D/CameraStateMachine( 1686): Publishing new public camera state CameraState{type=OPEN, error=null} E/ObserverFlutterApi( 1686): The Observer that received a callback has been garbage collected. Please create a new instance to receive any further data changes. D/UseCaseAttachState( 1686): All use case: [androidx.camera.core.ImageCapture-f68bb751-e777-4224-b6e7-925fdee91d9e135338591, androidx.camera.core.Preview-9b388ae4-ec9b-4d93-a8e8-c27369c7da8b264510347, androidx.camera.core.ImageAnalysis-c95c3ef1-d0e7-4bd7-a5bc-ed728788a2a8182127989] for camera: 0 D/SyncCaptureSessionBase( 1686): [androidx.camera.camera2.internal.SynchronizedCaptureSessionBaseImpl@f0e39cc] getSurface...done D/CaptureSession( 1686): Opening capture session. D/DeferrableSurface( 1686): use count+1, useCount=2 androidx.camera.core.SurfaceRequest$2@e1467ae D/DeferrableSurface( 1686): New surface in use[total_surfaces=4, used_surfaces=2](androidx.camera.core.impl.ImmediateSurface@6bc16c8} D/DeferrableSurface( 1686): use count+1, useCount=1 androidx.camera.core.impl.ImmediateSurface@6bc16c8 D/DeferrableSurface( 1686): New surface in use[total_surfaces=4, used_surfaces=3](androidx.camera.core.impl.ImmediateSurface@6af3d12} D/DeferrableSurface( 1686): use count+1, useCount=1 androidx.camera.core.impl.ImmediateSurface@6af3d12 D/CaptureSession( 1686): Attempting to send capture request onConfigured D/CaptureSession( 1686): Issuing request for session. D/Camera2CaptureRequestBuilder( 1686): createCaptureRequest D/CaptureSession( 1686): CameraCaptureSession.onConfigured() mState=OPENED I/gralloc ( 1686): gralloc_register_buffer hnd=0x8d0f2400, share_fd=111, share_attr_fd=-1, magic=51647890, format=34, internal_format=101, byte_stride=640, flags=4, usage=0x20000106, size=345600, width=640, height=360, internalWidth=640, internalHeight=360, stride=640, base=0x7934d000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 D/CaptureSession( 1686): CameraCaptureSession.onReady() OPENED I/gralloc ( 1686): gralloc_register_buffer hnd=0x8d0f2ac0, share_fd=112, share_attr_fd=-1, magic=51647890, format=34, internal_format=101, byte_stride=640, flags=4, usage=0x20000106, size=345600, width=640, height=360, internalWidth=640, internalHeight=360, stride=640, base=0x792ab000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_register_buffer hnd=0x8d0f2dc0, share_fd=113, share_attr_fd=-1, magic=51647890, format=34, internal_format=101, byte_stride=640, flags=4, usage=0x20000106, size=345600, width=640, height=360, internalWidth=640, internalHeight=360, stride=640, base=0x7902b000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_register_buffer hnd=0x8d1a5000, share_fd=114, share_attr_fd=-1, magic=51647890, format=34, internal_format=101, byte_stride=640, flags=4, usage=0x20000106, size=345600, width=640, height=360, internalWidth=640, internalHeight=360, stride=640, base=0x78fab000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_register_buffer hnd=0x8d1a6500, share_fd=116, share_attr_fd=-1, magic=51647890, format=34, internal_format=101, byte_stride=640, flags=4, usage=0x20000106, size=345600, width=640, height=360, internalWidth=640, internalHeight=360, stride=640, base=0x78d2b000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_register_buffer hnd=0x8d1a6980, share_fd=119, share_attr_fd=-1, magic=51647890, format=34, internal_format=101, byte_stride=640, flags=4, usage=0x20000106, size=345600, width=640, height=360, internalWidth=640, internalHeight=360, stride=640, base=0x78cab000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_unregister_buffer hnd=0x8d0f1140, share_fd=107, share_attr_fd=-1, magic=51647890, format=34, internal_format=101, byte_stride=640, flags=4, usage=0x20000106, size=345600, width=640, height=360, internalWidth=640, internalHeight=360, stride=640, base=0x7ae06000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_register_buffer hnd=0x8d0f1140, share_fd=108, share_attr_fd=-1, magic=51647890, format=34, internal_format=101, byte_stride=640, flags=4, usage=0x20000106, size=345600, width=640, height=360, internalWidth=640, internalHeight=360, stride=640, base=0x7ae06000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_unregister_buffer hnd=0x8d1a6a40, share_fd=118, share_attr_fd=-1, magic=51647890, format=34, internal_format=101, byte_stride=640, flags=4, usage=0x20000106, size=345600, width=640, height=360, internalWidth=640, internalHeight=360, stride=640, base=0x78a2b000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_register_buffer hnd=0x8d1a6a40, share_fd=118, share_attr_fd=-1, magic=51647890, format=34, internal_format=101, byte_stride=640, flags=4, usage=0x20000106, size=345600, width=640, height=360, internalWidth=640, internalHeight=360, stride=640, base=0x78c2b000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 E/NdkCameraCaptureSession( 1686): ACameraCaptureSession_stopRepeating: session 0x8ece06d0 is already closed W/ACameraCaptureSession( 1686): Device is closed but session 0 is not notified I/gralloc ( 1686): gralloc_unregister_buffer hnd=0x8d1a68c0, share_fd=115, share_attr_fd=-1, magic=51647890, format=35, internal_format=101, byte_stride=2592, flags=4, usage=0x6, size=7558272, width=2592, height=1944, internalWidth=2592, internalHeight=1944, stride=2592, base=0x5f150000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/gralloc ( 1686): gralloc_unregister_buffer hnd=0x8d1a7100, share_fd=120, share_attr_fd=-1, magic=51647890, format=35, internal_format=101, byte_stride=2592, flags=4, usage=0x6, size=7558272, width=2592, height=1944, internalWidth=2592, internalHeight=1944, stride=2592, base=0x5d2e2000, writeOwner=0, attr_base=0xffffffff, yuv_info=1, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/flutter ( 1686): ffmpeg version n6.0 I/flutter ( 1686): Copyright (c) 2000-2023 the FFmpeg developers I/flutter ( 1686): I/flutter ( 1686): built with Android (7155654, based on r399163b1) clang version 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d) I/flutter ( 1686): configuration: --cross-prefix=arm-linux-androideabi- --sysroot=/Users/sue/Library/Android/sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/darwin-x86_64/sysroot --prefix=/Users/sue/Projects/arthenica/ffmpeg-kit/prebuilt/android-arm-neon/ffmpeg --pkg-config=/opt/homebrew/bin/pkg-config --enable-version3 --arch=armv7-a --cpu=armv7-a --target-os=android --enable-neon --enable-asm --enable-inline-asm --build-suffix=_neon --ar=arm-linux-androideabi-ar --cc=armv7a-linux-androideabi24-clang --cxx=armv7a-linux-androideabi24-clang++ --ranlib=arm-linux-androideabi-ranlib --strip=arm-linux-androideabi-strip --nm=arm-linux-androideabi-nm --extra-libs='-L/Users/sue/Projects/arthenica/ffmpeg-kit/prebuilt/android-arm-neon/cpu-features/lib -lndk_compat' --disable-autodetect --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --disable-static --enable-shared --enable-pthreads --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable- I/flutter ( 1686): libavutil 58. 2.100 / 58. 2.100 I/flutter ( 1686): libavcodec 60. 3.100 / 60. 3.100 I/flutter ( 1686): libavformat 60. 3.100 / 60. 3.100 I/flutter ( 1686): libavdevice 60. 1.100 / 60. 1.100 I/flutter ( 1686): libavfilter 9. 3.100 / 9. 3.100 I/flutter ( 1686): libswscale 7. 1.100 / 7. 1.100 I/flutter ( 1686): libswresample 4. 10.100 / 4. 10.100 I/flutter ( 1686): [android_camera @ 0x8ece2c00] Requested video_size 0x0 not available, falling back to 2592x1944 I/flutter ( 1686): Input #0, android_camera, from 'dummy': I/flutter ( 1686): Duration: I/flutter ( 1686): N/A I/flutter ( 1686): , start: I/flutter ( 1686): 30284.125036 I/flutter ( 1686): , bitrate: I/flutter ( 1686): N/A I/flutter ( 1686): I/flutter ( 1686): Stream #0:0 I/flutter ( 1686): : Video: rawvideo (NV21 / 0x3132564E), nv21, 2592x1944 I/flutter ( 1686): , I/flutter ( 1686): 30 fps, I/flutter ( 1686): 30 tbr, I/flutter ( 1686): 1000000000.00 tbn I/flutter ( 1686): I/flutter ( 1686): Side data: I/flutter ( 1686):
I/flutter ( 1686): displaymatrix: rotation of -90.00 degrees I/flutter ( 1686): I/flutter ( 1686): Stream mapping: I/flutter ( 1686): Stream #0:0 -> #0:0 I/flutter ( 1686): (rawvideo (native) -> flv1 (flv)) I/flutter ( 1686): I/flutter ( 1686): Press [q] to stop, [?] for help I/flutter ( 1686): Output #0, flv, to 'rtmp://a.rtmp.youtube.com/live2/6yk2-4yr4-j0j9-kjcg-93da': I/flutter ( 1686): Metadata: I/flutter ( 1686): encoder : I/flutter ( 1686): Lavf60.3.100 I/flutter ( 1686): I/flutter ( 1686): Stream #0:0 I/flutter ( 1686): : Video: flv1 ([2][0][0][0] / 0x0002), yuv420p(tv, progressive), 1944x2592, q=2-31, 200 kb/s I/flutter ( 1686): , I/flutter ( 1686): 30 fps, I/flutter ( 1686): 1k tbn I/flutter ( 1686): I/flutter ( 1686): Metadata: I/flutter ( 1686): encoder : I/flutter ( 1686): Lavc60.3.100 flv I/flutter ( 1686): I/flutter ( 1686): Side data: I/flutter ( 1686):
I/flutter ( 1686): cpb: I/flutter ( 1686): bitrate max/min/avg: 0/0/200000 buffer size: 0 I/flutter ( 1686): vbv_delay: N/A I/flutter ( 1686): I/flutter ( 1686):
I/flutter ( 1686): displaymatrix: rotation of -0.00 degrees I/flutter ( 1686): I/flutter ( 1686): frame= 0 fps=0.0 q=5.5 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
I/flutter ( 1686): frame= 1 fps=0.0 q=5.5 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
I/flutter ( 1686): [flv @ 0xa8e65000] Failed to update header with correct duration. I/flutter ( 1686): [flv @ 0xa8e65000] Failed to update header with correct filesize. I/flutter ( 1686): frame= 1 fps=0.9 q=5.5 Lsize= 335kB time=00:00:00.00 bitrate=N/A speed= 0x
I/flutter ( 1686): video:335kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: I/flutter ( 1686): 0.066155% I/flutter ( 1686): I/flutter ( 1686): [android_camera @ 0x8ece2c00] Android camera capture session was closed. I/flutter ( 1686): Stream started successfully I/ample.live_tes( 1686): Background young concurrent copying GC freed 71697(2249KB) AllocSpace objects, 0(0B) LOS objects, 40% free, 3438KB/5751KB, paused 121us total 147.005ms I/gralloc ( 1686): gralloc_register_buffer hnd=0x8d0f2a00, share_fd=107, share_attr_fd=-1, magic=51647890, format=34, internal_format=101, byte_stride=640, flags=4, usage=0x20000106, size=345600, width=640, height=360, internalWidth=640, internalHeight=360, stride=640, base=0x7862b000, writeOwner=0, attr_base=0xffffffff, yuv_info=2, fd=-1, buf_idx=0, offset=0, min_pgsz=4096, phyaddr=0 I/ample.live_tes( 1686): Background concurrent copying GC freed 76305(2328KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 3377KB/6755KB, paused 218us total 711.010ms

tanersener commented 4 weeks ago

Logs mention about ERROR_CAMERA_IN_USE. Are you sure camera is not in use?