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.

Getting issue to Scale down from 2560x1920 to 1920x1080 using MpSclr

HI,

I am using IPNC-RDK 3.8.

I have try to modofy FullFeature Use-case with MPSclr to scale stream from 5MP to 2MP.

If i give 1920x1080 input  to MP_SCLR, it is working fine.

But getting error when i give input  2560x1920.

detail log:

[host]
********** FULL FEATURE USECASE ********

[host] ********* Entered Tri Streaming usecase - H264 1080p @60fps + H264 D1 @30fps + MJPE
G 1080p @5fps ********


[host] 136: MCFW : CPU Revision [ES2.1] !!!

[host] 136: MCFW : Detected [UNKNOWN] Board !!!

[host] 136: MCFW : Base Board Revision [REV A] !!!

[host]
********** TEST3 ********
[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 ] ws_test: Vrm_allocResource=17
[m3vpss ] ws_test: Vrm_allocResource00
[m3vpss ] ws_test: Vrm_allocResource=18
[m3vpss ] ws_test: Vrm_allocResource00
[m3vpss ] 5624: CAMERA: Create in progress !!!
[m3vpss ] Channel Num Stream 0 Ch 0 ChannelNum 0
[m3vpss ] Channel Num Stream 1 Ch 0 ChannelNum 1
[m3vpss ] 5625: CAMERA: VIP0 PortA camera mode is [ 8-bit, Non-mux Embedded Sync] !!!
[m3vpss ] zb_test: IMGS_ON_NOIP1SE5000A defined !!!
[m3vpss ] zb_test: FVID2_create start!!!
[m3vpss ] zb_test: pInstPrm->videoDecoderId = 0x10000517
[m3vpss ] zb_test- Iss_Noip1se5000aCreate start
[m3vpss ] zb_test: FVID2_create end!!!
[m3vpss ] 5648: CAMERA: VIP 0: VID DEC 268436759 (0x00): 8f149f20:ffff0000:8f14c3dc, AUD_
STATUS -1894457728
[m3vpss ] Iss_captCreate:1671
ubiformat: error!: please, first detach mtd5 (/dev/mtd5) from ubi0
queue id:0
[m3vpss ] 6019: CAMERA: Create Done !!!
[m3vpss ] 6228: CAMERA: Detect video in progress !!!
[m3vpss ] 6229: CAMERA: Detect video Done !!!
[m3vpss ] 6311: DUP : Create Done !!!
[m3vpss ] 6237: VNF:
[m3vpss ] Create in progress ... !!!
[m3vpss ] 6237: VNF:
[m3vpss ] Input Channel CH0 of 2592 x 1952, pitch = (2624, 2624) [0,0][PROGRESSIVE] [7] ..
.
[m3vpss ] 6238: VNF:
[m3vpss ] [VNF] eOperateMode=6 [6-TNF3,7-NSF2]chVnfCreateParams->ulStartX = 0 c
hVnfCreateParams->ulStartY = 0 chVnfCreateParams->ulInputStride = 2624 c
hVnfCreateParams->ulInputWidth=2592,chVnfCreateParams->ulInputHeight=1952
[m3vpss ] UTILS: MEM: Alloc'ing from TILER BUF. (required size = 60715008 B, free space =
139460608 B)
ubiattach: error!: cannot attach mtd5
error 17 (File exists)
[m3vpss ] 6636: VNF:
[m3vpss ] [VNF] outChInfo->StartX = 0 outChInfo->startY = 0 outChInfo->pitch[0] = 2592 o
utChInfo->width=2560,outChInfo->height=1920
[m3vpss ] 6639: VNF:
[m3vpss ] Create ... DONE !!!
[m3vpss ] 6714: NSF: Create in progress !!!
[m3vpss ] ws_test:pFormat->height=1952
[m3vpss ] ws_test:status=0
[m3vpss ] UTILS: MEM: Alloc'ing from TILER BUF. (required size = 45536256 B, free space =
78745600 B)
[m3vpss ] ws_test:size=7589376
[m3vpss ] ws_test:numFrames=6
[m3vpss ] ws_test:pBaseAddr=-1281462272
[m3vpss ] NSF::HEAPID:0 USED:128
[m3vpss ] NSF::HEAPID:1 USED:4928
[m3vpss ] 7014: NSF: Create Done !!!
[m3vpss ] DCC server task running
[m3vpss ] 7018: Mux : CrDMA: ChannelID allocated:6
eating... !!!
DMA: ChannelID allocated:7
[m3vpss ] 7020: WARNING MUX Link : Ignoring channel no 0 of Input Q ID 0. As this chan
nel was not mapped !!!
[m3vpss ] 7021: Mux : Create Done !!!
[m3vpss ] 7028: DUP : Create Done !!!
[m3vpss ] 7036: DUP : Create Done !!!
[m3vpss ] 7036: Mux : Creating... !!!
[m3vpss ] 7038: Mux : Create Done !!!
[m3vpss ] {SWOSD} edma3Handle->tccVal = 36
[m3vpss ] {SWOSD} edma3Handle->chId = 36

[host] Vsys_eventHandler:OSA_dmaOpen passed with ch id = 6

[host] Vsys_eventHandler:OSA_dmaOpen passed with ch id = 7
[m3vpss ] {SWOSD} edma3Handle->tccVal = 37
[m3vpss ] {SWOSD} edma3Handle->chId = 37
[m3vpss ] {SWOSD} edma3Handle->tccVal = 38
[m3vpss ] {SWOSD} edma3Handle->chId = 38
[m3vpss ] 7049: SYSTEM: Opening MsgQ [HOST_MSGQ] ...
libubi: error!: cannot get information about "/dev/ubi2"
error 2 (No such file or directory)
ubimkvol: error!: error while probing "/dev/ubi2"
error 2 (No such file or directory)
[m3vpss ] 7037: SWOSD : Create Done !!!
[m3video] 7122: IPC_IN_M3 : Create in progress !!!
[m3vpss ] 7119: DUP : Create Done !!!
[m3video] 7122: SYSTEM: Opening ListMP [VPSS-M3_IPC_OUT_0] ...
[m3vpss ] 7120: IPC_OUT_M3 : Create in progress !!!
[m3video] 7123: SYSTEM: Opening ListMP [VPSS-M3_IPC_IN_0] ...
[m3vpss ] 7121: IPC_OUT_M3 : Create Done !!!
[m3video] 7126: IPC_IN_M3 : Create Done !!!
[m3video] 7127: ENCODE: Create in progress ... !!!
[m3video] 7410: ENCODE: Creating CH0 of 2560 x 1920, pitch = (2592, 2592) [PROGRESSIVE] [
NON-TILED ], bitrate = 8000 Kbps ...
[m3video] UTILS: MEM: Alloc'ing from TILER BUF. (required size = 5332992 B, free space =
33209344 B)
[m3video] UTILS: MEM: Alloc'ing from TILER BUF. (required size = 2666496 B, free space =
27876352 B)
[m3video] ENCLINK_H264:HEAPID:0 USED:13272
[m3video] 7519: ENCODE: Creating CH1 of 720 x 480, pitch = (720, 720) [PROGRESSIVE] [NON-
TILED ], bitrate = 8000 Kbps ...
[m3video] UTILS: MEM: Alloc'ing from TILER BUF. (required size = 4063232 B, free space =
25209856 B)
[m3video] UTILS: MEM: Alloc'ing from TILER BUF. (required size = 4063232 B, free space =
21146624 B)
mount: mounting ubi2:ubifs_volume on /mnt/nand failed: No such device
[m3video] UTILS: MEM: Alloc'ing from TILER BUF. (required size = 2031616 B, free space =
17083392 B)

[host] IpcBitsInLink_tskMain:Entered
[host] 2054: IPC_BITS_IN : Create in progress !!!

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

[host] 2054: SYSTEM: Opening ListMP [VIDEO-M3_IPC_OUT_29] ...

[host] 2056: SYSTEM: Opening ListMP [VIDEO-M3_IPC_IN_29] ...

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

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

[host] 2059: IPC_BITS_IN : Create Done !!!
[m3vpss ] 7621: MP_SCLR: Create in progress !!!
[m3video] ENCLINK_H264:HEAPID:0 USED:11720
[m3vpss ] ws_test: VpsMdrv_scCreate
[m3video] 7606: ENCODE: Creating CH2 of 2560 x 1920, pitch = (2592, 2592) [PROGRESSIVE] [
NON-TILED ], bitrate = 100 Kbps ...

[host] USECASE SETUP DONE
[m3vpss ] ws_test: Vrm_allocResource=11
[m3vpss ] ws_test: Vrm_allocResource00
[m3vpss ] ws_test: Vrm_allocResource=10
[m3vpss ] ws_test: Vrm_allocResource00
[m3vpss ] ws_test: vpsMdrvScAllocResrc
[m3vpss ] ws_test: vpsMdrvScAllocResrc
[m3vpss ] ws_test: VpsMdrv_scCreate= 10=0
[m3vpss ] ws_test: VpsMdrv_scCreate= 101
[m3vpss ] ws_test: VpsMdrv_scCreate= 11
[m3vpss ] 7625: MP_SCLR: Configured to use scalar instance 5 !!!
[m3video] ENCLINK_JPEG:HEAPID:0 USED:4368
[m3vpss ] 7626: MP_SCLR: Create Done !!!
[m3video] 7607: ENCODE: All CH Create ... DONE !!!
[m3vpss ] 7626: DISPLAY: Create in progress !!!
[m3vpss ] DisplayId = 1,DataFormat = 1
[m3vpss ] BP0 displayInstId = 0
[m3video] ENCLINK:HEAPID:0 USED:29688
[m3vpss ] 7627: DISPLAY: 0: Window size 1920x1080, 3840B
[m3vpss ] ws_test: Vrm_allocResource=3
[m3vpss ] ws_test: Vrm_allocResource00
[m3vpss ] 00pFormat = -1896733168
[m3video] 7610: ENCODE: Create ... DONE !!!
[m3vpss ] 7629: DISPLAY: Create Done !!!
[m3video] 7575: VSTAB : Alg Create Done !!!
[m3vpss ] 0: ws_test:DupLink_validateDelayOutQuePrms
[m3video] 7575: VSTAB : Create Done !!!
[m3vpss ] 1: ws_test:DupLink_validateDelayOutQuePrms
[m3video] 7611: IPC_BITS_OUT : Create in progress !!!
[m3vpss ]
[m3vpss ] 7630:ERR::linkID:20000010::channelID:-1::errorCode:-1::FileName:links_common/dup
/dupLink_tsk.c::linuNum:208::errorCondition:((delayPrms->outQueId < pObj->createArgs.numOut
Que) && (pObj->stats.recvCount == 0) && (pObj->delayedOutputQueId == DUP_LINK_DELAYED_OUTPU
T_QUE_INVALID_ID) && (pObj->createArgs.numOutQue > 1))
[m3vpss ] 7632: DISPLAY: Start in progress !!!
[m3video] 7615: IPC_BITS_OUT : Create Done !!!
[m3video] UTILS: MEM: Alloc'ing from TILER BUF. (required size = 204800 B, free space = 1
5051776 B)
[m3video] UTILS: MEM: Alloc'ing from TILER BUF. (required size = 204800 B, free space = 1
4846976 B)
[m3vpss ] 7697: DISPLAY: Start Done !!!
[m3vpss ] 7698: DISPLAY: HDDAC(BP0) : 30 fps, Latency (Min / Max) = ( 255 / 0 ), Callback
Interval (Min / Max) = ( 255 / 0 ) !!!
[m3vpss ] 7698: DISPLAY: UNDERFLOW COUNT: HDMI(BP0) 1, HDDAC(BP0) 0, DVO2(BP1) 1, SDDAC(S
EC1) 1
[m3vpss ] 7698: SYSTEM : FREE SPACE : System Heap = 1142352 B, Mbx = 10237 msgs)
[m3vpss ] 7698: SYSTEM : FREE SPACE : SR0 Heap = 14142592 B (13 MB)
[m3vpss ] 7699: SYSTEM : FREE SPACE : Frame Buffer = 54272 B (0 MB)
[m3vpss ] 7699: SYSTEM : FREE SPACE : Bitstream Buffer = 16543616 B (15 MB)
[m3vpss ] 7700: SYSTEM : FREE SPACE : Tiler Buffer = 13 B (0 MB) - TILER OFF
[m3vpss ] 7628: CAMERA: Start in progress !!!
[m3vpss ] 7628: CAMERA: Start Done !!!

[host]
Application Run Completed
[m3vpss ] 7784: CAMERA: Fields = 2 (fps = 0), Total Resets = 0 (Avg 0 ms per reset)
[m3vpss ] UTILS: MEM: Alloc'ing from TILER BUF. (required size = 7713792 B, free space =
14642176 B)

[host] ITT server task running !!!

[host]
ITT ittServer_run

[host] ITT Server Message initialization successful

[host]
ITT capture task created

[host] DCC server Message ques is open succefully

[host] Setting cmd <1> in message <40b91100>

[host] Posting message <40b91100> in QId <20002>
[m3vpss ] UTILS: MEM: Alloc'ing from TILER BUF. (required size = 2571264 B, free space =
6928384 B)
[m3vpss ] UTILS: MEM: Alloc'ing from TILER BUF. (required size = 1370880 B, free space =
4357120 B)
[m3vpss ] UTILS: MEM: Alloc'ing from TILER BUF. (required size = 5059584 B, free space =
2986240 B)

[host] Response from M3 is : 1
[m3vpss ] Command 1 recived from HOST A8
[m3vpss ] ws_test:frameList.numFrames=3
[m3video] Channel:1 inputframerate:30 targetfps:60
[m3vpss ] ws_test:frameList.numFrames=1
[m3vpss ] ws_test:frameList.numFrames=1
[m3vpss ] ws_test:frameList.numFrames=2
[m3vpss ] ws_test:pFormat->height=1080
[m3video] Channel:0 inputframerate:60 targetfps:60
[m3vpss ] ws_test:status=0
[m3vpss ] UTILS: MEM: Alloc'ing from TILER BUF. (required size = 4147200 B, free space =
2986240 B)
[m3video] Channel:2 inputframerate:60 targetfps:5
[m3vpss ] ws_test:size=4147200
[m3vpss ] ws_test:numFrames=1
[m3vpss ] ws_test:pBaseAddr=-1946102784
[m3vpss ] ws_test:pFormat->height=1080
[m3vpss ] ws_test:status=0
[m3vpss ] Command 2 recived from HOST A8
[m3vpss ] New DCC data of size <33603>
[m3vpss ] Call to VNF_LINK_CMD_UPDATE_DCC 536870980
[m3vpss ] UTILS: MEM: Alloc'ing from TILER BUF. (required size = 4147200 B, free space =
2986240 B)
[m3vpss ] ws_test:size=4147200
[m3vpss ] ws_test:numFrames=1
[m3vpss ] ws_test:pBaseAddr=-1941955584
[m3vpss ] ws_test:pFormat->height=1080
[m3vpss ] ws_test:status=0
[m3vpss ] UTILS: MEM: Alloc'ing from TILER BUF. (required size = 4147200 B, free space =
2986240 B)
[m3vpss ] ws_test:size=4147200
[m3vpss ] ws_test:numFrames=1
[m3vpss ] ws_test:pBaseAddr=0
[m3vpss ] Memory allocation failed due to insufficient free memory
[m3vpss ] 8319: MP_SCLR: Allocation of frame buffer memory fails !!!
[m3vpss ] ws_test:pFormat->height=1080
[m3vpss ] ws_test:status=0
[m3vpss ] UTILS: MEM: Alloc'ing from TILER BUF. (required size = 4147200 B, free space =
2986240 B)
[m3vpss ] ws_test:size=4147200
[m3vpss ] ws_test:numFrames=1
[m3vpss ] ws_test:pBaseAddr=0
[m3vpss ] Memory allocation failed due to insufficient free memory
[m3vpss ] 8322: MP_SCLR: Allocation of frame buffer memory fails !!!
[m3vpss ] ws_test:frameList.numFrames=4
[m3vpss ] 8324: MP_SCLR: - Input Resolution Changed, updating...
[m3vpss ] 8325: MP_SCLR: - Input Resolution Updated
[m3vpss ] ws_test:frameList.numFrames=1
[m3vpss ] 8359: MP_SCLR: - Input Resolution Changed, updating...
[m3vpss ] 8366: MP_SCLR: ERROR could not update channel info!!!
[m3vpss ] 8368: Assertion @ Line: 771 in links_m3vpss/mpSclr/mpSclrLink_drv.c: status ==
FVID2_SOK : failed !!!

[host] Response from M3 is : 1

I modify the config_512M.bld ,but cann"t solve my question!