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.

RDK_4 "8CH <D1+CIF> VCAP + VENC + VDEC + VDIS - Progressive SD Encode + Decode" Demo gives data for Single channel only

Hello,

We have a customize board based on DM8148 and we are using RDK-4 on it.

Our application is "8 channel capture + encode + dump". We used default link provided in RDK.

When I run default application for 8 chennel, it gives data for channel 1 only.

Please help us on this as soon as possible.

Please find attached log for Reference.8015.log_512.txt

  • How many files do you see in the specified folder once the demo is exited. Ideally you should see 3 encoded files. We dont enable file write of all the channels by default.

    File write functionality is defined in demo_vcap_venc_vdec_vdis_bits_rdwr.c file. Did you do any code changes in demo code. If not could you come back with the answers of below queries.

    Can you please check value of variable fObj->fwriteEnableBitMask variable just before VcapVencVdecVdis_ipcBitsWriteBitsToFile() function call. This field hold the mask value that decide file write for selective channels.

  • Hello Ritesh,

    Yes I am getting 3 encoded files , but all of for channel 0.

    No, I didn't change any thing in demo_vcap_venc_vdec_vdis_bits_rdwr.c file.

    Value of  fObj->fwriteEnableBitMask  = 273.

    What change I have to make for dumping all 8 channels data?

  • Please modified below macro in demo_vcap_venc_vdec_vdis_bits_rdwr.h file and recompile the demo code.

    from

    #define MCFW_IPC_BITS_FWRITE_ENABLE_BITMASK_DEFAULT   (MCFW_IPC_BITS_FWRITE_ENABLE_BITMASK_CHANNEL_0_CHANNEL4_CHANNEL_8)

    to

    #define MCFW_IPC_BITS_FWRITE_ENABLE_BITMASK_DEFAULT MCFW_IPC_BITS_FWRITE_ENABLE_BITMASK_ALLCHANNELS

  • Hi Ritesh,

    I make change you suggested "#define MCFW_IPC_BITS_FWRITE_ENABLE_BITMASK_DEFAULT MCFW_IPC_BITS_FWRITE_ENABLE_BITMASK_ALLCHANNELS"

    But, This gives me following error.

    root@dm814x:/opt/dvr_rdk/ti814x# ./run.sh

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

     1: 4CH VCAP + VENC + VDEC + VDIS  - Progressive SD Encode + Decode
     2: 8CH <D1+CIF> VCAP + VENC + VDEC + VDIS  - Progressive SD Encode + Decode
     3: 16CH RT VCAP + VENC + VDEC + VDIS  - Progressive SD Encode + Decode
     4: 16CH NRT <D1+CIF> VCAP + VENC + VDEC + VDIS  - Progressive SD Encode + Decode
     5:               VDEC + VDIS  - SD/HD Decode ONLY


     e: Exit

     Enter Choice: 2
    --------------- CHANNEL DETAILS-------------
    Capture Channels => 8
    Enc Channels => Primary 8, Secondary 8
    Dec Channels => 8
    Disp Channels => 16
    -------------------------------------------
     0: SYSTEM: System Common Init in progress !!!
     1: SYSTEM: IPC init in progress !!!
     54: SYSTEM: CPU [DSP] syslink proc ID is [0] !!!
     54: SYSTEM: CPU [VIDEO-M3] syslink proc ID is [1] !!!
     54: SYSTEM: CPU [VPSS-M3] syslink proc ID is [2] !!!
     54: SYSTEM: CPU [HOST] syslink proc ID is [3] !!!
     57: SYSTEM: Creating MsgQ Heap [IPC_MSGQ_MSG_HEAP_3] ...
     63: SYSTEM: Creating MsgQ [HOST_MSGQ] ...
     65: SYSTEM: Creating MsgQ [HOST_ACK_MSGQ] ...
     66: SYSTEM: Opening MsgQ [DSP_MSGQ] ...
     66: SYSTEM: Opening MsgQ [VIDEO-M3_MSGQ] ...
     67: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] ...
     69: SYSTEM: Notify register to [DSP] line 0, event 15 ...
     71: SYSTEM: Notify register to [VIDEO-M3] line 0, event 15 ...
     71: SYSTEM: Notify register to [VPSS-M3] line 0, event 15 ...
     72: SYSTEM: IPC init DONE !!!
     81: SYSTEM: Creating ListMP [HOST_IPC_OUT_24] in region 0 ...
     83: SYSTEM: Creating ListMP [HOST_IPC_IN_24] in region 0 ...
     85: SYSTEM: ListElem Shared Addr = 0x407e1880
     86: SYSTEM: Creating ListMP [HOST_IPC_OUT_25] in region 0 ...
     87: SYSTEM: Creating ListMP [HOST_IPC_IN_25] in region 0 ...
     89: SYSTEM: ListElem Shared Addr = 0x40816a80
     93: SYSTEM: Creating ListMP [HOST_IPC_OUT_19] in region 0 ...
     95: SYSTEM: Creating ListMP [HOST_IPC_IN_19] in region 0 ...
     96: SYSTEM: ListElem Shared Addr = 0x4084bc80
     97: SYSTEM: Creating ListMP [HOST_IPC_OUT_20] in region 0 ...
     98: SYSTEM: Creating ListMP [HOST_IPC_IN_20] in region 0 ...
     100: SYSTEM: ListElem Shared Addr = 0x4088ef80
     101: SYSTEM: Creating ListMP [HOST_IPC_OUT_21] in region 0 ...
     102: SYSTEM: Creating ListMP [HOST_IPC_IN_21] in region 0 ...
     104: SYSTEM: ListElem Shared Addr = 0x408d2280
     124: SYSTEM: System Common Init Done !!!
     [host] HDMI Ctrl :Initializing
     [host] HDMI Ctrl : ERROR :Could not open HDMI driver

     Enable file write (YES - y / NO - n) : y

     File write ENABLED !!!


     Enter file write path : /media/mmcblk0/

     Selected file write path [/media/mmcblk0/]


     [host] Partition Free Size for Path[/media/mmcblk0//VBITS_HDR_0_LAYER_0.bin] = [0x133B600]
     [host] Max File size per channel:0x4CED8

     AUDIO: Do you enable Audio <Y/N>: N
     [FBDEV]
     [FBDEV] FB: Starting !!!
     [FBDEV] FB: Opened device [/dev/fb0] (fd=405) !!!
     [FBDEV]
     [FBDEV] Fix Screen Info
     [FBDEV] ---------------
     [FBDEV] Line Length - 1600
     [FBDEV] Physical Address = 86a00000
     [FBDEV] Buffer Length = 2097152
     [FBDEV]
     [FBDEV]
     [FBDEV] Var Screen Info
     [FBDEV] ---------------
     [FBDEV] Xres - 800
     [FBDEV] Yres - 600
     [FBDEV] Xres Virtual - 800
     [FBDEV] Yres Virtual - 600
     [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 = 960000 Bytes !!!
     [FBDEV]
     [FBDEV] FB: Opened device [/dev/fb2] (fd2=406) !!!
     [FBDEV]
     [FBDEV] Fix Screen Info
     [FBDEV] ---------------
     [FBDEV] Line Length - 1440
     [FBDEV] Physical Address = 86c00000
     [FBDEV] Buffer Length = 1048576
     [FBDEV]
     [FBDEV]
     [FBDEV] Var Screen Info
     [FBDEV] ---------------
     [FBDEV] Xres - 720
     [FBDEV] Yres - 480
     [FBDEV] Xres Virtual - 720
     [FBDEV] Yres Virtual - 480
     [FBDEV] Bits Per Pixel - 16
     [FBDEV] Pixel Clk - 18518
     [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 = 691200 Bytes !!!
     [FBDEV]
     [FBDEV]
     [FBDEV] Fix Screen Info
     [FBDEV] ---------------
     [FBDEV] Line Length - 1600
     [FBDEV] Physical Address = 86a00000
     [FBDEV] Buffer Length = 2097152
     [FBDEV]
     [FBDEV]
     [FBDEV] Var Screen Info
     [FBDEV] ---------------
     [FBDEV] Xres - 800
     [FBDEV] Yres - 600
     [FBDEV] Xres Virtual - 800
     [FBDEV] Yres Virtual - 600
     [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 = 960000 Bytes !!!
     [FBDEV]
     [FBDEV]
     [FBDEV] Fix Screen Info
     [FBDEV] ---------------
     [FBDEV] Line Length - 1440
     [FBDEV] Physical Address = 86c00000
     [FBDEV] Buffer Length = 1048576
     [FBDEV]
     [FBDEV]
     [FBDEV] Var Screen Info
     [FBDEV] ---------------
     [FBDEV] Xres - 720
     [FBDEV] Yres - 480
     [FBDEV] Xres Virtual - 720
     [FBDEV] Yres Virtual - 480
     [FBDEV] Bits Per Pixel - 16
     [FBDEV] Pixel Clk - 18518
     [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 = 691200 Bytes !!!
     [FBDEV]
     [FBDEV] grpx_fb_draw ...
     [FBDEV] grpx_fb_draw ... Done !!!
     [FBDEV] grpx_fb_draw ...
     [FBDEV] grpx_fb_draw ... Done !!!
     [FBDEV] FB: Start DONE !!!
     [FBDEV]

    ********* Entered usecase 8CH <810x> Enc/Dec OSD Enabled SCD Enabled

     6397: MCFW  : CPU Revision [ES2.1] !!!
     VCAP: DEVICE-0 (0x40781080): Device not found !!!

    ****** Segmentation fault caught ....
    Faulty address is 0xbf50d760, called from 0x42b60
    Totally Obtained 0 stack frames. signal number =11
     Signal number = 11, Signal errno = 0
     SI code = 1 (Address not mapped to object)
     Fault addr = 0xbf50d760
    [bt] Execution path:
    root@dm814x:/opt/dvr_rdk/ti814x#

  • Can you just set that macro to below value and check? 

    #define MCFW_IPC_BITS_FWRITE_ENABLE_BITMASK_DEFAULT 0xFF

  • Hi Ritesh,

    Thanks for reply, This solved my issue.

    But, I am getting following warning, and may be due to this warning all video file contains data for few frames.

    [host] IPC_BITSINLINK:!WARNING!.Commands not being processed by link.TimeSinceLastAlloc:160,TimeSinceLastFree:160


    Can you please give any suggestion?