This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Record Video through Hardware codec using USB Camera - DM814x

Sir,
   
   I have ported Android ICS 4.0.3 on DM814x and I am trying to record live video capture from an USB camera  by using a sample native application. I am able to record video through softcodec.


To enable hardware codec , i have added the line
 "HARDWARE_OMX := true”
 in /rowboat-android-ics/device/ti/ti814xevm/BoardConfig.mk file and fixed the errors due to that by adding
"LOCAL_MODULE_TAGS := optional"
 in the Android.mk for the affected modules.

But when i start to record through hardware codec, the following error comes in logcat. Kindly suggest me to fix the error....



D/CameraHardware(   62): Set Parameter...!!
D/CameraHardware(   62): PreviewFormat yuv422sp
D/CameraHardware(   62): PictureFormat jpeg
D/CameraHardware(   62): preview width:320,height:240
D/CameraHardware(   62): picture width:320,height:240
D/CameraHardware(   62): FRAMERATE 15
D/CameraHardware(   62): Picture Size by CamHAL 320 x 240
D/CameraHardware(   62): Preview Resolution by CamHAL 320 x 240
I/System.out(  644): start recording....
D/CameraHardware(   62): disableMsgType:16
I/MediaRecorderJNI(  644): prepare: surface=0x1132b0 (identity=12)
D/CameraHardware(   62): Set Parameter...!!
D/CameraHardware(   62): PreviewFormat yuv422sp
D/CameraHardware(   62): PictureFormat jpeg
D/CameraHardware(   62): preview width:320,height:240
D/CameraHardware(   62): picture width:320,height:240
D/CameraHardware(   62): FRAMERATE 15
D/CameraHardware(   62): Picture Size by CamHAL 320 x 240
D/CameraHardware(   62): Preview Resolution by CamHAL 320 x 240
D/CameraSource(   62): Camera does not support setVideoSize()
D/CameraHardware(   62): Set Parameter...!!
D/CameraHardware(   62): PreviewFormat yuv422sp
D/CameraHardware(   62): PictureFormat jpeg
D/CameraHardware(   62): preview width:320,height:240
D/CameraHardware(   62): picture width:320,height:240
D/CameraHardware(   62): FRAMERATE 20
D/CameraHardware(   62): Picture Size by CamHAL 320 x 240
D/CameraHardware(   62): Preview Resolution by CamHAL 320 x 240
D/CameraHardware(   62): Set Parameter...!!
D/CameraHardware(   62): PreviewFormat yuv422sp
D/CameraHardware(   62): PictureFormat jpeg
D/CameraHardware(   62): preview width:320,height:240
D/CameraHardware(   62): picture width:320,height:240
D/CameraHardware(   62): FRAMERATE 20
D/CameraHardware(   62): Picture Size by CamHAL 320 x 240
D/CameraHardware(   62): Preview Resolution by CamHAL 320 x 240
D/TIOMX_CORE(   62): Found component OMX.TI.Video.encoder with refCount 0
D/TI_OMX_VideoEnc(   62): GetParameter():1530 No such index.
E/OMXCodec(   62): [OMX.TI.Video.encoder] color format 21 is not supported
F/OMXCodec(   62): frameworks/base/media/libstagefright/OMXCodec.cpp:1094 CHECK_EQ( (status_t)OK,findTargetColorFormat(meta, &colorFormat)) failed: 0 vs. -2147483648
F/libc    (   62): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)
I/DEBUG   (   57): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   (   57): Build fingerprint: 'Android/ti814xevm/ti814xevm:4.0.3/IML74K/eng.root.20130208.200231:eng/test-keys'
I/DEBUG   (   57): pid: 62, tid: 62  >>> /system/bin/mediaserver <<<
I/DEBUG   (   57): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
I/DEBUG   (   57):  r0 deadbaad  r1 00000001  r2 a0000000  r3 00000000
I/DEBUG   (   57):  r4 00000000  r5 00000027  r6 00029d40  r7 00000000
I/DEBUG   (   57):  r8 00000000  r9 be909a5c  10 00000007  fp 00027db8
I/DEBUG   (   57):  ip ffffffff  sp be909390  lr 4014cf01  pc 40149660  cpsr 60000030
I/DEBUG   (   57):  d0  373431322d202e34  d1  6154646e69662c38
I/DEBUG   (   57):  d2  6f6c6f4374656733  d3  2874616d726f4636
I/DEBUG   (   57):  d4  6326202c6174656d  d5  6d726f46726f6c6f

Thanks & Regards,

 J.Moorthi