USB camera video issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USB camera video issue

975 Views
1269813285
Contributor I

hi,

I want to capture a video via a usb camera ,but it is failed,and the log is as below ,how can I fix it?

06-12 08:59:58.718 3058 3058 E /vendor/bin/hw/android.hardware.health@2.0-service.imx: /sys/block/mmcblk0/stat: ReadFileToString failed.
06-12 08:59:59.835 4262 4262 I CAM_VideoModule: startVideoRecording: Thread[main,5,main]
06-12 08:59:59.835 4262 4262 V CAM_VideoUI: mFocusRing.stopFocusAnimations()
06-12 08:59:59.846 4262 4816 D CAM_Storage: External storage state=mounted
06-12 08:59:59.878 4262 4262 I CAM_VideoModule: startVideoRecording middle1
06-12 08:59:59.878 4262 4262 I CAM_VideoModule: initializeRecorder: Thread[main,5,main]
06-12 08:59:59.878 3068 3165 W StagefrightRecorder: stop while neither recording nor paused
06-12 08:59:59.890 3068 3165 W StagefrightRecorder: Max file duration is not positive: 0 us. Disabling duration limit.
06-12 08:59:59.890 3068 3165 W StagefrightRecorder: Target duration (0 us) too short to be respected
06-12 08:59:59.890 4262 4262 D CAM_LcyLocProvider: No location received yet.
06-12 08:59:59.892 4262 4262 D CAM_LcyLocProvider: No location received yet.
06-12 08:59:59.892 4262 4262 V CAM_VideoModule: New video filename: /storage/emulated/0/DCIM/Camera/VID_20200612_085959.mp4.tmp
06-12 08:59:59.898 4262 4262 I CAM_VideoModule: startVideoRecording middle2
06-12 08:59:59.907 3068 4847 I OMXClient: IOmx service obtained
06-12 08:59:59.910 3085 3142 I OMXMaster: makeComponentInstance(OMX.Freescale.std.video_encoder.avc.hw-based) in omx@1.0-service process
06-12 08:59:59.930 3085 3142 I OMXNodeInstance: allocateNode(0x0:Freescale.std._encoder.avc.hw-based, handle=0xeddfc684)
06-12 08:59:59.938 3068 4846 I MediaCodec: MediaCodec will operate in async mode
06-12 08:59:59.942 3085 3142 W OMXNodeInstance: [0xeddfc684:Freescale.std._encoder.avc.hw-based] component does not support metadata mode; using fallback
06-12 08:59:59.943 3068 4847 W OMXUtils: do not know color format 0x7f000789 = 2130708361
06-12 08:59:59.944 3068 4847 I ACodec : setupAVCEncoderParameters with [profile: Baseline] [level: Level1]
06-12 08:59:59.944 3068 4847 I ACodec : [OMX.Freescale.std.video_encoder.avc.hw-based] cannot encode color aspects. Ignoring.
06-12 08:59:59.944 3068 4847 I ACodec : [OMX.Freescale.std.video_encoder.avc.hw-based] cannot encode HDR static metadata. Ignoring.
06-12 08:59:59.944 3068 4847 I ACodec : setupVideoEncoder succeeded
06-12 08:59:59.944 3085 3142 I OMXPlayer: LEVEL: 1 FUNCTION: SetConfig LINE: 2147
06-12 08:59:59.944 3085 3142 I OMXPlayer: SetConfig: failure: unsupported index: 0x6F800002
06-12 08:59:59.944 3085 3142 E OMXNodeInstance: setConfig(0xeddfc684:Freescale.std._encoder.avc.hw-based, ConfigPriority(0x6f800002)) ERROR: UnsupportedIndex(0x8000101a)
06-12 08:59:59.944 3068 4847 I ACodec : codec does not support config priority (err -1010)
06-12 08:59:59.945 3068 4847 W OMXUtils: do not know color format 0x7f000789 = 2130708361
06-12 08:59:59.945 3085 3085 I OMXPlayer: LEVEL: 1 FUNCTION: GetConfig LINE: 2034
06-12 08:59:59.945 3085 3085 I OMXPlayer: GetConfig: failure: unsupported index: 0x6F800005
06-12 08:59:59.945 3085 3085 E OMXNodeInstance: getConfig(0xeddfc684:Freescale.std._encoder.avc.hw-based, ConfigLatency(0x6f800005)) ERROR: UnsupportedIndex(0x8000101a)
06-12 08:59:59.946 3085 3085 I OMXPlayer: LEVEL: 1 FUNCTION: GetConfig LINE: 2034
06-12 08:59:59.946 3085 3085 I OMXPlayer: GetConfig: failure: unsupported index: 0x6F100004
06-12 08:59:59.946 3085 3085 E OMXNodeInstance: getConfig(0xeddfc684:Freescale.std._encoder.avc.hw-based, ConfigAndroidVendorExtension(0x6f100004)) ERROR: UnsupportedIndex(0x8000101a)
06-12 08:59:59.959 3043 3043 W AshmemAllocator: ashmem_create_region(12) returning hidl_memory(0xf2d987a2c100, 12)
06-12 08:59:59.960 3085 3142 I OMXPlayer: LEVEL: 1 FUNCTION: AllocateBuffer LINE: 762
06-12 08:59:59.961 3085 3142 I OMXPlayer: AllocateBuffer: vpu malloc frame buf failure: size=12, ret=0x1
06-12 08:59:59.961 3085 3142 I OMXNodeInstance: onEvent(0xeddfc684:Freescale.std._encoder.avc.hw-based, Error(1), InsufficientResources(80001000), ??(0))
06-12 08:59:59.961 3085 3142 I OMXPlayer: LEVEL: 1 FUNCTION: AllocateBuffer LINE: 378
06-12 08:59:59.961 3085 3142 I OMXPlayer: Failed to allocate buffer resource for port #0
06-12 08:59:59.961 3085 3142 E OMXNodeInstance: allocateBuffer(0xeddfc684:Freescale.std._encoder.avc.hw-based, Input:0 12@0xefdf7000) ERROR: InsufficientResources(0x80001000)
06-12 08:59:59.961 3068 4847 E ACodec : Failed to allocate buffers after transitioning to IDLE state (error 0xfffffff4)
06-12 08:59:59.961 3068 4847 E ACodec : signalError(omxError 0x80001001, internalError -12)
06-12 08:59:59.962 3085 3142 E OMXNodeInstance: sendCommand(0xeddfc684:Freescale.std._encoder.avc.hw-based, StateSet(0), Loaded(1)) ERROR: SameState(0x80001012)
06-12 08:59:59.962 3068 4846 E MediaCodec: Codec reported err 0xfffffff4, actionCode 0, while in state 5
06-12 08:59:59.962 3085 3085 W OMXNodeInstance: [0xeddfc684:Freescale.std._encoder.avc.hw-based] Attempt to remove an active buffer [0] we know nothing about...
06-12 08:59:59.962 3085 3085 E OMXNodeInstance: b/25884056
06-12 08:59:59.962 3068 4847 E ACodec : [OMX.Freescale.std.video_encoder.avc.hw-based] ERROR(0x80001000)
06-12 08:59:59.962 3068 4847 E ACodec : signalError(omxError 0x80001000, internalError -2147483648)
06-12 08:59:59.965 3068 4846 E MediaCodec: Codec reported err 0x80001000, actionCode 0, while in state 0
06-12 08:59:59.967 3068 3165 E ResourceManagerService: getLowestPriorityBiggestClient_l: lowest priority 0 vs caller priority 0
06-12 08:59:59.969 3085 3142 I OMXNodeInstance: freeNode(0xeddfc684:Freescale.std._encoder.avc.hw-based, handle=0xeddfc684)
06-12 08:59:59.969 3085 3142 I OMXPlayer: LEVEL: 1 FUNCTION: DeInitFilterComponent LINE: 2217
06-12 08:59:59.969 3085 3142 I OMXPlayer: DeInitFilterComponent: vpu close failure: ret=0x3
06-12 08:59:59.977 3068 3165 E StagefrightRecorder: Failed to create video encoder
06-12 08:59:59.977 3068 3165 D CameraSource: reset: E
06-12 08:59:59.978 3074 3074 E Camera2ClientBase: stopRecording: attempt to use a locked camera from a different process (old pid 3068, new pid 4262)
06-12 08:59:59.979 3068 3165 D CameraSource: reset: X
06-12 08:59:59.979 4262 4262 E MediaRecorder: start failed: -2147483648
06-12 08:59:59.980 4262 4262 E CAM_VideoModule: Could not start media recorder.
06-12 08:59:59.980 4262 4262 E CAM_VideoModule: java.lang.RuntimeException: start failed.
06-12 08:59:59.980 4262 4262 E CAM_VideoModule: at android.media.MediaRecorder.start(Native Method)
06-12 08:59:59.980 4262 4262 E CAM_VideoModule: at com.android.camera.VideoModule$11.onStorageUpdateDone(VideoModule.java:1401)
06-12 08:59:59.980 4262 4262 E CAM_VideoModule: at com.android.camera.CameraActivity$20.onPostExecute(CameraActivity.java:2348)
06-12 08:59:59.980 4262 4262 E CAM_VideoModule: at com.android.camera.CameraActivity$20.onPostExecute(CameraActivity.java:2333)
06-12 08:59:59.980 4262 4262 E CAM_VideoModule: at android.os.AsyncTask.finish(AsyncTask.java:695)
06-12 08:59:59.980 4262 4262 E CAM_VideoModule: at android.os.AsyncTask.access$600(AsyncTask.java:180)
06-12 08:59:59.980 4262 4262 E CAM_VideoModule: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:712)
06-12 08:59:59.980 4262 4262 E CAM_VideoModule: at android.os.Handler.dispatchMessage(Handler.java:106)
06-12 08:59:59.980 4262 4262 E CAM_VideoModule: at android.os.Looper.loop(Looper.java:193)
06-12 08:59:59.980 4262 4262 E CAM_VideoModule: at android.app.ActivityThread.main(ActivityThread.java:6718)
06-12 08:59:59.980 4262 4262 E CAM_VideoModule: at java.lang.reflect.Method.invoke(Native Method)
06-12 08:59:59.980 4262 4262 E CAM_VideoModule: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
06-12 08:59:59.980 4262 4262 E CAM_VideoModule: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:917)
06-12 08:59:59.981 4262 4262 E CAM_FatalErrorHandler: Handling Camera Access Failure:
06-12 08:59:59.981 4262 4262 E CAM_FatalErrorHandler: java.lang.Exception
06-12 08:59:59.981 4262 4262 E CAM_FatalErrorHandler: at com.android.camera.FatalErrorHandlerImpl.onGenericCameraAccessFailure(FatalErrorHandlerImpl.java:84)
06-12 08:59:59.981 4262 4262 E CAM_FatalErrorHandler: at com.android.camera.VideoModule$11.onStorageUpdateDone(VideoModule.java:1404)
06-12 08:59:59.981 4262 4262 E CAM_FatalErrorHandler: at com.android.camera.CameraActivity$20.onPostExecute(CameraActivity.java:2348)
06-12 08:59:59.981 4262 4262 E CAM_FatalErrorHandler: at com.android.camera.CameraActivity$20.onPostExecute(CameraActivity.java:2333)
06-12 08:59:59.981 4262 4262 E CAM_FatalErrorHandler: at android.os.AsyncTask.finish(AsyncTask.java:695)
06-12 08:59:59.981 4262 4262 E CAM_FatalErrorHandler: at android.os.AsyncTask.access$600(AsyncTask.java:180)
06-12 08:59:59.981 4262 4262 E CAM_FatalErrorHandler: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:712)
06-12 08:59:59.981 4262 4262 E CAM_FatalErrorHandler: at android.os.Handler.dispatchMessage(Handler.java:106)
06-12 08:59:59.981 4262 4262 E CAM_FatalErrorHandler: at android.os.Looper.loop(Looper.java:193)
06-12 08:59:59.981 4262 4262 E CAM_FatalErrorHandler: at android.app.ActivityThread.main(ActivityThread.java:6718)
06-12 08:59:59.981 4262 4262 E CAM_FatalErrorHandler: at java.lang.reflect.Method.invoke(Native Method)
06-12 08:59:59.981 4262 4262 E CAM_FatalErrorHandler: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
06-12 08:59:59.981 4262 4262 E CAM_FatalErrorHandler: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:917)
06-12 08:59:59.982 4262 4262 E CAM_CameraUtil: Show fatal error dialog
06-12 09:00:00.032 3050 4458 I FslCameraHAL: configure: w:320, h:240, sensor format:0x14, stream format:0x103, fps:30, num:3
06-12 09:00:00.064 3166 3202 I commit_sys_config_file: [procstats,55]
06-12 09:00:00.090 4262 4262 I CAM_VideoModule: Releasing media recorder.
06-12 09:00:00.091 4262 4262 V CAM_VideoModule: Empty video file deleted: /storage/emulated/0/DCIM/Camera/VID_20200612_085959.mp4.tmp
06-12 09:00:00.091 3068 3165 W StagefrightRecorder: stop while neither recording nor paused
06-12 09:00:00.092 3068 3617 W StagefrightRecorder: stop while neither recording nor paused
06-12 09:00:00.093 3068 3617 W StagefrightRecorder: stop while neither recording nor paused
06-12 09:00:00.118 3050 3111 I FslCameraHAL: handleConfigureLocked, same config, res 320x240, fmt 0x14, fps 30, 30, jpg 0
06-12 09:00:00.118 3050 3111 I FslCameraHAL: onFlushLocked, v4l2 memory type 4, mV4l2BufType 1
06-12 09:00:00.168 3064 3748 D SurfaceFlinger: duplicate layer name: changing com.android.camera2/com.android.camera.CameraLauncher to com.android.camera2/com.android.camera.CameraLauncher#1

Labels (1)
0 Kudos
1 Reply

918 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Tang,

 

The codec is not supported your file attribute, apparently it refers to file includes accplus audio, and your android bsp doesn't install aacplus codec, for this special codec, you need to get NDA, you can contact local DFAE to get more detailed information about this.

 

Regards

0 Kudos