TI中文支持网
TI专业的中文技术问题搜集分享网站

dm8127无法获取到编码数据

自己根据multich_encode_decode.c改了下usercase,目前是:

                                 CAMERA(VPSSM3)
                                      |
                                      |
                              FRAMES OUT(VPSSM3)          
                                      |                   
                                      |                   
                              FRAMES IN(VIDEOM3)          
                                      |                   
                                      |                   
                                 ENC(VIDEOM3)             
                                      |                   
                                      |                   
                               BITS OUT(VIDEOM3)          
                                      |                   
                                      |                   
                                  BITS IN(A8)   

但运行后App_ipcBitsRecvStreamFxn线程函数无法通过Venc_getBitstreamBuffer获取到编码数据,我怀疑bitsInNotifySem信号都没接收到,请大家帮看下是哪里出了问题。

程序执行后日志打印如下:

************************************Enter main()***********************************

 [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000
 [m3video] Remote Debug Shared Memory @ 0xbff05020
 [m3vpss ] Remote Debug Shared Memory @ 0xbff0a040
 [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000
 [m3video] Remote Debug Shared Memory @ 0xbff05020
 [m3vpss ] Remote Debug Shared Memory @ 0xbff0a040
 [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000
 [m3video] Remote Debug Shared Memory @ 0xbff05020
 [m3vpss ] Remote Debug Shared Memory @ 0xbff0a040
 [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000
 [m3video] Remote Debug Shared Memory @ 0xbff05020
 [m3vpss ] Remote Debug Shared Memory @ 0xbff0a040
 [m3video]  15314: SYSTEM  : System Video Init in progress !!!
 [m3vpss ]  15314: SYSTEM  : System VPSS Init in progress !!!
 [m3video]  15315: SYSTEM  : System Video Init Done !!!
 [m3video]  15315: SYSTEM: Creating ListMP [VIDEO-M3_IPC_OUT_0] in region 0 …
 [m3video]  15315: SYSTEM: Creating ListMP [VIDEO-M3_IPC_IN_0] in region 0 …
 [m3video]  15316: SYSTEM: ListElem Shared Addr = 0xbe98b680
 [m3video]  15318: SYSTEM: Creating ListMP [VIDEO-M3_IPC_OUT_1] in region 0 …
 [m3video]  15319: SYSTEM: Creating ListMP [VIDEO-M3_IPC_IN_1] in region 0 …
 [m3video]  15319: SYSTEM: ListElem Shared Addr = 0xbe98eb80
 [m3video]  15330: SYSTEM: Creating ListMP [VIDEO-M3_IPC_OUT_28] in region 0 …
 [m3vpss ] === I2C0/2 Clk is active ===
 [m3video]  15330: SYSTEM: Creating ListMP [VIDEO-M3_IPC_IN_28] in region 0 …
 [m3vpss ]  15333: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_0] in region 0 …
 [m3video]  15331: SYSTEM: ListElem Shared Addr = 0xbe992080
 [m3vpss ]  15333: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_0] in region 0 …
 [m3video]  15333: SYSTEM: Creating ListMP [VIDEO-M3_IPC_OUT_29] in region 0 …
 [m3vpss ]  15334: SYSTEM: ListElem Shared Addr = 0xbe9ac280
 [m3video]  15334: SYSTEM: Creating ListMP [VIDEO-M3_IPC_IN_29] in region 0 …
 [m3vpss ]  15336: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_1] in region 0 …
 [m3video]  15334: SYSTEM: ListElem Shared Addr = 0xbe9af200
 [m3vpss ]  15337: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_1] in region 0 …
 [m3video]  15336: HDVICP: Doing PRCM for IVAHD[0] … [m3vpss ]  15337: SYSTEM: ListElem Shared Addr = 0xbe9c8e80
 [m3video]  15337: HDVICP: PRCM for IVAHD[0] … DONE.
 [m3video]  15337: SYSTEM  : Initializing Links !!! [m3video]  15338: SYSTEM  : FREE SPACE : System Heap      = 6282128 B, Mbx = 10240 msgs) [m3video]  15338: SYSTEM  : FREE SPACE : SR0 Heap         = 15942272 B (15 MB) [m3vpss ]  15353: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_23] in region 0 …
 [m3vpss ]  15353: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_23] in region 0 …
 [m3video]  15338: SYSTEM  : FREE SPACE : Frame Buffer     = 110100352 B (104 MB) [m3vpss ]  15353: SYSTEM: ListElem Shared Addr = 0xbe9cc380
 [m3vpss ]  15356: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_24] in region 0 …
 [m3video]  15338: SYSTEM  : FREE SPACE : Bitstream Buffer = 62914432 B (59 MB) [m3vpss ]  15357: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_24] in region 0 …
 [m3vpss ]  15357: SYSTEM: ListElem Shared Addr = 0xbe9ebd80
 [m3video]  15338: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] …
 [m3vpss ]  15360: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_25] in region 0 …
 [m3video]  15339: SYSTEM  : FREE SPACE : Tiler Buffer     = 127 B (0 MB)  – TILER OFF [m3vpss ]  15360: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_25] in region 0 …
 [m3vpss ]  15360: SYSTEM: ListElem Shared Addr = 0xbea0b780
 [m3vpss ]  15367: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_28] in region 0 …
 [m3vpss ]  15368: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_28] in region 0 …
 [m3vpss ]  15368: SYSTEM: ListElem Shared Addr = 0xbea2b180
 [m3vpss ]  15371: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_29] in region 0 …
 [m3vpss ]  15371: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_29] in region 0 …
 [m3vpss ]  15371: SYSTEM: ListElem Shared Addr = 0xbea44e00
 [m3vpss ]  15374: SYSTEM : HDVPSS Drivers Version: HDVPSS_01_00_01_37
 [m3vpss ]  15374: SYSTEM  : FVID2 Init in progress !!!
 [m3video]  15397: SYSTEM  : Initializing Links … DONE !!! [c6xdsp ]  15488: SYSTEM  : System DSP Init in progress !!!
 [c6xdsp ]  15803: SYSTEM: Creating ListMP [DSP_IPC_OUT_23] in region 0 …
 [c6xdsp ]  15803: SYSTEM: Creating ListMP [DSP_IPC_IN_23] in region 0 …
 [c6xdsp ]  15803: SYSTEM: ListElem Shared Addr = 0xbea5ea80
 [c6xdsp ]  15804: SYSTEM: Creating ListMP [DSP_IPC_OUT_24] in region 0 …
 [c6xdsp ]  15804: SYSTEM: Creating ListMP [DSP_IPC_IN_24] in region 0 …
 [c6xdsp ]  15804: SYSTEM: ListElem Shared Addr = 0xbea7e480
 [c6xdsp ]  15805: SYSTEM: Creating ListMP [DSP_IPC_OUT_25] in region 0 …
 [c6xdsp ]  15806: SYSTEM: Creating ListMP [DSP_IPC_IN_25] in region 0 …
 [c6xdsp ]  15806: SYSTEM: ListElem Shared Addr = 0xbea9de80
 [c6xdsp ]  15807: SYSTEM: Creating ListMP [DSP_IPC_OUT_28] in region 0 …
 [c6xdsp ]  15807: SYSTEM: Creating ListMP [DSP_IPC_IN_28] in region 0 …
 [c6xdsp ]  15807: SYSTEM: ListElem Shared Addr = 0xbeabd880
 [c6xdsp ]  15808: SYSTEM: Creating ListMP [DSP_IPC_OUT_29] in region 0 …
 [c6xdsp ]  15808: SYSTEM: Creating ListMP [DSP_IPC_IN_29] in region 0 …
 [c6xdsp ]  15808: SYSTEM: ListElem Shared Addr = 0xbead7500
 [c6xdsp ] !!WARNING.Resource already registered:2
 [c6xdsp ]  15499: SYSTEM  : Initializing Links !!! [c6xdsp ]  15809: SYSTEM  : FREE SPACE : System Heap      = 6282544 B, Mbx = 10240 msgs) [c6xdsp ]  15514: SYSTEM  : Initializing Links … DONE !!! [m3vpss ]  15440: SYSTEM  : FVID2 Init in progress DONE !!!
 [m3vpss ]  15440: SYSTEM  : Device Init in progress !!!
 [c6xdsp ]  15514: SYSTEM  : System DSP Init Done !!!
 [m3vpss ]  
 [m3vpss ] ************iss_03_50_00_00/packages/ti/psp/iss/drivers/src/Iss_init called !!!!!!********************
 [m3vpss ]  CPIS_init DONE !!!!!! [m3vpss ] initPrms.isI2cInitReq = 1
 [m3vpss ] initPrms.isI2cInitReq = 1
 [m3vpss ]  Vps_deviceInit Daughter card not detected/connected!
 [m3vpss ]                     
 [m3vpss ]  I2C2: Passed for address 0x36 !!! [m3vpss ]  I2C2: Passed for address 0x55 !!! [m3vpss ]  18165: SYSTEM  : Device Init in progress DONE !!!
 [m3vpss ]  18194: SYSTEM  : System VPSS Init Done !!!
 [m3vpss ]  18194: UTILS: DMA: HWI Create for INT62 !!!
 [m3vpss ]  18194: SYSTEM  : Initializing Links !!! [m3vpss ]  18194: SYSTEM  : FREE SPACE : System Heap      = 1718872 B, Mbx = 10240 msgs) [m3vpss ]  18194: SYSTEM  : FREE SPACE : SR0 Heap         = 14742656 B (14 MB) [m3vpss ]  18194: SYSTEM  : FREE SPACE : Frame Buffer     = 105790336 B (100 MB) [m3vpss ]  18195: SYSTEM  : FREE SPACE : Bitstream Buffer = 62914432 B (59 MB) [m3vpss ]  18195: SYSTEM  : FREE SPACE : Tiler Buffer     = 127 B (0 MB)  – TILER OFF [m3vpss ] Received character 't'
 [m3vpss ]  18327: SYSTEM  : Initializing Links … DONE !!! [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000
 [m3video] Remote Debug Shared Memory @ 0xbff05020
 [m3vpss ] Remote Debug Shared Memory @ 0xbff0a040
 [m3video] Received character 't'
 [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000
 [m3video] Remote Debug Shared Memory @ 0xbff05020
 [m3vpss ] Remote Debug Shared Memory @ 0xbff0a040
 [c6xdsp ] Received character 't'
DMA: Module install successful, device major num = 247DRV: Module install successful
DRV: Module built on Feb  9 2014 17:42:39HDMI W1 rev 4.0
HDMI CEC Spec version 1.2
I2C No Ack

 [host]  

 [host]  ORG 0x46c00524: 0

 [host]  NEW 0x46c00524: 2

 [host]  
Application Start Completed

******************Enter App_runDemo()****************

 [host]  0: SYSTEM: System Common Init in progress !!!

 [host]  1: SYSTEM: IPC init in progress !!!

 [host]  32: SYSTEM: CPU [DSP] syslink proc ID is [0] !!!

 [host]  32: SYSTEM: CPU [VIDEO-M3] syslink proc ID is [1] !!!

 [host]  32: SYSTEM: CPU [VPSS-M3] syslink proc ID is [2] !!!

 [host]  32: SYSTEM: CPU [HOST] syslink proc ID is [3] !!!

 [host]  33: SYSTEM: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] …

 [host]  37: SYSTEM: Creating MsgQ [HOST_MSGQ] …

 [host]  38: SYSTEM: Creating MsgQ [HOST_ACK_MSGQ] …

 [host]  40: SYSTEM: Opening MsgQ [DSP_MSGQ] …

 [host]  40: SYSTEM: Opening MsgQ [VIDEO-M3_MSGQ] …

 [host]  41: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] …

 [host]  43: SYSTEM: Notify register to [DSP] line 0, event 12 …
 [host]  45: SYSTEM: Notify register to [VIDEO-M3] line 0, event 12 …
 [host]  45: SYSTEM: Notify register to [VPSS-M3] line 0, event 12 …
 [host]  46: SYSTEM: IPC init DONE !!!

 [host]  51: SYSTEM: Creating ListMP [HOST_IPC_OUT_28] in region 0 …

 [host]  54: SYSTEM: Creating ListMP [HOST_IPC_IN_28] in region 0 …

 [host]  55: SYSTEM: ListElem Shared Addr = 0x405a9180

 [host]  56: SYSTEM: Creating ListMP [HOST_IPC_OUT_29] in region 0 …

 [host]  58: SYSTEM: Creating ListMP [HOST_IPC_IN_29] in region 0 …

 [host]  60: SYSTEM: ListElem Shared Addr = 0x405c2e00

 [host]  62: SYSTEM: Creating ListMP [HOST_IPC_OUT_23] in region 0 .DMA: ChannelID allocated:4
..

 [host]  64: SYSTEM: Creating ListMP [HOST_IPC_IN_23] in region 0 …

 [host]  66: SYSTEM: ListElem Shared Addr = 0x405dca80

 [host]  67: SYSTEM: Creating ListMP [HOST_IPC_OUT_24] in region 0 …

 [host]  69: SYSTEM: Creating ListMP [HOST_IPC_IN_24] in region 0 …

 [host]  70: SYSTEM: ListElem Shared Addr = 0x405fc480

 [host]  71: SYSTEM: Creating ListMP [HOST_IPC_OUT_25] in region 0 …

 [host]  73: SYSTEM: Creating ListMP [HOST_IPC_IN_25] in region 0 …

 [host]  75: SYSTEM: ListElem Shared Addr = 0x4061be80

 [host]  76: SYSTEM: System Common Init Done !!!

 [host] Vsys_allocBuf – addr = 0x4cdfc000,size = 65011712

 [host] MCFW_IPCBITS:App_streamSysInit:virt addr of 85000000 cir buffer  is 4cdfc000

 [host] MCFW_IPCBITS:App_ipcBitsRecvStreamFxn:Entered…
 [host] MCFW_IPCFRAMES:App_ipcFramesSendRecvFxn:Entered…
 [host]
**************************Enter Vsys_create()******************************

 [host] Before System_linkControl SYSTEM_M3VPSS_CMD_GET_DISPLAYCTRL_INIT

 [host] MultiCh_createHYDemo:OSA_dmaOpen passed with ch id = 4

 [host]********** ENC A8 USE CASE ********

 [host]********* Entered Encode usecase – H264 1080p @30fps Encode ********

 [host]  156: MCFW  : CPU Revision [ES2.1] !!!
 [host]  156: MCFW  : Detected [UNKNOWN] Board !!!
 [host]  156: MCFW  : Base Board Revision [REV A] !!! [m3vpss ] VPS_DCTRL_INST_0
 [m3vpss ] IOCTL_VPS_DCTRL_SET_VENC_OUTPUT SYSTEM_DC_VENC_DVO2
 [m3vpss ] IOCTL_VPS_DCTRL_SET_VENC_OUTPUT SYSTEM_DC_VENC_HDMI
 [m3vpss ] IOCTL_VPS_DCTRL_SET_VENC_OUTPUT SYSTEM_DC_VENC_SD
 [m3vpss ] IOCTL_VPS_DCTRL_SET_VENC_CLK_SRC VPS_DC_VENC_HDMI | VPS_DC_VENC_DVO2
 [m3vpss ]  19428: CAMERA: Create in progress !!!
 [m3vpss ]  19429: CAMERA: VIP0 PortA camera mode is [ 8-bit, Non-mux Embedded Sync] !!! [m3vpss ] ***************************Begin to Config MT9J003 Register!****************************
 [m3vpss ]  19439: CAMERA: VIP 0: VID DEC 268436736 (0x36): bebebebe:bebebebe:8ebd60d8, AUD_STATUS -1094795586
 [m3vpss ] Stream ID 0: chId = 0 VpsUtils_queCreate.
 [m3vpss ]  19608: CAMERA: Create Done !!!
 [m3video]  19792: IPC_IN_M3   : Create in progress !!!
 [m3vpss ]  19696: CAMERA: Detect video in progress !!!
 [m3video]  19792: SYSTEM: Opening ListMP [VPSS-M3_IPC_OUT_0] …
 [m3vpss ]  19697: CAMERA: Detect video Done !!!
 [m3video]  19792: SYSTEM: Opening ListMP [VPSS-M3_IPC_IN_0] …
 [m3vpss ]  19790: IPC_OUT_M3   : Create in progress !!!
 [m3vpss ]  19791: IPC_OUT_M3   : Create Done !!!
begin create encode link …….
 [m3video]  19796: IPC_IN_M3   : Create Done !!!
 [m3vpss ] DCC server task running [m3video]  19796: ENCODE: Create in progress … !!!
 [m3video] ==>prevLinkQueId=0 numQue=2<==
 [m3video]  19826: ENCODE: Creating CH0 of 1920 x 1080, pitch = (1920, 1920) [PROGRESSIVE] [NON-TILED  ], bitrate = 8000 Kbps …
 [host] IpcBitsInLink_tskMain:Entered
 [host]  575: IPC_BITS_IN   : Create in progress !!!

 [host]  575: IPC_BITS_IN   : ListMPOpen start !!!

 [host]  575: SYSTEM: Opening ListMP [VIDEO-M3_IPC_OUT_28] …

 [host]  578: SYSTEM: Opening ListMP [VIDEO-M3_IPC_IN_28] …

 [host]  579: IPC_BITS_IN   : ListMPOpen done !!!

 [host]  580: IPC_BITS_IN   : System_linkGetInfo done !!!

 [host]  580: IPC_BITS_IN   : Create Done !!!

 [host] USECASE SETUP DONE

 [host]
**************************Leave Vsys_create()******************************
 [m3video] ENCLINK_H264:HEAPID:0    USED:13808
 [m3vpss ]  19854: CAMERA: Start in progress !!!
 [m3video]  19933: ENCODE: All CH Create … DONE !!!
 [m3vpss ]  19854: CAMERA: Start Done !!!
 [m3video] ENCLINK:HEAPID:0    USED:14048
 [m3video]  19935: ENCODE: Create … DONE !!!
 [m3video]  19936: IPC_BITS_OUT   : Create in progress !!!
 [m3video]  19938: IPC_BITS_OUT   : Create Done !!!

Application Run Completed
******************Leave App_runDemo()****************
 [m3vpss ]  19972: CAMERA: Fields = 1 (fps = 0), Total Resets = 0 (Avg 0 ms per reset)
 [m3video]  Channel:0 inputframerate:30 targetfps:60

Chenfeng Wang:

我遇到与你同样的问题,但是我是用的是如下数据链路:                     

                         CAMERA(VPSSM3)                                      |                                      |                              IPCOUTVPSS(VPSSM3)                                                |                                                         |                                                 IPCINVIDEO(VIDEOM3)                                                |                                                         |                                                    ENC(VIDEOM3)                                                   |                                                         |                                                  BITS OUT(VIDEOM3)                                                |                                                         |                                                     BITS IN(A8)   

请问还有别人碰到类似问题吗?能否分享一下解决思路。

赞(0)
未经允许不得转载:TI中文支持网 » dm8127无法获取到编码数据
分享到: 更多 (0)