Hi, I use RDK2.8 and the board is ours.
Now I don't want to use TVP5158, and directly sent the handled data to VIP0 and then nsf.
I try to delete any code about TVP5158, but it does not seem to work.
How can I modify?
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.
Hi,
Try setting gVcapModuleContext.vcapConfig.enableConfigExtVideoDecoder flag to FALSE..
Regards,
Brijesh Jadav
Thanks very much for your replay.
I set the param accroding to your advice.But the error is as following:
Opened file [/opt/VID_CH00.yuv] for writing CH0
open the file
[host] MCFW_IPCFRAMES:VcapVenc_ipcFramesSendRecvFxn:Entered... [m3vpss ] 36347: CAPTURE: Create in progress !!!
[m3vpss ] 36376: CAPTURE: VIP0 PortA capture mode is [16-bit, Non-mux Discrete Sync - HSYNC_VSYNC] !!!
[m3vpss ] 36376: Assertion @ Line: 745 in links_m3vpss/capture/captureLink_drv.c: pInst->captureVipHandle != NULL : failed !!!
Thanks very much for your reply.
If SYSTEM_USE_VIDEO_DECODER = FALSE, the error is:
[host] MCFW_IPCFRAMES:VcapVenc_ipcFramesSendRecvFxn:Entered... [m3vpss ] 92868: CAPTURE: Create in progress !!!
[m3vpss ] 92898: CAPTURE: VIP0 PortA capture mode is [ 8-bit, Pixel-mux Embedded Sync] !!!
[m3vpss ] 92898: Assertion @ Line: 742 in links_m3vpss/capture/captureLink_drv.c: pInst->captureVipHandle != NULL : failed !!!If SYSTEM_USE_VIDEO_DECODER = TRUE, the error is:
[m3vpss ] 24667: CAPTURE: VIP0 PortA capture mode is [ 8-bit, Pixel-mux Embedded Sync] !!!
[m3vpss ] 24667: Assertion @ Line: 742 in links_m3vpss/capture/captureLink_drv.c: pInst->captureVipHandle != NULL : failed !!!
When test in my code, the setting is
#define SYSTEM_USE_VIDEO_DECODER and
/* #define SYSTEM_USE_VIDEO_DECODER */
and fakeHdmode also is ture.
the result is above.
I believe suggestions mentioned by Badri and Brijesh are sufficient to get rid of tvp code. Please ensure when you make these changes in RDK delete dvr_rdk/lib and dvr_rdk/build and then rebuild. This will ensure a clean build with SYSTEM_USE_VIDEO_DECODER undefined and enableConfigExtVideoDecoder set to FALSE.
If you are not using tvp5158 then which device is decoding the capture signal and feeding it to VIP0? Is configuration of that device correct and is it feeding right data to VIP0? Please ensure this.
Hi,
I think it is failing to create capture driver, so some create time argument is wrong.. Can you dump capture create time arguments?
Regards,
Brijesh Jadav
Hi, we use 9388 and send handled 422YUYV to VIP0, it can feed right data to VIP0 which has tested.
Hi,
Yes, please dump and share the arguments passed in FVID2_Create. Essentially parameters of the structure Vps_CaptCreateParams.
thanks,
Brijesh Jadav
Hi,
use Vps_printf to print the create time parameters, use this in links_m3vpss/capture/captureLink_drv.c file and print the create time parameters.
Regards,
Brijesh Jadav
Hi,
I am very sorry there is another problems.
The program can run normally. I want write the capture data to file, (VcapVenc_ipcFramesCreate())but in fact the file is empty.
I print some information before "status = Vcap_getFullVideoFrames(&bufList,0);", but it doesn't print on console.
It seems not receive the signal (OSA_semWait(&thrObj->framesInNotifySem,OSA_TIMEOUT_FOREVER);)
I also print the contents of the register(HDVPSS), the vip is not enable.(0000a10a)
What is the problems?
Thanks
I thought you were getting assert in FVID2_create of captureLink.If so you will not get any frames on A8.Also pls correct the following in your code:
ipcFramesOutVpssToHostPrm.baseCreateParams.noNotifyMode = FALSE;
ipcFramesInHostPrm.baseCreateParams.noNotifyMode = FALSE;
Also what are the values for the follwing.It was not clear from the code you shared:
NUM_CAPTURE_DEVICES
Vcap_NUM_Ch
Vcap_NUM_DevIf you dont face assert but still see frame not being received on A8. Pls invoke Vsys_printDetailedStatistics and Vsys_printBufferStatistics and share the log.
Hi, thanks very much .
I set the value with FALSE;
And NUM_CAPTURE_DEVICES =1; Vcap_NUM_Ch = 1; Vcap_NUM_DevIf =1;
I change the code as following,is OK?
pCaptureInstPrm->vipInstId = SYSTEM_CAPTURE_INST_VIP0_PORTA+vipInstId;
// pCaptureInstPrm->videoDecoderId = SYSTEM_DEVICE_VID_DEC_TVP5158_DRV;
pCaptureInstPrm->inDataFormat = SYSTEM_DF_RGB24_888;
(vipInstId = 1)
============= Run-Time Menu ============= 1: Capture Write File e: Stop Demo Enter Choice: 1 demo run capture start ------------------------------------------------------- System init!!! !!! ------------------------------------------------------- ------------------------------------------------------- capture params init !!! ---------------------------------------------------------------------- CHANNEL DETAILS------------- Capture Channels => 1 ------------------------------------------- 0: SYSTEM: System Common Init in progress !!! 0: SYSTEM: IPC init in progress !!! 13: SYSTEM: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] ... 14: SYSTEM: Creating MsgQ [HOST_MSGQ] ... 16: SYSTEM: Creating MsgQ [HOST_ACK_MSGQ] ... 17: SYSTEM: Opening MsgQ [DSP_MSGQ] ... 17: SYSTEM: Opening MsgQ [VIDEO-M3_MSGQ] ... 18: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] ... 19: SYSTEM: Notify register to [DSP] line 0, event 15 ... 19: SYSTEM: Notify register to [VIDEO-M3] line 0, event 15 ... 20: SYSTEM: Notify register to [VPSS-M3] line 0, event 15 ... 20: SYSTEM: IPC init DONE !!! 21: SYSTEM: Creating ListMP [HOST_IPC_OUT_28] in region 0 ... 23: SYSTEM: Creating ListMP [HOST_IPC_IN_28] in region 0 ... 24: SYSTEM: ListElem Shared Addr = 0x2b0fd280 25: SYSTEM: Creating ListMP [HOST_IPC_OUT_29] in region 0 ... 27: SYSTEM: Creating ListMP [HOST_IPC_IN_29] in region 0 ... 29: SYSTEM: ListElem Shared Addr = 0x2b119e00 30: SYSTEM: Creating ListMP [HOST_IPC_OUT_23] in region 0 ... 32: SYSTEM: Creating ListMP [HOST_IPC_IN_23] in region 0 ... 33: SYSTEM: ListElem Shared Addr = 0x2b136980 34: SYSTEM: Creating ListMP [HOST_IPC_OUT_24] in region 0 ... 36: SYSTEM: Creating ListMP [HOST_IPC_IN_24] in region 0 ... 38: SYSTEM: ListElem Shared Addr = 0x2b156380 39: SYSTEM: Creating ListMP [HOST_IPC_OUT_25] in region 0 ... 41: SYSTEM: Creating ListMP [HOST_IPC_IN_25] in region 0 ... 42: SYSTEM: ListElem Shared Addr = 0x2b175d80 58: SYSTEM: System Common Init Done !!! ------------------------------------------------------- vsys init!!! ------------------------------------------------------- ------------------------------------------------------- capture init !!! ------------------------------------------------------- Enable RAW Frame Write Enable file write (YES - y / NO - n) : y File write ENABLED !!! Enter file write path : /opt Selected file write path [/opt] Select FRAME File Write CH ID [0 .. 0] : 0 Selected CH ID = 0 start write file !!!!! creat thread!! 6860: MCFW : CPU Revision [ES2.0] !!! 6860: MCFW : Detected [(null)] Board !!! 6860: MCFW : Base Board Revision [DVR] !!! 6860: MCFW : Daughter Card Revision [DVR] !!! #############################capture Inst vipInstId = 0 ------------------------------------------------------- ##################### capLink will create!!! -------------------------------------------------------%%%%%%%%%%%%%%%%%%% Start create Link!!! Opened file [/opt/VID_CH00.yuv] for writing CH0 open the file [host] MCFW_IPCFRAMES:VcapVenc_ipcFramesSendRecvFxn:Entered... [m3vpss ] 31968: CAPTURE: Create in progress !!! [m3vpss ] $$$$$$$$$$$$$$$$$$$$$$$$$$$$ This is not 5158!!! [m3vpss ] $$$$$$$$$$$$$$$$$$$$$$$$$$$$ This is not 5158, FVID2_SF_PROGRESSIVE, inWidth= 1920 [m3vpss ] $$$$$$$$$$$$$$$$$$$$$$$$$$$$ This is not 5158, FVID2_DF_RGB24_888,VPS_CAPT_VIDEO_IF_MODE_24BIT [m3vpss ] 31997: CAPTURE: VIP0 PortA capture mode is [24-bit, Non-mux Discrete Sync - ACTVID_VBLK] !!! [m3vpss ] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& pInst ID = 0!!!! [m3vpss ] %%%%%%%%%%%%%%%%%%%%%% pVipCreateArgs->videoCaptureMode = 5 [m3vpss ] %%%%%%%%%%%%%%%%%%%%%% pVipCreateArgs->videoIfMode = 2 [m3vpss ] %%%%%%%%%%%%%%%%%%%%%% pVipCreateArgs->inDataFormat = 4103 [m3vpss ] %%%%%%%%%%%%%%%%%%%%%% pVipCreateArgs->periodicCallbackEnable = 0 [m3vpss ] %%%%%%%%%%%%%%%%%%%%%% pVipCreateArgs->numCh = 1 [m3vpss ] %%%%%%%%%%%%%%%%%%%%%% pVipCreateArgs->numStream = 1 [m3vpss ] %%%%%%%%%%%%%%%%%%%%%% pVipCreateArgs->inScanFormat = 1 ------------------------------------------------------- capLink create!!! -------------------------------------------------------%%%%%%%%%%%%%%%%%%% Start create Link!!! [m3vpss ] UTILS: DMA: Allocated CH (TCC) = 58 (58) [m3vpss ] CAPTURE::HEAPID:0 USED:416 [m3vpss ] CAPTURE::HEAPID:4 USED:53913600 [m3vpss ] 32223: CAPTURE: Create Done !!! [m3vpss ] 32224: NSF: Create in progress !!! ------------------------------------------------------- nsfLink create!!! -------------------------------------------------------%%%%%%%%%%%%%%%%%%% Start create Link!!! ------------------------------------------------------- ipcFrameOutVpssToHost Link create!!! -------------------------------------------------------%%%%%%%%%%%%%%%%%%% Start create Link!!! [host] IpcFramesInLink_tskMain:Entered [host] 7205: IPC_FRAMES_IN : Create in progress !!! [host] 7205: SYSTEM: Opening ListMP [VPSS-M3_IPC_OUT_24] ... 7207: SYSTEM: Opening ListMP [VPSS-M3_IPC_IN_24] ... [host] 7210: IPC_FRAMES_IN : Create Done !!! ------------------------------------------------------- ipcFrameInHost Link create!!! [m3vpss ] NSF::HEAPID:0 USED:128 [m3vpss ] NSF::HEAPID:1 USED:4928 [m3vpss ] NSF::HEAPID:4 USED:18800640 [m3vpss ] 32310: NSF: Create Done !!! [m3vpss ] 32310: IPC_FRAMES_OUT : Create in progress !!! [m3vpss ] 32312: IPC_FRAMES_OUT : Create Done !!! [m3vpss ] 32319: CAPTURE: Start in progress !!! [m3vpss ] 32319: CAPTURE: Start Done !!! ------------------------------------------------------- ------------------------------------------------------- capture start !!! [m3vpss ] [m3vpss ] *** Capture Driver Advanced Statistics *** [m3vpss ] [m3vpss ] VIP Parser Reset Count : 0 [m3vpss ] [m3vpss ] | Total Even Odd Total Even Odd Min / Max Min / Max Dropped Fid Repeat Frame Error Y/C [m3vpss ] CH | Fields Fields Fields FPS FPS FPS Width Height Fields Count (Desc Error Y/C) [m3vpss ] ------------------------------------------------------------------------------------------------------------ [m3vpss ] [m3vpss ] VIP Capture Port 0 | DescMissMatch1 = 0, DescMissMatch2 = 0 , DescMissMatch3 = 0 [m3vpss ] [m3vpss ] *** Capture List Manager Advanced Statistics *** [m3vpss ] [m3vpss ] List Post Count : 1 [m3vpss ] List Stall Count : 0 [m3vpss ] List Post Time (ms) : Max = 0, Min = 0, Avg = 0, Total = 0 [m3vpss ] INTC Timeout Count : (0, 0) (Min timeout value = 993, 1000) [m3vpss ] Descriptor miss found count : 0 [m3vpss ] [m3vpss ] [m3vpss ] VIP and VPDMA registers, [m3vpss ] VIP0 : FIQ_STATUS : 0x4810551c = 0x00000000 [m3vpss ] VIP1 : FIQ_STATUS : 0x48105a1c = 0x00000000 [m3vpss ] VPDMA: LIST_BUSY : 0x4810d00c = 0x00000000 [m3vpss ] [m3vpss ] [m3vpss ] 32429: CAPTURE: Fields = 0 (fps = 0, CPU Load = 0) [m3vpss ] 32429: CAPTURE: Num Resets = 0 (Avg 0 ms per reset) [m3vpss ] 32429: SYSTEM : FREE SPACE : System Heap = 7104 B, Mbx = 10239 msgs) [m3vpss ] 32429: SYSTEM : FREE SPACE : SR0 Heap = 12076032 B (11 MB) [m3vpss ] 32429: SYSTEM : FREE SPACE : Frame Buffer = 167293824 B (159 MB) [m3vpss ] 32429: SYSTEM : FREE SPACE : Bitstream Buffer = 219676544 B (209 MB) [m3vpss ] 32430: SYSTEM : FREE SPACE : Tiler Buffer = 256 B (0 MB) - TILER OFF [m3vpss ] [m3vpss ] *** [NSF0] NSF Statistics *** [m3vpss ] [m3vpss ] Elasped Time : 0 secs [m3vpss ] Total Fields Processed : 0 [m3vpss ] Total Fields FPS : 0 FPS [m3vpss ] [m3vpss ] [m3vpss ] CH | In Recv In Reject In Process Out User Out [m3vpss ] Num | FPS FPS FPS FPS Skip FPS [m3vpss ] ------------------------------------------------ [m3vpss ] 0 | 0 0 0 0 0 [m3vpss ] [m3vpss ] [m3vpss ] 40432: LOAD: CPU: 2.3% HWI: 0.1%, SWI:0.5% [m3vpss ] [m3vpss ] 40432: LOAD: TSK: NSF0 : 1.0% [m3vpss ] 40432: LOAD: TSK: MISC : 0.7% [m3vpss ] [m3video] [m3video] 40933: LOAD: CPU: 0.4% HWI: 0.1%, SWI:0.1% [m3video] [m3video] 40933: LOAD: TSK: MISC : 0.2% [m3video] [m3vpss ] [m3vpss ] *** CAPTURE Statistics *** [m3vpss ] 41934: CAPTURE: Queued to driver = 12, Dequeued from driver = 0 [m3vpss ] CAPTURE [0] Buf Q Status [m3vpss ] Empty Q -> count 0, wrPtr 0, rdPtr 0 [m3vpss ] Full Q -> count 0, wrPtr 0, rdPtr 0 [m3vpss ] [m3vpss ] *** [NSF0] NSF Statistics *** [m3vpss ] 41934: NSF: Rcvd from prev = 0, Returned to prev = 0 [m3vpss ] NSF Out [0] Buf Q Status [m3vpss ] Empty Q -> count 0, wrPtr 0, rdPtr 0 [m3vpss ] Full Q -> count 0, wrPtr 0, rdPtr 0 ------------------------------------------------------- ------------------------------------------------------- VcapVenc_resetStatistics !!! -------------------------------------------------------capture has started
The capture driver statistics indicate no frames are received at VIP.Have you independently validated that Video Decoder configuration has happened correctly ?
Is there any change in behaviour if you set gVcapModuleContext.vcapConfig.enableConfigExtVideoDecoder = TRUE ?
Hi,
I change to TRUE, there seems no change.
One colleague tested that the capture data could be sent to vip0, but it is YUV422 ,16bits,
the mode is DEVICE_CAPT_VIDEO_CAPTURE_MODE_SINGLE_CH_NON_MUX_DISCRETE_SYNC_HSYNC_VSYNC.
But the board doesn't support the mode. So I change : pCaptureInstPrm->inDataFormat = SYSTEM_DF_RGB24_888;
root@dvr:/opt/dvr_rdk/ti816x# cd bin/ root@dvr:/opt/dvr_rdk/ti816x/bin# ./dvr_rdk_demo_mcfw_api.out ============= Run-Time Menu ============= 1: Capture Write File e: Stop Demo Enter Choice: 1 demo run capture start ------------------------------------------------------- System init!!! !!! ------------------------------------------------------- ------------------------------------------------------- capture params init !!! ---------------------------------------------------------------------- CHANNEL DETAILS------------- Capture Channels => 1 ------------------------------------------- 0: SYSTEM: System Common Init in progress !!! 0: SYSTEM: IPC init in progress !!! 12: SYSTEM: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] ... 13: SYSTEM: Creating MsgQ [HOST_MSGQ] ... 15: SYSTEM: Creating MsgQ [HOST_ACK_MSGQ] ... 16: SYSTEM: Opening MsgQ [DSP_MSGQ] ... 16: SYSTEM: Opening MsgQ [VIDEO-M3_MSGQ] ... 17: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] ... 18: SYSTEM: Notify register to [DSP] line 0, event 15 ... 18: SYSTEM: Notify register to [VIDEO-M3] line 0, event 15 ... 18: SYSTEM: Notify register to [VPSS-M3] line 0, event 15 ... 19: SYSTEM: IPC init DONE !!! 20: SYSTEM: Creating ListMP [HOST_IPC_OUT_28] in region 0 ... 22: SYSTEM: Creating ListMP [HOST_IPC_IN_28] in region 0 ... 23: SYSTEM: ListElem Shared Addr = 0x2b1ab280 24: SYSTEM: Creating ListMP [HOST_IPC_OUT_29] in region 0 ... 26: SYSTEM: Creating ListMP [HOST_IPC_IN_29] in region 0 ... 27: SYSTEM: ListElem Shared Addr = 0x2b1c7e00 29: SYSTEM: Creating ListMP [HOST_IPC_OUT_23] in region 0 ... 31: SYSTEM: Creating ListMP [HOST_IPC_IN_23] in region 0 ... 32: SYSTEM: ListElem Shared Addr = 0x2b1e4980 33: SYSTEM: Creating ListMP [HOST_IPC_OUT_24] in region 0 ... 35: SYSTEM: Creating ListMP [HOST_IPC_IN_24] in region 0 ... 36: SYSTEM: ListElem Shared Addr = 0x2b204380 37: SYSTEM: Creating ListMP [HOST_IPC_OUT_25] in region 0 ... 39: SYSTEM: Creating ListMP [HOST_IPC_IN_25] in region 0 ... 41: SYSTEM: ListElem Shared Addr = 0x2b223d80 57: SYSTEM: System Common Init Done !!! ------------------------------------------------------- vsys init!!! ------------------------------------------------------- ------------------------------------------------------- capture init !!! ------------------------------------------------------- Enable RAW Frame Write Enable file write (YES - y / NO - n) : y File write ENABLED !!! Enter file write path : /opt Selected file write path [/opt] Select FRAME File Write CH ID [0 .. 0] : 0 Selected CH ID = 0 start write file !!!!! creat thread!! 7870: MCFW : CPU Revision [ES2.0] !!! 7870: MCFW : Detected [(null)] Board !!! 7870: MCFW : Base Board Revision [DVR] !!! 7870: MCFW : Daughter Card Revision [DVR] !!! #############################capture Inst vipInstId = 0 ############################### copy parameters to allocate driver handle $$$$$$$$$$$$$$$$$$$$$$$$$$ The handle is not null VCAP: TVP5158-0 (0x5c): Device not found !!! Audio Channels are not supported $$$$$$$$$$$$$$$$$$$$$$$$$$ The handle is not null $$$$$$$$$$$$$$$$$$$$$$$$$$ The handle is not null ------------------------------------------------------- ##################### capLink will create!!! -------------------------------------------------------%%%%%%%%%%%%%%%%%%% Start create Link!!! Opened file [/opt/VID_CH00.yuv] for writing CH0 open the file [host] MCFW_IPCFRAMES:VcapVenc_ipcFramesSendRecvFxn:Entered... [m3vpss ] 26506: CAPTURE: Create in progress !!! [m3vpss ] $$$$$$$$$$$$$$$$$$$$$$$$$$$$ This is not 5158!!! [m3vpss ] $$$$$$$$$$$$$$$$$$$$$$$$$$$$ This is not 5158, FVID2_SF_PROGRESSIVE, inWidth= 1920 [m3vpss ] $$$$$$$$$$$$$$$$$$$$$$$$$$$$ This is not 5158, FVID2_DF_RGB24_888,VPS_CAPT_VIDEO_IF_MODE_24BIT [m3vpss ] 26536: CAPTURE: VIP0 PortA capture mode is [24-bit, Non-mux Discrete Sync - ACTVID_VBLK] !!! [m3vpss ] &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& pInst ID = 0!!!! [m3vpss ] %%%%%%%%%%%%%%%%%%%%%% pVipCreateArgs->videoCaptureMode = 5 [m3vpss ] %%%%%%%%%%%%%%%%%%%%%% pVipCreateArgs->videoIfMode = 2 [m3vpss ] %%%%%%%%%%%%%%%%%%%%%% pVipCreateArgs->inDataFormat = 4103 [m3vpss ] %%%%%%%%%%%%%%%%%%%%%% pVipCreateArgs->periodicCallbackEnable = 1 [m3vpss ] %%%%%%%%%%%%%%%%%%%%%% pVipCreateArgs->numCh = 1 [m3vpss ] %%%%%%%%%%%%%%%%%%%%%% pVipCreateArgs->numStream = 1 [m3vpss ] %%%%%%%%%%%%%%%%%%%%%% pVipCreateArgs->inScanFormat = 1 ------------------------------------------------------- capLink create!!! -------------------------------------------------------%%%%%%%%%%%%%%%%%%% Start create Link!!! [m3vpss ] UTILS: DMA: Allocated CH (TCC) = 58 (58) [m3vpss ] CAPTURE::HEAPID:0 USED:416 [m3vpss ] CAPTURE::HEAPID:4 USED:53913600 [m3vpss ] 26762: CAPTURE: Create Done !!! [m3vpss ] 26763: NSF: Create in progress !!! ------------------------------------------------------- nsfLink create!!! -------------------------------------------------------%%%%%%%%%%%%%%%%%%% Start create Link!!! ------------------------------------------------------- ipcFrameOutVpssToHost Link create!!! -------------------------------------------------------%%%%%%%%%%%%%%%%%%% Start create Link!!! [host] IpcFramesInLink_tskMain:Entered [host] 8216: IPC_FRAMES_IN : Create in progress !!! [host] 8216: SYSTEM: Opening ListMP [VPSS-M3_IPC_OUT_24] ... 8218: SYSTEM: Opening ListMP [VPSS-M3_IPC_IN_24] ... [host] 8221: IPC_FRAMES_IN : Create Done !!! ------------------------------------------------------- ipcFrameInHost Link create!!! -------------------------------------------------------$$$$$$$$$$$$$$$$$$$$$$$$$$ The handle is not null [m3vpss ] NSF::HEAPID:0 USED:128 [m3vpss ] NSF::HEAPID:1 USED:4928 [m3vpss ] NSF::HEAPID:4 USED:18800640 [m3vpss ] 26848: NSF: Create Done !!! [m3vpss ] 26849: IPC_FRAMES_OUT : Create in progress !!! [m3vpss ] 26851: IPC_FRAMES_OUT : Create Done !!! [m3vpss ] 26858: CAPTURE: Start in progress !!! [m3vpss ] 26858: CAPTURE: Start Done !!! ------------------------------------------------------- capture start !!! [m3vpss ] [m3vpss ] *** Capture Driver Advanced Statistics *** [m3vpss ] [m3vpss ] VIP Parser Reset Count : 0 [m3vpss ] [m3vpss ] | Total Even Odd Total Even Odd Min / Max Min / Max Dropped Fid Repeat Frame Error Y/C [m3vpss ] CH | Fields Fields Fields FPS FPS FPS Width Height Fields Count (Desc Error Y/C) [m3vpss ] ------------------------------------------------------------------------------------------------------------ [m3vpss ] [m3vpss ] VIP Capture Port 0 | DescMissMatch1 = 0, DescMissMatch2 = 0 , DescMissMatch3 = 0 [m3vpss ] [m3vpss ] *** Capture List Manager Advanced Statistics *** [m3vpss ] [m3vpss ] List Post Count : 1 [m3vpss ] List Stall Count : 0 [m3vpss ] List Post Time (ms) : Max = 0, Min = 0, Avg = 0, Total = 0 [m3vpss ] INTC Timeout Count : (0, 0) (Min timeout value = 993, 1000) [m3vpss ] Descriptor miss found count : 0 [m3vpss ] [m3vpss ] [m3vpss ] VIP and VPDMA registers, [m3vpss ] VIP0 : FIQ_STATUS : 0x4810551c = 0x00000000 [m3vpss ] VIP1 : FIQ_STATUS : 0x48105a1c = 0x00000000 [m3vpss ] VPDMA: LIST_BUSY : 0x4810d00c = 0x00000000 [m3vpss ] [m3vpss ] [m3vpss ] 26967: CAPTURE: Fields = 0 (fps = 0, CPU Load = 0) [m3vpss ] 26968: CAPTURE: Num Resets = 0 (Avg 0 ms per reset) [m3vpss ] 26968: SYSTEM : FREE SPACE : System Heap = 7104 B, Mbx = 10239 msgs) [m3vpss ] 26968: SYSTEM : FREE SPACE : SR0 Heap = 12076032 B (11 MB) [m3vpss ] 26968: SYSTEM : FREE SPACE : Frame Buffer = 167293824 B (159 MB) [m3vpss ] 26968: SYSTEM : FREE SPACE : Bitstream Buffer = 219676544 B (209 MB) [m3vpss ] 26968: SYSTEM : FREE SPACE : Tiler Buffer = 256 B (0 MB) - TILER OFF [m3vpss ] [m3vpss ] *** [NSF0] NSF Statistics *** [m3vpss ] [m3vpss ] Elasped Time : 0 secs [m3vpss ] Total Fields Processed : 0 [m3vpss ] Total Fields FPS : 0 FPS [m3vpss ] [m3vpss ] [m3vpss ] CH | In Recv In Reject In Process Out User Out [m3vpss ] Num | FPS FPS FPS FPS Skip FPS [m3vpss ] ------------------------------------------------ [m3vpss ] 0 | 0 0 0 0 0 [m3vpss ] [m3vpss ] [m3vpss ] 34971: LOAD: CPU: 5.5% HWI: 0.1%, SWI:0.5% [m3vpss ] [m3vpss ] 34971: LOAD: TSK: CAPTURE : 3.1% [m3vpss ] 34971: LOAD: TSK: NSF0 : 1.0% [m3vpss ] 34971: LOAD: TSK: MISC : 0.8% [m3vpss ] [m3video] [m3video] 35472: LOAD: CPU: 0.4% HWI: 0.1%, SWI:0.1% [m3video] [m3video] 35472: LOAD: TSK: MISC : 0.2% [m3video] [m3vpss ] [m3vpss ] *** CAPTURE Statistics *** [m3vpss ] 36473: CAPTURE: Queued to driver = 12, Dequeued from driver = 0 [m3vpss ] CAPTURE [0] Buf Q Status [m3vpss ] Empty Q -> count 0, wrPtr 0, rdPtr 0 [m3vpss ] Full Q -> count 0, wrPtr 0, rdPtr 0 [m3vpss ] [m3vpss ] *** [NSF0] NSF Statistics *** [m3vpss ] 36473: NSF: Rcvd from prev = 0, Returned to prev = 0 [m3vpss ] NSF Out [0] Buf Q Status [m3vpss ] Empty Q -> count 0, wrPtr 0, rdPtr 0 [m3vpss ] Full Q -> count 0, wrPtr 0, rdPtr 0 ------------------------------------------------------- ------------------------------------------------------- VcapVenc_resetStatistics !!! -------------------------------------------------------capture has started
Hi, if gVcapModuleContext.vcapConfig.enableConfigExtVideoDecoder = TRUE , there printed some other information:
VCAP: TVP5158-0 (0x5c): Device not found !!!
Audio Channels are not supported
How are you configuring your external video decoder in your app ?
Below is what several customers have done to integrate their own video decoders successfully in dvr rdk:
1. Define their own device type for the external video decoder.
2. IMplement the APIs to configure the external video decoder .(Use TVP5158 for reference)
3. In the usecase file set correct parameters for external video decoder and create it
- Set the corresponding parameters for CaptureLink create parameters realted to VIP configuration and then create captureLink.
Have you completed all of the above? From the error it looks like you are setting the device type as TVP 5158 which is wrong. PLs provide the external video decoder data sheet, the code related to video decoder configuration, any changes done to mcfw to integrate the external video decoder and the usecase file with latest captureLink and external video decoder configuration .Without these it is difficult to debug the issue remotely.
Hi, I don't want use TVP5158, so I set gVcapModuleContext.vcapConfig.enableConfigExtVideoDecoder = FALSE.
you suggest set to TRUE, and see if there is any change in behavior. So I test, the error is
VCAP: TVP5158-0 (0x5c): Device not found !!!.
But I don't need to use video decoder in 8168, I can't get rid of all setting of video decoder?
Now I get rid of pCaptureInstPrm->videoDecoderId = SYSTEM_DEVICE_VID_DEC_TVP5158_DRV;
and set gVcapModuleContext.vcapConfig.enableConfigExtVideoDecoder = FALSE.
The result is VIP0 A is enable,but
[m3vpss ] *** CAPTURE Statistics ***
[m3vpss ] 36473: CAPTURE: Queued to driver = 12, Dequeued from driver = 0
[m3vpss ] CAPTURE [0] Buf Q Status
[m3vpss ] Empty Q -> count 0, wrPtr 0, rdPtr 0
[m3vpss ] Full Q -> count 0, wrPtr 0, rdPtr 0
So what's wrong?
How is your camera interfaced to 8168 VIP port. What is the format the video signals are sent to 8168 ? I understand you dont require TVP but only now I understand you dont have any video decoder IC at all. If you dont want any video decoder configuration then set
gVcapModuleContext.vcapConfig.enableConfigExtVideoDecoder = FALSE
undefine
//#define SYSTEM_USE_VIDEO_DECODER
The remaining part is VIP configuration.Pls provide details on what format video data is sent to VIP port and we can provide details on VIP configuration.
I find just only in system_debug.h, there define SYSTEM_USE_VIDEO_DECODER as following:
#if defined(TI8107_DVR)
#define SYSTEM_USE_VIDEO_DECODER
#endif
Is there another define?
In my board, the cameral will capture data and send to 9388, and the send to VIP0 A. The video format is YUV422 16-bit discrete sync mode, but 8168 not support the format.
so I change pCaptureInstPrm->inDataFormat = SYSTEM_DF_RGB24_888;
the format is not right, but there should be still data, is right?
#if defined(TI8107_DVR)
#define SYSTEM_USE_VIDEO_DECODER
#endif
The above is the only place where this is defined so your setting is correct.
What does 9388 mean. Are you refering to http://www.analog.com/static/imported-files/data_sheets/AD9388A.pdf ?
Yes, it's AD9388, another colleague works on it. He uses it in another project, it can successfully send data (16 bits discrete sync mode) .
Hi, thanks very much for your reply.
I use 16 embedded sync mode of capture. I print some information in \dvr_rdk\mcfw\src_bios6\links_m3vpss\capture\captureLink_drv.c.
And videoCaptureMode = VPS_CAPT_VIDEO_CAPTURE_MODE_SINGLE_CH_NON_MUX_EMBEDDED_SYNC;
videoIfMode = VPS_CAPT_VIDEO_IF_MODE_16BIT;
But the contents of memory location 0x48105A00 to 0x48105A10 is all zero.
I use VIP0 A.But I found 0x48105A00 is for VIP1.
RDK can only support FVID2_DF_YUV422P,FVID2_DF_YUV444P, FVID2_DF_RGB24_888. I want use 16bit, but it can not support 422I_YUYV, so I use YUV422P, is it OK?
Hi,
It looks like there is some issue in your SAV/EAV codes, because VIP says there is a protocol violation.. Could you please check if the SAV/EAV codes inserted are correct and they are inserted in both the channels i.e. luma and chroma..
If this does not work out, is it possible to connect sync signal and configure VIP to work in discrete sync mode..
Thanks,
Brijesh Jadav
Hi,
Now I don't need to use 5158. And I want capture 1080P 60, 16bits-422, and SINGLE_CH_NON_MUX_EMBEDDED_SYNC.
I need to change the driver of capture?
No, there is no need to change the driver, driver has been tested with 16 bit embedded sync format with input from TVP7002.
Regards,
Brijesh Jadav
Hi, thanks very much for your reply.
Now I din't change the driver, and just configure the capture params.
But it doesn't capture any frame. How should I change the code?
I am very confused. My colleague has test the signal is in VIP0 pins.
Hi Shary,
Could you first check your input is correct? it is sending correct SAV/EAV codes? it is sending SAV/EAV codes on both the channels? H and V bits are toggling correctly in SAV/EAV codes? Once all of these are correct, VIP will receive frames correctly and you will be able to capture frame correctly..
Regards,
Brijesh Jadav
Hi, thanks very much for your help.
I want to know, whether if the input is correct, I just need to delete all codes of 5158, and configure the VIP.
Are those is enough? And another thing I should do?
I want to ensure this. Somebody asked me to change the driver, I want to know whether it is necessary.
Can you help me?