您好 TIers:
接法是: VIP0_A , 接了一路 1920×1080 30fps。
VIP1_A , 接了一路 1280×1024 60fps。
—————————————————————————————-
软件配置了两个 IVAHD,各编码一路。
LINK 是: CAP –> OUT VPSS —> IN VIDEO —> ENC —> BITS OUT —> HOST
请帮忙看看如下问题,谢谢。
有没有 两路独立高清编码 的 demo ? 谢谢
问题1: dm8148 是否支持两路高清同时编码 ?
问题2: 第二个通道的码流获取的不对,size太小了,播放也没有图像。日志如下:
captureId= 536870945
ipcOutVpssId= 536870912
ipcInVideoId= 268435458
encId= 268435489
ipcBitsOutRTOSId= 268435480
ipcBitsInHLOSId= 805306394
69: MCFW : CPU Revision [ES2.1] !!! [m3vpss ] 19980: CAPTURE: Create in progress !!!
[m3vpss ] CreateInst, numVipInst= 2
[m3vpss ] <CaptureLink_drvCreateInst> standard= 16
[m3vpss ] 20014: CAPTURE: VIP0 PortA capture mode is [16-bit, Non-mux Embedded Sync] !!! [m3vpss ] <CaptureLink_drvCreateInst> standard= 277
[m3vpss ] 20148: CAPTURE: VIP1 PortA capture mode is [16-bit, Non-mux Embedded Sync] !!! [m3video] 20285: IPC_IN_M3 : Create in progress !!!
[m3vpss ] UTILS: DMA: Allocated CH (TCC) = 58 (58)
[m3video] 20285: SYSTEM: Opening ListMP [VPSS-M3_IPC_OUT_0] …
[m3vpss ] UTILS: DMA: 0 of 4: Allocated PaRAM = 58 (0x49004740)
[m3video] 20286: SYSTEM: Opening ListMP [VPSS-M3_IPC_IN_0] …
[m3vpss ] UTILS: DMA: 1 of 4: Allocated PaRAM = 64 (0x49004800)
[m3video] <Video IpcInM3Link_create> prevLinkId= 536870912, numQue= 4
[m3vpss ] UTILS: DMA: 2 of 4: Allocated PaRAM = 65 (0x49004820)
[m3video] i= 0, j= 0, width= 1920, height= 1080, scanFormat= 1
[m3vpss ] UTILS: DMA: 3 of 4: Allocated PaRAM = 66 (0x49004840)
[m3video] i= 0, j= 1, width= 1920, height= 1080, scanFormat= 1 // 怎么第二路还是 1920×1080, 我配置的是 1280×1024,请指点一下,谢谢
[m3video] 20289: IPC_IN_M3 : Create Done !!!
[m3video] 20289: ENCODE: Create in progress … !!!
[m3vpss ] CAPTURE::HEAPID:0 USED:520
[m3vpss ] CAPTURE::HEAPID:4 USED:53913600
[m3vpss ] 20283: CAPTURE: Create Done !!!
[m3vpss ] 20284: IPC_OUT_M3 : Create in progress !!!
[m3vpss ] 20285: IPC_OUT_M3 : Create Done !!!
[m3video] <enc>inQueInfo.numCh= 2
[m3video] 20359: ENCODE: Creating CH0 of 1920 x 1080, pitch = (1920, 1920) [PROGRESSIVE] [NON-TILED ], bitrate = 2000 Kbps, I-P Interval 1… [m3video] ENCLINK_H264:HEAPID:0 USED:13808
[m3video] ENCLINK_H264:HEAPID:3 USED:7176192
[m3video] 20399: ENCODE: Creating CH1 of 1920 x 1080, pitch = (1920, 1920) [PROGRESSIVE] [NON-TILED ], bitrate = 2000 Kbps, I-P Interval 1…
[host] IpcBitsInLink_tskMain:Entered[HOST]ThreadName:IpcBitsInLink_tskMain_3000001a,ThreadID:303
[host] 532: IPC_BITS_IN : Create in progress !!!
[host] 532: IPC_BITS_IN : ListMPOpen start !!!
[host] 532: SYSTEM: Opening ListMP [VIDEO-M3_IPC_OUT_24] …
534: SYSTEM: Opening ListMP [VIDEO-M3_IPC_IN_24] …
[host] 535: IPC_BITS_IN : ListMPOpen done !!!
[host] 536: IPC_BITS_IN : System_linkGetInfo done !!!
[host] 537: IPC_BITS_IN : Create Done !!!
[HOST]ThreadName:IpcBitsInLink_periodicTaskFxn_3000001a,ThreadID:314
[m3vpss ] 20449: CAPTURE: Start in progress !!!
[m3video] ENCLINK_H264:HEAPID:0 USED:11912
[m3video] ENCLINK_H264:HEAPID:3 USED:7176192
[m3video] 20438: ENCODE: All CH Create … DONE !!!
[m3video] ENCLINK:HEAPID:0 USED:25760
[m3video] ENCLINK:HEAPID:2 USED:12441600
[m3video] ENCLINK:HEAPID:3 USED:14352384
[m3video] 20439: ENCODE: Create … DONE !!!
[m3video] 20440: IPC_BITS_OUT : Create in progress !!!
[m3video] 20442: IPC_BITS_OUT : Create Done !!!
[m3vpss ] 20548: CAPTURE: Enabled Time Stamping !!!
[m3vpss ] 20556: CAPTURE: Enabled Time Stamping !!!
[m3vpss ] 20564: CAPTURE: Start Done !!!
chid= 1, addr= 0x40c14080, size= 1377
chid= 1, addr= 0x40d11280, size= 165 // 1通道的码流不对
chid= 0, addr= 0x40e0e480, size= 45530
chid= 1, addr= 0x40f0b680, size= 70
chid= 1, addr= 0x41008880, size= 70
chid= 0, addr= 0x41105a80, size= 11017
chid= 1, addr= 0x41202c80, size= 75
chid= 1, addr= 0x412ffe80, size= 73
chid= 0, addr= 0x413fd080, size= 6462
chid= 1, addr= 0x414fa280, size= 70
chid= 1, addr= 0x415f7480, size= 70
chid= 0, addr= 0x416f4680, size= 7987
chid= 1, addr= 0x40c14080, size= 70
chid= 1, addr= 0x40d11280, size= 76
chid= 0, addr= 0x40e0e480, size= 361
chid= 1, addr= 0x40f0b680, size= 71
chid= 1, addr= 0x41008880, size= 71
chid= 0, addr= 0x41105a80, size= 18816
chid= 1, addr= 0x41202c80, size= 71
Chris Meng:
你好,
DM8148的编码性能大概是1080p60多一点,你现在的配置可能会超出编码能力。两路1080p30编码是可以的。
请问你使用的是DVR RDK 4.01么?如果是,里面的DM8168 有一个HD Encode Card Use-case可以参考。