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.

[DM8168 MCFW]

Other Parts Discussed in Thread: TVP5158

Hi all

     I want to display the picture file in filesystem.  I reference the Vdec_Vdis demo, define  the macro  VDEC_VDIS_ENABLE_IPCFRAMESOUT. But i get the error:

      Assertion at Line no: 1089 in /home/eric/newsdk/dvr_rdk/../ti_tools/syslink/syslink_2_10_02_17_patched/packages/ti/syslink/ipc/hlos/usr/SharedRegion.c: (id < SharedRegion_module->cfg.numEntries) : failed
 ASSERT (ti_vsys.c|Vsys_allocBuf|385)

 The Vsys_allocBuf use sharedRegionId 0 to alloc buffer. 

 The flow is host fread -> ipcFramesOutHostPrm->ipcFramesInVpssFromHostPrm->nsf。  Everytime the host fread task use function "Vdis_getEmptyVideoFrames(&bufList,0);" to get the available buffer, the bulList.numFrames always equal to 0. Why can't get the buffer?   

 

 How to fix the problem?

 

 Thank you!

 Eric

 

  • ipcFramesOutHost does not support allocation of buffers. ipcFramesOutHost is meant to send a physically contiguous buffer allocated by application to be sent to remote core like VPSS.

    You can modify your application to allocate the physically contiguous buffer and then use Vdis_putFullVideoFrames() to send frames to the remote core.

  • hi

    in the DVR demo_vdec_vdis.c,if define macro VDEC_VDIS_ENABLE_IPCFRAMESOUT,its function is video frames A8 -> M3 VPSS  display it.

    i define that macro(it is not defined default),but after run my video frames in the filesystem is not display.

    the log is:


    =========
    Main Menu
    =========

    1: VCAP + VENC + VDEC + VDIS - Progressive SD Encode + Decode
    2: VCAP + VENC + VDIS - SD Encode ONLY
    3: VCAP + VENC + VDEC + VDIS - Progressive HD Encode + Decode
    4: VDEC + VDIS - SD/HD Decode ONLY
    5: VCAP + VDIS - NO Encode or Decode + 4 Channel
    a: 960H DVR usecase

    e: Exit

    Enter Choice: 4

    Sample ini files available in ./demo_ini folder.
    Enter the .ini filename with full path : demo_ini/demo.ini
    *** a new param codec is needed for ini, if you not sure about this
    *** please reference demo_ini/704x576_02_32CH.ini
    *** H264: codec = h264
    *** MPEG4: codec = mpeg4
    *** MJPEG: codec = mjpeg
    *** Four new params numbuf ,displaydelay,tilerEnable,fieldPicture has been added for ini, if not defaults are set

    *** Generate header files ***

    This will take very long time if the file is large.
    - For first time you MUST select YES.
    - If you already have the header file on disk, you can select NO.

    Do you want to generate header ? (YES - y, NO - n) : n

    0: Opening file [/opt/dvr_rdk/ti816x/dm816x_1080p_demo.264] of 1920 x 1080 Codec: h264...
    gVdecVdis_config.numChannels : 1 gVdecVdis_config.chBufSize[0] : 2073600
    File open ... DONE !!!

    [host] MCFW_IPCFRAMES:VdecVdis_ipcFramesSendFxn:Entered...--------------- CHANNEL DETAILS-------------
    Dec Channels => 1
    Disp Channels => 2
    -------------------------------------------
    0: SYSTEM: System Common Init in progress !!!
    0: SYSTEM: IPC init in progress !!!
    14: SYSTEM: CPU [DSP] syslink proc ID is [0] !!!
    14: SYSTEM: CPU [VIDEO-M3] syslink proc ID is [1] !!!
    14: SYSTEM: CPU [VPSS-M3] syslink proc ID is [2] !!!
    14: SYSTEM: CPU [HOST] syslink proc ID is [3] !!!
    14: SYSTEM: Creating MsgQ Heap [IPC_MSGQ_MSG_HEAP_3] ...
    17: SYSTEM: Creating MsgQ [HOST_MSGQ] ...
    19: SYSTEM: Creating MsgQ [HOST_ACK_MSGQ] ...
    20: SYSTEM: Opening MsgQ [DSP_MSGQ] ...
    21: SYSTEM: Opening MsgQ [VIDEO-M3_MSGQ] ...
    21: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] ...
    22: SYSTEM: Notify register to [DSP] line 0, event 15 ...
    23: SYSTEM: Notify register to [VIDEO-M3] line 0, event 15 ...
    24: SYSTEM: Notify register to [VPSS-M3] line 0, event 15 ...
    24: SYSTEM: IPC init DONE !!!
    26: SYSTEM: Creating ListMP [HOST_IPC_OUT_24] in region 0 ...
    28: SYSTEM: Creating ListMP [HOST_IPC_IN_24] in region 0 ...
    30: SYSTEM: ListElem Shared Addr = 0x417dd880
    31: SYSTEM: Creating ListMP [HOST_IPC_OUT_25] in region 0 ...
    33: SYSTEM: Creating ListMP [HOST_IPC_IN_25] in region 0 ...
    35: SYSTEM: ListElem Shared Addr = 0x41812a80
    36: SYSTEM: Creating ListMP [HOST_IPC_OUT_19] in region 0 ...
    39: SYSTEM: Creating ListMP [HOST_IPC_IN_19] in region 0 ...
    40: SYSTEM: ListElem Shared Addr = 0x41847c80
    42: SYSTEM: Creating ListMP [HOST_IPC_OUT_20] in region 0 ...
    44: SYSTEM: Creating ListMP [HOST_IPC_IN_20] in region 0 ...
    46: SYSTEM: ListElem Shared Addr = 0x4188af80
    47: SYSTEM: Creating ListMP [HOST_IPC_OUT_21] in region 0 ...
    49: SYSTEM: Creating ListMP [HOST_IPC_IN_21] in region 0 ...
    51: SYSTEM: ListElem Shared Addr = 0x418ce280
    69: SYSTEM: System Common Init Done !!!
    ch[0], h264
    [host] HDMI Ctrl :Initializing
    [host] HDMI Ctrl :Initialized
    [host] HDMI Ctrl :Sink Connected
    [FBDEV]
    [FBDEV] FB: Starting !!!
    [FBDEV] FB: Opened device [/dev/fb0] (fd=24) !!!
    [FBDEV]
    [FBDEV] Fix Screen Info
    [FBDEV] ---------------
    [FBDEV] Line Length - 2560
    [FBDEV] Physical Address = 8ea00000
    [FBDEV] Buffer Length = 8294400
    [FBDEV]
    [FBDEV]
    [FBDEV] Var Screen Info
    [FBDEV] ---------------
    [FBDEV] Xres - 1280
    [FBDEV] Yres - 720
    [FBDEV] Xres Virtual - 1280
    [FBDEV] Yres Virtual - 720
    [FBDEV] Bits Per Pixel - 16
    [FBDEV] Pixel Clk - 6734
    [FBDEV] Rotation - 0
    [FBDEV]
    [FBDEV]
    [FBDEV] Reg Params Info
    [FBDEV] ---------------
    [FBDEV] region 0, postion 0 x 0, prioirty 1
    [FBDEV] first 1, last 1
    [FBDEV] sc en 0, sten en 0
    [FBDEV] tran en 0, type 0, key 0
    [FBDEV] blend 0, alpha 0
    [FBDEV] bb en 0, alpha 0
    [FBDEV]
    [FBDEV]
    [FBDEV] ### BUF SIZE = 1843200 Bytes !!!
    [FBDEV]
    [FBDEV]
    [FBDEV] Fix Screen Info
    [FBDEV] ---------------
    [FBDEV] Line Length - 2560
    [FBDEV] Physical Address = 8ea00000
    [FBDEV] Buffer Length = 8294400
    [FBDEV]
    [FBDEV]
    [FBDEV] Var Screen Info
    [FBDEV] ---------------
    [FBDEV] Xres - 1280
    [FBDEV] Yres - 720
    [FBDEV] Xres Virtual - 1280
    [FBDEV] Yres Virtual - 720
    [FBDEV] Bits Per Pixel - 16
    [FBDEV] Pixel Clk - 6734
    [FBDEV] Rotation - 0
    [FBDEV]
    [FBDEV]
    [FBDEV] Reg Params Info
    [FBDEV] ---------------
    [FBDEV] region 0, postion 0 x 0, prioirty 1
    [FBDEV] first 1, last 1
    [FBDEV] sc en 0, sten en 0
    [FBDEV] tran en 0, type 0, key 0
    [FBDEV] blend 0, alpha 0
    [FBDEV] bb en 0, alpha 0
    [FBDEV]
    [FBDEV]
    [FBDEV] ### BUF SIZE = 1843200 Bytes !!!
    [FBDEV]
    [FBDEV] grpx_fb_draw ...
    [FBDEV] grpx_fb_draw ... Done !!!
    [FBDEV] FB: Start DONE !!!
    [FBDEV]
    217: MCFW : CPU Revision [ES1.1] !!!

    [host] 220: IPC_BITS_OUT : Create in progress !!!

    [host] IPC_BITSOUT:BitBuffer Alloc.ChID:0,Size:0x9E3400
    [host]
    ******* RingBuf 0 created ********

    [host] IPCBITSOUTLINK:Translated Addr Virt:0x48661080 To Phy:0x90000080
    [host]
    ###Bit buff of size from the SR # 1 : 10368000 / bufsize 2073600, maxQueueDepth 50

    [host] ###Bit buff BasePtr: 48661080 / PhyAddr 90000080

    [host] 221: IPC_BITS_OUT : Create Done !!!
    [m3video] 16433: IPC_BITS_IN : Create in progress !!!
    [m3video] 16433: SYSTEM: Opening ListMP [HOST_IPC_OUT_24] ...
    [m3video] 16433: SYSTEM: Opening ListMP [HOST_IPC_IN_24] ...
    [m3video] 16434: SYSTEM: Opening MsgQ [HOST_MSGQ] ...
    [m3video] 16436: IPC_BITS_IN : Create Done !!!
    [m3video] 16436: DECODE: Create in progress ... !!!
    [m3video] DECLINK_H264:HEAPID:0 USED:4264
    [m3video] DECLINK_H264:HEAPID:3 USED:8937472
    [m3video] 16781: DECODE: Creating CH0 of 1920 x 1080 [PROGRESSIVE] [NON-TILED ],target bitrate = 2000 Kbps ...

    [host] 579: IPC_FRAMES_OUT : Create in progress !!!

    [host] 581: IPC_FRAMES_OUT : Create Done !!!
    [m3video] 16783: DECODE: All CH Create ... DONE !!!
    [m3vpss ] 16787: IPC_IN_M3 : Create in progress !!!
    [m3vpss ] 16787: SYSTEM: Opening ListMP [VIDEO-M3_IPC_OUT_0] ...
    [m3vpss ] 16788: SYSTEM: Opening ListMP [VIDEO-M3_IPC_IN_0] ...
    [m3video] DECLINK:HEAPID:0 USED:4384
    [m3vpss ] 16788: SYSTEM: Opening MsgQ [VIDEO-M3_MSGQ] ...
    [m3video] DECLINK:HEAPID:3 USED:66740224
    [m3vpss ] 16790: IPC_IN_M3 : Create Done !!!
    [m3video] 16786: DECODE: Create ... DONE !!!
    [m3vpss ] 16792: IPC_FRAMES_IN : Create in progress !!!
    [m3video] 16786: IPC_OUT_M3 : Create in progress !!!
    [m3vpss ] 16792: SYSTEM: Opening ListMP [HOST_IPC_OUT_19] ...
    [m3video] 16787: IPC_OUT_M3 : Create Done !!!
    [m3vpss ] 16793: SYSTEM: Opening ListMP [HOST_IPC_IN_19] ...
    [m3vpss ] 16794: SYSTEM: Opening MsgQ [HOST_MSGQ] ...
    [m3vpss ] IPC_FRAMES_IN:HEAPID:0 USED:304
    [m3vpss ] 16796: IPC_FRAMES_IN : Create Done !!!
    [m3vpss ] 16797: MERGE : Create Done !!!
    [m3vpss ] 16797: MP_SCLR: Create in progress !!!
    [m3vpss ] 16799: MP_SCLR: Configured to use scalar instance 4 !!!
    [m3vpss ] 16801: MP_SCLR: Create Done !!!
    [m3vpss ] 16806: DUP : Create Done !!!
    [m3vpss ] 16806: SWMS: Create in progress !!!
    [m3vpss ] UTILS: DMA: Allocated CH (TCC) = 58 (58)
    [m3vpss ] UTILS: DMA: 0 of 1: Allocated PaRAM = 58 (0x49004740)
    [m3vpss ] SWMS: instance 0, sc id 7, start win 0 end win 15
    [m3vpss ] SWMS: instance 1, sc id 4, start win 16 end win 33
    [m3vpss ] 16963: SWMS : VipScReq is FALSE!!!
    [m3vpss ] 16967: SWMS0 : Loading Vertical Co-effs (UPSCALE)x ...
    [m3vpss ] 16967: SWMS0 : Loading Horizontal Co-effs (UPSCALE)x ...
    [m3vpss ] 16967: SWMS : Co-effs Loading ... DONE !!!
    [m3vpss ] 16971: SWMS0 : Loading Vertical Co-effs (UPSCALE)x ...
    [m3vpss ] 16971: SWMS0 : Loading Horizontal Co-effs (UPSCALE)x ...
    [m3vpss ] 16971: SWMS : Co-effs Loading ... DONE !!!
    [m3vpss ] 16971: SWMS : ******* Configuring clock 30 secs...
    [m3vpss ] 16971: SWMS0 : Loading Vertical Co-effs (7/16)x ...
    [m3vpss ] 16971: SWMS0 : Loading Horizontal Co-effs (7/16)x ...
    [m3vpss ] 16972: SWMS : Co-effs Loading ... DONE !!!
    [m3vpss ] 16972: SWMS0 : Loading Vertical Co-effs (7/16)x ...
    [m3vpss ] 16972: SWMS0 : Loading Horizontal Co-effs (7/16)x ...
    [m3vpss ] 16972: SWMS : Co-effs Loading ... DONE !!!
    [m3vpss ]
    [m3vpss ] *** [SWMS0] Mosaic Parameters ***
    [m3vpss ]
    [m3vpss ] Output FPS: 30
    [m3vpss ]
    [m3vpss ] Win | Ch | Input | Input | Input | Input | Output | Output | Output | Output | Low Cost | SWMS | Data | Blank |
    [m3vpss ] Num | Num | Start X, Y | Width x Height | Pitch Y / C | Memory Type | Start X, Y | Width x Height | Pitch Y / C | Memory Type | ON / OFF | Inst | Format| Frame |
    [m3vpss ] ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
    [m3vpss ] 0 | 0 | 0, 0 | 1920 x 1080 | 2048 / 2048 | NON-TILED | 0, 0 | 960 x 540 | 3840 / 0 | NON-TILED | OFF | 0 | 420SP | OFF |
    [m3vpss ] 1 | 255 | 0, 0 | 352 x 264 | 704 / 704 | NON-TILED | 960, 0 | 960 x 540 | 3840 / 0 | NON-TILED | OFF | 1 | 422I | OFF |
    [m3vpss ] 2 | 255 | 0, 0 | 352 x 264 | 704 / 704 | NON-TILED | 0, 540 | 960 x 540 | 3840 / 0 | NON-TILED | OFF | 1 | 422I | OFF |
    [m3vpss ] 3 | 255 | 0, 0 | 352 x 264 | 704 / 704 | NON-TILED | 960, 540 | 960 x 540 | 3840 / 0 | NON-TILED | OFF | 1 | 422I | OFF |
    [m3vpss ]
    [m3vpss ] SWMS:HEAPID:0 USED:288
    [m3vpss ] SWMS:HEAPID:1 USED:60832
    [m3vpss ] SWMS:HEAPID:4 USED:29030400
    [m3vpss ] 16974: SWMS: Create Done !!!
    [m3vpss ] 16975: DISPLAY: Create in progress !!!
    [m3vpss ] 16976: DISPLAY: Create Done !!!
    [m3vpss ] 16978: DISPLAY: Start in progress !!!
    [m3vpss ] 17025: DISPLAY: Start Done !!!
    [m3vpss ] 17025: DISPLAY: HDDAC(BP0) : 42 fps, Latency (Min / Max) = ( 255 / 0 ), Callback Interval (Min / Max) = ( 255 / 0 ) DropCount:0 DispLatency (Min / Max) = ( 8699 / 0 ) !!!
    [m3vpss ] 17025: SWMS: Start in Progress !!!
    [m3vpss ] 17025: SWMS: Start Done !!!
    [m3vpss ] 17025: DISPLAY DRV: HDDAC(BP0) : Q:[2] Display:[2], Repeat:[1], DQ:[0]
    [m3vpss ] 17026: DISPLAY: UNDERFLOW COUNT: HDMI(BP0) 0, HDDAC(BP0) 1, DVO2(BP1) 1, SDDAC(SEC1) 0
    [m3vpss ] 17026: SYSTEM : FREE SPACE : System Heap = 67280 B, Mbx = 10239 msgs)
    [m3vpss ] 17026: SYSTEM : FREE SPACE : SR0 Heap = 8713728 B (8 MB)
    [m3vpss ] 17026: SYSTEM : FREE SPACE : Frame Buffer = 178578304 B (170 MB)
    [m3vpss ] 17026: SYSTEM : FREE SPACE : Bitstream Buffer = 200395648 B (191 MB)
    [m3vpss ] 17026: SYSTEM : FREE SPACE : Tiler Buffer = 224 B (0 MB) - TILER OFF
    opened the yzj.yuv successfully!!!!!!!!!opened the yzj.yuv successfully!!!!!!!!!opened the yzj.yuv successfully!!!!!!!!!opened the yzj.yuv successfully!!!!!!!!!
    [host] MCFW_IPCFRAMES:Received start signal...
    =============
    Run-Time Menu
    =============

    1: Capture Settings
    2: Encode Settings
    3: Decode Settings
    4: Display Settings
    5: Audio Capture <TVP5158> & Encode <AAC-LC, G711> demo
    6: Change Playback Channel <valid only if capture/playback is active>
    7: Audio encode demo <File In/Out>
    8: Audio decode demo <File In/Out>

    i: Print detailed system information
    s: Core Status: Active/In-active
    f: Switch IVA Channel Map

    e: Stop Demo

    Enter Choice:
    =============
    Run-Time Menu
    =============

    1: Capture Settings
    2: Encode Settings
    3: Decode Settings
    4: Display Settings
    5: Audio Capture <TVP5158> & Encode <AAC-LC, G711> demo
    6: Change Playback Channel <valid only if capture/playback is active>
    7: Audio encode demo <File In/Out>
    8: Audio decode demo <File In/Out>

    i: Print detailed system information
    s: Core Status: Active/In-active
    f: Switch IVA Channel Map

    e: Stop Demo

    Enter Choice: [m3vpss ] AVSYNC:AVSYNC_LINK_CMD_SET_FIRST_VIDPTS successConfig:DisplayID[0],ChID[0],FirstPTS[0]

    [host] MCFW_IPCFRAMES:VIDFRAMELIST_INFO:EmptyFrameList numFullFrames:4
    [host] MCFW_IPCFRAMES:VIDFRAME_INFO:chNum:0 fid:0 frameWidth:720 frameHeight:480 timeStamp:0 virtAddr[0][0]:0xccba85a3 phyAddr[0][0]:0xbf7b0a00
    [host] MCFW_IPCFRAMES:VIDFRAME_INFO:chNum:0 fid:0 frameWidth:720 frameHeight:480 timeStamp:0 virtAddr[0][0]:0x2d599883 phyAddr[0][0]:0xbf859600
    [host] MCFW_IPCFRAMES:VIDFRAME_INFO:chNum:0 fid:0 frameWidth:720 frameHeight:480 timeStamp:0 virtAddr[0][0]:0x23812c2c phyAddr[0][0]:0xbf902200
    [host] MCFW_IPCFRAMES:VIDFRAME_INFO:chNum:0 fid:0 frameWidth:720 frameHeight:480 timeStamp:0 virtAddr[0][0]:0x521261bc phyAddr[0][0]:0xbf9aae00 [m3vpss ] AVSYNC:Media Time Base:0,FirstVidPTS:0,FirstAudPTS:-1
    DEMO: HDMI TV/Monitor connected !!!
    DEMO: TV Detected - HDMI interface !!!
    DEMO: INFO : Resolution set to 1080P60 !!!