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.

About DM8127 IPNC encode streamer setting!

Genius 3400 points

Hi all,

        we buy a DM8127 IPNC. And we read the sources and have no find single H.264 or Mjpeg setting. And it only define the following use case. It we want only get single H.264 or single Mjpeg(10M), how to modify the source? Can you give us some advices? Thanks a lot!

/**
    \brief System use-case's

    Inter-connection of sub-system's and internal HW processing
    block's depends on the system use-case that is selected.
*/
typedef enum
{

    VSYS_USECASE_MULTICHN_TRISTREAM_LOWPWR,
    /**< Video Capture to Video Encode use-case for 1080p60+D1+JPEG. \n
        This is for Survillence tri stream IPNC use-case.
     */

    VSYS_USECASE_MULTICHN_TRISTREAM_FULLFTR,
    /**< Video Capture to Video Encode use-case for 1080p60+D1+JPEG. \n
        This is for Survillence tri stream IPNC use-case with VNF applied on first stream.
        This is a full feature usecase with VNF and Facedetect applied
     */

    VSYS_USECASE_MULTICHN_TRISTREAM_DSP,
    /**< Video Capture to Video Encode use-case for 1080p60+D1+MJPEG(pass-through DSP). \n
        This is for Survillence triple stream IPNC use-case while the MJPEG stream passes through DSP.
     */
    
    VSYS_USECASE_SINGLECHN_DISPLAY,
    /**< Video Capture to Display use-case for 1080p60. \n
        This is for Survillence Single stream IPNC use-case.
     */

    VSYS_USECASE_MAX
    /**< Maximum use-case ID */

} VSYS_USECASES_E;

  •  ti_mcfw_ipnc_main.c

    In Function App_runDemo()

    try changing the vsysParams.systemUseCase = VSYS_USECASE_MULTICHN_TRISTREAM_LOWPWR and 

    And appropraitely modify the the file multich_tristream_lowPower.c to remove the Secodnary H.264 Encoding and MJPEG Encoding.

    Regards,

    Venu

  • Thanks at first!

    I will try to modify and we also have a  few questions  to ask.

    1.I read the datasheet of sensor(MT9J003_DS_B), and find it have 1080P mode(60 fps using HiSPi I/F), I think the DM8127 is using this mode, Is it correctly? And how to change the sensor output mode? 

        The data flow is:

         Sensor data--->FPGA---->ISP, if we can set the sensor to output other mode(full frame), did the FPGA have limitation of the resulation?

    2. in the file multich_tristream_lowPower.c,

    /*------------------------------ TRIPLE OUT <1080p + D1 + MJPEG> ----------------------------------

                                    Capture (YUV420)
             RSZA     RSZB
                                    1080P60   D1_30
                                      |   |
                           ___________|   |
                           |              |
           DUP(0)------|   |
           (1)    -----------
            |     |
               |        |
         SIMCOP   MERGE
         (MJPEG)     |
            |     |
          BITSOUT(VPS)  IPCM3OUT(VPS)
            |     |
            |     |
           BTSIN(A8)     IPCM3IN(VID)
                 |
               |
               H264ENC
               |
               |
              BITSOUT (VID)
                 |
                 |
              BITSIN (A8)
    ------------------------------------------------------------------------------------------*/

     In the source of IPNC, I cannot see any codes about the RSZ setting. Can you tell me?

  • Anybody have good idea? or give us some advice?

  • Hello gomo,

    New version 2.0.0 is available, please migrate to this

    For issue 1), can you please what mode you want to switch to, and what is input mode you are trying.

    Currently we have Hispi interface via fpga

    Fir issue 2), resizer setting are done iss_02_xx_Xx folder, what are changes you are planning to do there so that we can give precise input

    Regards,

    Raghu

  • Hi Raghu,
            Thanks you very much at first,we will update to V2.0 at once.
            Our plan is:
            1)The camera can output more big size resolution(such as 2432x2048, or full) single h.264 or Mjpeg through switch;
            2)DM8127 Sensor output full resolution(15fps, MT9J003) data, it's settd in issdrv_mt9j003Api.c, we set sensor register(0x340=2891,0x342=3694) , and the fps can down to 15fps, but we cannot sure the FPGA output resulation ;
            3)Our owner camera will use CCD sensor, so we must program to run our own work mode in DM8127 IPNC at first, and evaluate the performance of DM8127.
     
          our question:
          1.DM8127 H.264 encode performace.
              In the document of H264_Encoder_HDVICP2_Datasheet(SPRS594-NOV 2011), it said "Supports arbitrary resolution from 96x80 to 2048x2048", but in the document of H264_Encoder_HDVICP2_UserGuide(SPRUGN2 Novemeber 2011, 1.3 Supported Services and Features), it said "Supports H.264 baseline, high and main profile up to level 4.2 with arbitrary resolution from 96x80 to 4096x4096"
              which one is correct?
         2.DM8127 Mjpeg encode performace.
              All the reference of DM8127 have no introduce about it. If we only use DM8127 to encode MJPEG(5M), how much the fps?
         3.Data Flow
                   Sensor ----------------------> FPGA--------------------> ISS
               (0x340=2891,    
               0x342=3694)
               it's out 3664x2748 ?      FPGA out is 3664x2748 ?      RSA (2432x2048) ?

           BTW, we don't care of high fps,  5M, h.264 15fps or 5M, Mjpeg 10fps, it can meet with command. It's perfect if it can output together.
           Thanks a lot.

     

  • gomo said:
    In the document of H264_Encoder_HDVICP2_Datasheet(SPRS594-NOV 2011), it said "Supports arbitrary resolution from 96x80 to 2048x2048", but in the document of H264_Encoder_HDVICP2_UserGuide(SPRUGN2 Novemeber 2011, 1.3 Supported Services and Features), it said "Supports H.264 baseline, high and main profile up to level 4.2 with arbitrary resolution from 96x80 to 4096x4096"

    One in the User Guide is correct. Codec can encode 4Kx4K. We would correct the documentation.

  • On the MJPEG Encode performance you can follow the below forum post:

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/t/157286.aspx#570778

  • I can get single MJPEG. I modify the codes as follows:

    the follow codes are in  the multich_tristream_lowPower.c file.

            /* IPC Bits Links */
    //System_linkCreate(gVencModuleContext.ipcBitsOutRTOSId, &ipcBitsOutVideoPrm, sizeof(ipcBitsOutVideoPrm));
    //System_linkCreate(gVencModuleContext.ipcBitsInHLOSId, &ipcBitsInHostPrm0, sizeof(ipcBitsInHostPrm0));
    but the Background  of the MJPEG  stream is very black and a little blue..
    when the camera output h264(1080p or D1 or both ) and mjpeg ,the h264 stream and mjpeg stream  are all ok.
    That is why? Can you give us some advices? Thanks a lot!
    attach the pic.

  • Hello Gomo,

    Is your usecase is to encode MJPEG only and stream MJPEG only? Then your usecase is not achived by the modifications done.

    The lowpower usecase by default encodes all three (1080p H264, D1 H264 and 1080p MJPEG) and stream only what ever is requested. 

    If your usecase is to stream only MJPEG, run the default with out modification and try seeing the MJPEG stream as you are seeing now.

    Regards,

    Venu

  • gomo said:
    /* IPC Bits Links */
    //System_linkCreate(gVencModuleContext.ipcBitsOutRTOSId, &ipcBitsOutVideoPrm, sizeof(ipcBitsOutVideoPrm));
    //System_linkCreate(gVencModuleContext.ipcBitsInHLOSId, &ipcBitsInHostPrm0, sizeof(ipcBitsInHostPrm0));

    Actually by this change the A8 side of the system is not receiving any information from M3 side to stream.

    hence no streaming is happening..

    Can you exactly tell what the usecase is?

    Is it MJPEG Encode only and MJPEG Streaming only?

    Regards,

    Venu

  • Here is an example how the usecase needs to be modified. 3581.ExampleOfUsecaseModification.zip

    Please do the changes appropriately for your usecase.

    Regards,

    Venu

  • hi Venugopala

      

    Venugopala said:

    On the MJPEG Encode performance you can follow the below forum post:

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/t/157286.aspx#570778

    This issue is also posted by me, because the table is hard to understand, I post the above issue.

    I just want to know the DM8127 MJPEG performance, how much MPixels/Sencond, just like DM365 give us the introduce. Can you give us?

     

  • Thanks you reply.

    Venugopala said:

    /* IPC Bits Links */
    //System_linkCreate(gVencModuleContext.ipcBitsOutRTOSId, &ipcBitsOutVideoPrm, sizeof(ipcBitsOutVideoPrm));
    //System_linkCreate(gVencModuleContext.ipcBitsInHLOSId, &ipcBitsInHostPrm0, sizeof(ipcBitsInHostPrm0));

    Actually by this change the A8 side of the system is not receiving any information from M3 side to stream.

    hence no streaming is happening..
    Can you exactly tell what the usecase is?

    Is it MJPEG Encode only and MJPEG Streaming only?

    Regards,

    Venu
    [/quote]

     Our Command is:

    1.Camera work two mode, it is switch by web; One mode, MJPEG Encode only and MJPEG Streaming only; Another mode, H.264 Encode only and H.264 Streaming only;

    2.The Mjpeg or H.264 stream can output more big resolution(such as 5M), and the frame rate is not high(15fps is enough to us).

    Thanks again.

  • hi Venugopala,

             Acorrding your codes, we modified and run the new program. the output Mjpeg data is same with our previous modified, only see blue light.

    Attach the modified file. 3817.multich_tristream_lowPower-mjpeg+h264(or mjpeg only).zip

    Thanks again.

  • Here is one liner you are looking for:

    JPEG performance of 300MPixels/sec can be realized on DM8127. When HDVICP2 is clocked to the 500MHz and no other codec running on HDVICP2.

  • Hi Gomo,

    I went through reviewing the code modifications and appears OK. Can you send the all the logs on the Serial terminal?

    As well can you move to the latest IPNC s/w release of 2.0.0.

    Regards,

    Venu

  • Thanks your reply!

    I had updated to V2.0, and modified the code of multich_tristream_lowPower.c, we can got two H.264 stream, but cannot got single H.264 stream(pic is still blue light). 

    1) camera can encode two H.264 stream and output h264(1080p)+h264(D1), and the streams are ok. The modified codes as follows:

        dupPrm.numOutQue = 1; //2
    dupPrm.outQueParams[0].nextLink = mergeId[CAM_STREAM_MERGE_IDX];
    //dupPrm.outQueParams[1].nextLink = mergeId[CAM_STREAM_MERGE_IDX];
    dupPrm.notifyNextLink = TRUE;
    /* Merge Link params */
    mergePrm[CAM_STREAM_MERGE_IDX].numInQue = 2; //3
    mergePrm[CAM_STREAM_MERGE_IDX].inQueParams[0].prevLinkId = dupId;
    mergePrm[CAM_STREAM_MERGE_IDX].inQueParams[0].prevLinkQueId = 0;
    mergePrm[CAM_STREAM_MERGE_IDX].inQueParams[1].prevLinkId =
    gVcamModuleContext.cameraId;
    mergePrm[CAM_STREAM_MERGE_IDX].inQueParams[1].prevLinkQueId = 1;
    //mergePrm[CAM_STREAM_MERGE_IDX].inQueParams[2].prevLinkId = dupId;
    //mergePrm[CAM_STREAM_MERGE_IDX].inQueParams[2].prevLinkQueId = 1;
    2) While modified to encode single and output single h264, the output stream data is same with our previous modified, only see blue light. The modified codes are as follows:

    /* Camera Link params */ CameraLink_CreateParams_Init(&cameraPrm); cameraPrm.outQueParams[0].nextLink = dupId; //cameraPrm.outQueParams[1].nextLink = mergeId[CAM_STREAM_MERGE_IDX]; /* This is for TVP5158 Audio Channels - Change it to 16 if there are 16 * audio channels connected in cascade */ cameraPrm.numAudioChannels = 1; cameraPrm.numVipInst = 1; cameraPrm.tilerEnable = FALSE; cameraPrm.vsEnable = gUI_mcfw_config.vsEnable; pCameraInstPrm = &cameraPrm.vipInst[0]; pCameraInstPrm->vipInstId = SYSTEM_CAMERA_INST_VP_CSI2; pCameraInstPrm->videoDecoderId = MultiCh_getSensorId(gUI_mcfw_config.sensorId); pCameraInstPrm->inDataFormat = SYSTEM_DF_YUV420SP_VU; pCameraInstPrm->standard = SYSTEM_STD_1080P_60; pCameraInstPrm->numOutput = 1; //2 /* First stream */ pCameraOutPrm = &pCameraInstPrm->outParams[0]; pCameraOutPrm->dataFormat = SYSTEM_DF_YUV420SP_VU; pCameraOutPrm->scEnable = FALSE; pCameraOutPrm->scOutWidth = 1920; pCameraOutPrm->scOutHeight = 1080; pCameraOutPrm->outQueId = 0; /* Second stream */ pCameraOutPrm = &pCameraInstPrm->outParams[1]; pCameraOutPrm->dataFormat = SYSTEM_DF_YUV420SP_VU; pCameraOutPrm->scEnable = FALSE; pCameraOutPrm->scOutWidth = 720; pCameraOutPrm->scOutHeight = 480; pCameraOutPrm->outQueId = 1; /* 2A config */ cameraPrm.t2aConfig.n2A_vendor = gUI_mcfw_config.n2A_vendor; cameraPrm.t2aConfig.n2A_mode = gUI_mcfw_config.n2A_mode; /* Dup Link params */ dupPrm.inQueParams.prevLinkId = gVcamModuleContext.cameraId; dupPrm.inQueParams.prevLinkQueId = 0; dupPrm.numOutQue = 1; //2 dupPrm.outQueParams[0].nextLink = mergeId[CAM_STREAM_MERGE_IDX]; //dupPrm.outQueParams[1].nextLink = mergeId[CAM_STREAM_MERGE_IDX]; dupPrm.notifyNextLink = TRUE; /* Merge Link params */ mergePrm[CAM_STREAM_MERGE_IDX].numInQue = 1; //3 mergePrm[CAM_STREAM_MERGE_IDX].inQueParams[0].prevLinkId = dupId; mergePrm[CAM_STREAM_MERGE_IDX].inQueParams[0].prevLinkQueId = 0; //mergePrm[CAM_STREAM_MERGE_IDX].inQueParams[1].prevLinkId = // gVcamModuleContext.cameraId; //mergePrm[CAM_STREAM_MERGE_IDX].inQueParams[1].prevLinkQueId = 1; //mergePrm[CAM_STREAM_MERGE_IDX].inQueParams[2].prevLinkId = dupId; //mergePrm[CAM_STREAM_MERGE_IDX].inQueParams[2].prevLinkQueId = 1;
    Thanks a lot!

    encode 
  • Gomo,

    Good that you moved to Ver2.0.

    The code changes looks fine. I guess in the usecase you are trying the 2A algorithm is not kicking in which is making the image black and blue.

    Can you send the log which comes on the serial terminal?

    Regards,

    Venu

  • hi venugopala,

             Attach the terminal output, it's the single H.264 running.Thanks a lot!

    numid=1,iface=MIXER,name='PCM Playback Volume'
      ; type=INTEGER,access=rw---R--,values=2,min=0,max=127,step=0
      : values=127,127
      | dBscale-min=-63.50dB,step=0.50dB,mute=0
    ERROR: Module cmemk does not exist in /proc/modules
     [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000
     [m3video] Remote Debug Shared Memory @ 0xbff05020
     [m3vpss ] Remote Debug Shared Memory @ 0xbff0a040
    SysLink version : 2.00.04.83
    SysLink module created on Date:Feb 14 2012 Time:14:20:27
    Trace enabled
    Trace SetFailureReason enabled
    CMEMK module: built on Feb 14 2012 at 14:25:02
      Reference Linux version 2.6.37
      File /data/datalocal_videoapps01/user/kudva/DM812x/IPNetCam/ti_tools/linuxutils_3_21_00_03/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
    allocated heap buffer 0xc8000000 of size 0x4000000
    cmemk initialized
    /dev/mem opened.
    data 2
                 BW Phy Addr : 0x48180d00 Data : 0x00030000
                 AW Phy Addr : 0x48180d00 Data : 0x00030002
    data 3
                 BW Phy Addr : 0x48180d10 Data : 0x00000007
                 AW Phy Addr : 0x48180d10 Data : 0x00000003
    data 2
                 BW Phy Addr : 0x48180700 Data : 0x00000001
                 AW Phy Addr : 0x48180700 Data : 0x00000002
    data 2
                 BW Phy Addr : 0x48180720 Data : 0x00070000
                 AW Phy Addr : 0x48180720 Data : 0x00070002
    data 2
                 BW Phy Addr : 0x48180724 Data : 0x00030000
                 AW Phy Addr : 0x48180724 Data : 0x00000002
    data 60020
                 BW Phy Addr : 0x48140924 Data : 0x000e0020
                 AW Phy Addr : 0x48140924 Data : 0x000e0020
    data 60020
                 BW Phy Addr : 0x48140928 Data : 0x000e0020
                 AW Phy Addr : 0x48140928 Data : 0x000e0020
    data 60001
                 BW Phy Addr : 0x48140c18 Data : 0x000e0001
                 AW Phy Addr : 0x48140c18 Data : 0x000e0001
    data 60001
                 BW Phy Addr : 0x48140c1c Data : 0x000e0001
                 AW Phy Addr : 0x48140c1c Data : 0x000e0001
    data 2
                 BW Phy Addr : 0x48181564 Data : 0x00000002
                 AW Phy Addr : 0x48181564 Data : 0x00000002
    data 2
                 BW Phy Addr : 0x48181568 Data : 0x00030000
                 AW Phy Addr : 0x48181568 Data : 0x00000002
                 Phy Addr : 0x48181560 Data : 0x00000002
    data 2
                 BW Phy Addr : 0x48181560 Data : 0x00000002
                 AW Phy Addr : 0x48181560 Data : 0x00000002
    data 60002
                 BW Phy Addr : 0x48140aac Data : 0x00040002
                 AW Phy Addr : 0x48140aac Data : 0x00040002
    data 60002
                 BW Phy Addr : 0x48140ab0 Data : 0x00060002
                 AW Phy Addr : 0x48140ab0 Data : 0x00060002
    data 60002
                 BW Phy Addr : 0x48140ab8 Data : 0x00040002
                 AW Phy Addr : 0x48140ab8 Data : 0x00040002
    data 60020
                 BW Phy Addr : 0x48140a58 Data : 0x000c0080
                 AW Phy Addr : 0x48140a58 Data : 0x000c0080
    data 60080
                 BW Phy Addr : 0x48140a60 Data : 0x000c0080
                 AW Phy Addr : 0x48140a60 Data : 0x000c0080
    data 60020
                 BW Phy Addr : 0x48140a64 Data : 0x000c0080
                 AW Phy Addr : 0x48140a64 Data : 0x000c0080
    data 60020
                 BW Phy Addr : 0x48140a68 Data : 0x000c0080
                 AW Phy Addr : 0x48140a68 Data : 0x000c0080
    data 60002
                 BW Phy Addr : 0x48140aa8 Data : 0x00040002
                 AW Phy Addr : 0x48140aa8 Data : 0x00040002
    data 60002
                 BW Phy Addr : 0x48140aa4 Data : 0x00040002
                 AW Phy Addr : 0x48140aa4 Data : 0x00040002
    data 60002
                 BW Phy Addr : 0x48140aa0 Data : 0x00040002
                 AW Phy Addr : 0x48140aa0 Data : 0x00040002
    data 60002
                 BW Phy Addr : 0x48140a9c Data : 0x00060002
                 AW Phy Addr : 0x48140a9c Data : 0x00060002
    data 60002
                 BW Phy Addr : 0x48140a98 Data : 0x00060002
                 AW Phy Addr : 0x48140a98 Data : 0x00060002
    data 60002
                 BW Phy Addr : 0x48140a94 Data : 0x00060002
                 AW Phy Addr : 0x48140a94 Data : 0x00060002
    data 60002
                 BW Phy Addr : 0x48140a90 Data : 0x00060002
                 AW Phy Addr : 0x48140a90 Data : 0x00060002
    data 60002
                 BW Phy Addr : 0x48140a8c Data : 0x00060002
                 AW Phy Addr : 0x48140a8c Data : 0x00060002
    data 60002
                 BW Phy Addr : 0x48140a6c Data : 0x000e0002
                 AW Phy Addr : 0x48140a6c Data : 0x000e0002
    data 60002
                 BW Phy Addr : 0x48140a70 Data : 0x000c0002
                 AW Phy Addr : 0x48140a70 Data : 0x000c0002
    data 60002
                 BW Phy Addr : 0x48140a74 Data : 0x000e0002
                 AW Phy Addr : 0x48140a74 Data : 0x000e0002
    data 60002
                 BW Phy Addr : 0x48140a78 Data : 0x000e0002
                 AW Phy Addr : 0x48140a78 Data : 0x000e0002
    data 0
                 BW Phy Addr : 0x411f4004 Data : 0x0000000e
                 AW Phy Addr : 0x411f4004 Data : 0x00000000
    data 0
                 BW Phy Addr : 0x411f200Unhandled fault: external abort on non-linefetch (0x1018) at 0x40331000
    4 Data : 0x00000001
                 AW Phy Addr : 0x411f2004 Data : 0x00000000
    data 1
                 BW Phy Addr : 0x41140084 Data : 0x00000001
                 AW Phy Addr : 0x41140084 Data : 0x00000001
    data 1
                 BW Phy Addr : 0x411a0084 Data : 0x00000001
                 AW Phy Addr : 0x411a0084 Data : 0x00000001
    data 1
                 BW Phy Addr : 0x41160034 Data : 0x00000001
                 AW Phy Addr : 0x41160034 Data : 0x00000001
    data 1
                 BW Phy Addr : 0x41121ff0 Data : 0x00000001
                 AW Phy Addr : 0x41121ff0 Data : 0x00000001
    data 1
                 BW Phy Addr : 0x41131fe4 Data : 0x00000000
                 AW Phy Addr : 0x41131fe4 Data : 0x00000001
    data 1
                 BW Phy Addr : 0x411e002c Data : 0x00000000
                 AW Phy Addr : 0x411e002c Data : 0x00000001
    data 1
                 BW Phy Addr : 0x481c52ec Data : 0x00000001
                 AW Phy Addr : 0x481c52ec Data : 0x00000001
    secss put in low power state
    data 1
                 BW Phy Addr : 0x48180900 Data : 0x00000001
                 AW Phy Addr : 0x48180900 Data : 0x00000001
    data 0
                 BW Phy Addr : 0x48180f00 Data : 0x00030000
                 AW Phy Addr : 0x48180f00 Data : 0x00030000
                 Phy Addr : 0x48180f10 Data : 0x00000000
    data 2
                 BW Phy Addr : 0x4818052c Data : 0x00000002
                 AW Phy Addr : 0x4818052c Data : 0x00000002
    data 2
                 BW Phy Addr : 0x48180508 Data : 0x00000302
                 AW Phy Addr : 0x48180508 Data : 0x00000302
    data 2
                 BW Phy Addr : 0x48180520 Data : 0x00000002
                 AW Phy Addr : 0x48180520 Data : 0x00000002
    data 2
                 BW Phy Addr : 0x48180524 Data : 0x00000002
                 AW Phy Addr : 0x48180524 Data : 0x00000002
    data 2
                 BW Phy Addr : 0x48180528 Data : 0x00000002
                 AW Phy Addr : 0x48180528 Data : 0x00000002
                 Phy Addr : 0x48180508 Data : 0x00000302
                 Phy Addr : 0x48180520 Data : 0x00000002
                 Phy Addr : 0x48180524 Data : 0x00000002
                 Phy Addr : 0x48180528 Data : 0x00000002
                 Phy Addr : 0x4c0000e4 Data : 0x00173209
    data 173209
                 BW Phy Addr : 0x4c0000e4 Data : 0x00173209
                 AW Phy Addr : 0x4c0000e4 Data : 0x00173209
                 Phy Addr : 0x4d0000e4 Data : 0x00173209
    data 173209
                 BW Phy Addr : 0x4d0000e4 Data : 0x00173209
                 AW Phy Addr : 0x4d0000e4 Data : 0x00173209
                 Phy Addr : 0x4c0000e4 Data : 0x00173209
    data 173209
                 BW Phy Addr : 0x4c0000e4 Data : 0x00173209
                 AW Phy Addr : 0x4c0000e4 Data : 0x00173209
                 Phy Addr : 0x4d0000e4 Data : 0x00173209
    data 173209
                 BW Phy Addr : 0x4d0000e4 Data : 0x00173209
                 AW Phy Addr : 0x4d0000e4 Data : 0x00173209
    DDR IOs RX is shutdown 
    data 1
                 BW Phy Addr : 0x48180400 Data : 0x00000001
                 AW Phy Addr : 0x48180400 Data : 0x00000001
    data 0
                 BW Phy Addr : 0x48180a00 Data : 0x00030000
                 AW Phy Addr : 0x48180a00 Data : 0x00030000
                 Phy Addr : 0x48180a04 Data : 0x00000000
    	PRCM for TPPSS Initialization in Progress 
    data fd
                 BW Phy Addr : 0x48180b10 Data : 0x0000009f
                 AW Phy Addr : 0x48180b10 Data : 0x000000fd
    data 2
                 BW Phy Addr : 0x4818050c Data : 0x00000001
                 AW Phy Addr : 0x4818050c Data : 0x00000002
    data 2
                 BW Phy Addr : 0x48180554 Data : 0x00070000
                 AW Phy Addr : 0x48180554 Data : 0x00070002
                 Phy Addr : 0x4818050c Data : 0x00007302
                 Phy Addr : 0x48180554 Data : 0x00070002
    	PRCM for TPPSS Initialization is Done 
    data eafffffe
    Bus error
     Setting DMM priority for [DUCATI  ] to [1] ( 0x4e000624 = 0x09000000 )
     Setting DMM priority for [HDVICP0 ] to [0] ( 0x4e000634 = 0x00000008 )
    Creat queue id:0
    queue id:0
    FileMngThread created
    Creat queue id:32769
    queue id:32769
    AlramThread created
    Share memory init success
    IPNC_2.00.00 (a0875405@bangvideoapps01) (gcc version 4.3.3 (Sourcery G+ 
    Creat queue id:65538
    queue id:65538
    queue id:65538
    Creat queue id:98307
    queue id:98307
    queue id:32769
    
    CPU is TI812x
    
    *****************************************************************
    
        IPNC BUILD VERSION: DM8127 IPNC RDK VERSION 02.00.00.16	
    
    *****************************************************************
    
    ./bin/ipnc_rdk_mcfw.out   TRISTREAM APPRO2A AEWB HIGH_SPEED1 HIGH_SPEED2 &
    Attached to slave procId 2.
    Loaded file ./firmware/ipnc_rdk_fw_m3vpss.xem3 on slave procId 2.
    Started slave procId 2.
     [m3vpss ] ***** SYSTEM  : Frequency <ORG> - 200000000, <NEW> - 200000000
    After Ipc_loadcallback status [0x00000000]
     [m3vpss ] notify_attach  rtnVal  0
     [m3vpss ] initProxyServer  rtnVal  0
     [m3vpss ]  
     [m3vpss ]  *** UTILS: CPU KHz = 400000 Khz ***
     [m3vpss ]  
     [m3vpss ]  97: SYSTEM  : System Common Init in progress !!!
     [m3vpss ]  97: SYSTEM: IPC init in progress !!!
     [m3vpss ]  98: SYSTEM: Attaching to [HOST] ... 
     [m3vpss ]  1097: SYSTEM: Attaching to [HOST] ... 
     [m3vpss ]  1100: SYSTEM: Attaching to [HOST] ... SUCCESS !!!
     [m3vpss ]  1100: SYSTEM: Attaching to [VIDEO-M3] ... 
    After Ipc_startcallback status [0x097d2000]
    Attached to slave procId 1.
    Loaded file ./firmware/ipnc_rdk_fw_m3video.xem3 on slave procId 1.
    Started slave procId 1.
    After Ipc_loadcallback status [0x00000000]
     [m3video] ***** SYSTEM  : Frequency <ORG> - 200000000, <NEW> - 200000000
     [m3video]  
     [m3video]  *** UTILS: CPU KHz = 400000 Khz ***
     [m3video]  
     [m3video]  1291: SYSTEM  : System Common Init in progress !!!
     [m3video]  1291: SYSTEM: IPC init in progress !!!
     [m3video]  1291: SYSTEM: Attaching to [HOST] ... 
     [m3vpss ]  2100: SYSTEM: Attaching to [VIDEO-M3] ... 
    After Ipc_startcallback status [0x00000000]
     [m3video]  2291: SYSTEM: Attaching to [HOST] ... 
     [m3video]  2294: SYSTEM: Attaching to [HOST] ... SUCCESS !!!
     [m3video]  2294: SYSTEM: Attaching to [VPSS-M3] ... 
     [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000
     [m3video] Remote Debug Shared Memory @ 0xbff05020
     [m3vpss ] Remote Debug Shared Memory @ 0xbff0a040
     [m3vpss ]  3100: SYSTEM: Attaching to [VIDEO-M3] ... 
     [m3video]  3294: SYSTEM: Attaching to [VPSS-M3] ... 
     [m3video]  4100: SYSTEM: Attaching to [VPSS-M3] ... SUCCESS !!!
     [m3vpss ]  4100: SYSTEM: Attaching to [VIDEO-M3] ... 
     [m3video]  4101: SYSTEM: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...
     [m3vpss ]  4100: SYSTEM: Attaching to [VIDEO-M3] ... SUCCESS !!!
     [m3vpss ]  4101: SYSTEM: Creating MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...
     [m3vpss ]  4101: SYSTEM: Creating MsgQ [VPSS-M3_MSGQ] ...
     [m3vpss ]  4101: SYSTEM: Creating MsgQ [VPSS-M3_ACK_MSGQ] ...
     [m3vpss ]  4103: SYSTEM: Notify register to [HOST] line 0, event 12 ... 
     [m3vpss ]  4104: SYSTEM: Notify register to [VIDEO-M3] line 0, event 12 ... 
     [m3vpss ]  4104: SYSTEM: IPC init DONE !!!
     [m3vpss ]  4114: MEM: Shared Region 3: Base = 0xb0000000, Length = 0x0e900000 (233 MB) 
     [m3vpss ]  4114: MEM: Shared Region 1: Base = 0x89000000, Length = 0x03800000 (56 MB) 
     [m3vpss ]  4116: SYSTEM  : System Common Init Done !!!
     [m3vpss ]  4116: SYSTEM  : System VPSS Init in progress !!!
     [m3vpss ]  4117: SYSTEM : HDVPSS Drivers Version: HDVPSS_01_00_01_36
     [m3vpss ]  4117: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_0] in region 0 ...
     [m3vpss ]  4117: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_0] in region 0 ...
     [m3vpss ]  4118: SYSTEM: ListElem Shared Addr = 0xbeb03e00
     [m3vpss ]  4120: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_1] in region 0 ...
     [m3vpss ]  4120: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_1] in region 0 ...
     [m3vpss ]  4121: SYSTEM: ListElem Shared Addr = 0xbeb06f00
     [m3vpss ]  4134: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_24] in region 0 ...
     [m3vpss ]  4135: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_24] in region 0 ...
     [m3vpss ]  4135: SYSTEM: ListElem Shared Addr = 0xbeb0a000
     [m3vpss ]  4138: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_25] in region 0 ...
     [m3vpss ]  4138: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_25] in region 0 ...
     [m3vpss ]  4138: SYSTEM: ListElem Shared Addr = 0xbeb29600
     [m3vpss ]  4145: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_28] in region 0 ...
     [m3vpss ]  4146: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_28] in region 0 ...
     [m3vpss ]  4146: SYSTEM: ListElem Shared Addr = 0xbeb48c00
     [m3vpss ]  4148: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_29] in region 0 ...
     [m3vpss ]  4149: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_29] in region 0 ...
     [m3vpss ]  4149: SYSTEM: ListElem Shared Addr = 0xbeb5e600
     [m3vpss ]  4152: SYSTEM  : Initializing Links !!! 
     [m3vpss ]  4152: SYSTEM  : Heap Free Space (System = 899656 bytes, FrmBuf = 244318080 bytes,
     [m3vpss ]          BitBuf = 58720128 bytes, Mbx = 10240 msgs) 
     [m3vpss ]  4185: SYSTEM  : Initializing Links ... DONE !!! 
     [m3vpss ] Received character 's'
     [m3vpss ]  4185: SYSTEM  : System VPSS Init Done !!!
     [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000
     [m3video] Remote Debug Shared Memory @ 0xbff05020
     [m3vpss ] Remote Debug Shared Memory @ 0xbff0a040
     [m3video]  5101: SYSTEM: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...
     [m3video]  5101: SYSTEM: Creating MsgQ [VIDEO-M3_MSGQ] ...
     [m3video]  5102: SYSTEM: Creating MsgQ [VIDEO-M3_ACK_MSGQ] ...
     [m3video]  5104: SYSTEM: Notify register to [HOST] line 0, event 12 ... 
     [m3video]  5104: SYSTEM: Notify register to [VPSS-M3] line 0, event 12 ... 
     [m3video]  5104: SYSTEM: IPC init DONE !!!
     [m3video]  5114: MEM: Shared Region 3: Base = 0xb0000000, Length = 0x0e900000 (233 MB) 
     [m3video]  5115: MEM: Shared Region 1: Base = 0x89000000, Length = 0x03800000 (56 MB) 
     [m3video]  5117: SYSTEM  : System Common Init Done !!!
     [m3video]  5117: SYSTEM  : System Video Init in progress !!!
     [m3video]  5117: SYSTEM: Creating ListMP [VIDEO-M3_IPC_OUT_0] in region 0 ...
     [m3video]  5118: SYSTEM: Creating ListMP [VIDEO-M3_IPC_IN_0] in region 0 ...
     [m3video]  5118: SYSTEM: ListElem Shared Addr = 0xbeb74000
     [m3video]  5120: SYSTEM: Creating ListMP [VIDEO-M3_IPC_OUT_1] in region 0 ...
     [m3video]  5121: SYSTEM: Creating ListMP [VIDEO-M3_IPC_IN_1] in region 0 ...
     [m3video]  5121: SYSTEM: ListElem Shared Addr = 0xbeb77100
     [m3video]  5132: SYSTEM: Creating ListMP [VIDEO-M3_IPC_OUT_28] in region 0 ...
     [m3video]  5132: SYSTEM: Creating ListMP [VIDEO-M3_IPC_IN_28] in region 0 ...
     [m3video]  5133: SYSTEM: ListElem Shared Addr = 0xbeb7a200
     [m3video]  5135: SYSTEM: Creating ListMP [VIDEO-M3_IPC_OUT_29] in region 0 ...
     [m3video]  5135: SYSTEM: Creating ListMP [VIDEO-M3_IPC_IN_29] in region 0 ...
     [m3video]  5136: SYSTEM: ListElem ShDMA: Module install successful, device major num = 250 
    ared Addr = 0xbeDRV: Module install successful
    b8fc00
     [m3videDRV: Module built on Feb 20 2012 16:19:30 
    o]  5138: HDVICP: Doing PRCM for IVAHD[0] ... 
     [m3video]  5138: HDVICP: PRCM for IVAHD[0] ... DONE.
     [m3video]  5139: SYSTEM  : Initializing Links !!! 
     [m3video]  5139: SYSTEM  : Heap Free Space (System = 2089624 bytes, FrmBuf = 244318080 bytes,
     [m3video]          BitBuf = 58720128 bytes, Mbx = 10240 msgs) 
     [m3video]  5182: SYSTEM  : Initializing Links ... DONE !!! 
     [m3video] Received character 's'
     [m3video]  5183: SYSTEM  : System Video Init Done !!!
    /dev/mem opened.
                 Phy Addr : 0x48180e00 Data : 0x00030000
                 Phy Addr : 0x48180e10 Data : 0x00000007
                 Phy Addr : 0x48180e04 Data : 0x00000000
                 Phy Addr : 0x48180e14 Data : 0x00000000
                 Phy Addr : 0x48180800 Data : 0x00000001
                 Phy Addr : 0x48180820 Data : 0x00070000
                 Phy Addr : 0x48180824 Data : 0x00030000
    data 1
                 BW Phy Addr : 0x48180800 Data : 0x00000001
                 AW Phy Addr : 0x48180800 Data : 0x00000001
    data 0
                 BW Phy Addr : 0x48180e00 Data : 0x00030000
                 AW Phy Addr : 0x48180e00 Data : 0x00030000
                 Phy Addr : 0x48180e04 Data : 0x00000000
                 Phy Addr : 0x48180e00 Data : 0x00030000
                 Phy Addr : 0x48180e10 Data : 0x00000007
                 Phy Addr : 0x48180e04 Data : 0x00000000
                 Phy Addr : 0x48180e14 Data : 0x00000000
                 Phy Addr : 0x48180800 Data : 0x00000001
                 Phy Addr : 0x48180820 Data : 0x00070000
                 Phy Addr : 0x48180824 Data : 0x00030000
    
     [host] Application Load Completed
    Vsys_allocBuf - addr = 0x40c5c000,size = 65011712
    
     [host] MCFW_IPCBITS:App_streamSysInit:virt addr of 85000000 cir buffer  is 40c5c000
    ##########pInfo->totalsize 61865984
    MemMng_memcpy_open:OSA_dmaOpen passed with ch id = 4
    CacheMng_MemCpy_open:OSA_dmaOpen passed with ch id = 8
    Creat queue id:131076
    queue id:131076
    queue id:65538
    
     [host] MCFW_IPCBITS:App_ipcBitsRecvStreamFxn:Entered...Vsys_allocBuf - addr = 0x45480000,size = 682
    DCC Default File Intialization Done!
     0: SYSTEM: System Common Init in progress !!!
     1: SYSTEM: IPC init in progress !!!
     11: SYSTEM: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...
     12: SYSTEM: Creating MsgQ [HOST_MSGQ] ...
     14: SYSTEM: Creating MsgQ [HOST_ACK_MSGQ] ...
     15: SYSTEM: Opening MsgQ [VIDEO-M3_MSGQ] ...
     16: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] ...
     17: SYSTEM: Notify register to [VIDEO-M3] line 0, event 12 ... 
     17: SYSTEM: Notify register to [VPSS-M3] line 0, event 12 ... 
     18: SYSTEM: IPC init DONE !!!
     19: SYSTEM: Creating ListMP [HOST_IPC_OUT_28] in region 0 ...
     21: SYSTEM: Creating ListMP [HOST_IPC_IN_28] in region 0 ...
     22: SYSTEM: ListElem Shared Addr = 0x45726600
     23: SYSTEM: Creating ListMP [HOST_IPC_OUT_29] in region 0 ...
     25: SYSTEM: Creating ListMP [HOST_IPC_IN_29] in region 0 ...
     27: SYSTEM: ListElem Shared Addr = 0x4573c000
     29: SYSTEM: Creating ListMP [HOST_IPC_OUT_24] in region 0 ...
     31: SYSTEM: Creating ListMP [HOST_IPC_IN_24] in region 0 ...
     32: SYSTEM: ListElem Shared Addr = 0x45751a00
     33: SYSTEM: Creating ListMP [HOST_IPC_OUT_25] in region 0 ...
     35: SYSTEM: Creating ListMP [HOST_IPC_IN_25] in region 0 ...
     37: SYSTEM: ListElem Shared Addr = 0x45771000
     37: SYSTEM: System Common Init Done !!!
    
    ********** LOW POWER USECASE ********
    **** Entered Tri Streaming usecase - H264 1080p @60fps + H264 D1 @30fps + MJPEG 1080p @5fps ********
    
     38: MCFW  : CPU Revision [ES1.0] !!! 
     38: MCFW  : Detected [UNKNOWN] Board !!! 
     38: MCFW  : Base Board Revision [UNKNOWN] !!! 
     [m3vpss ]  5454: CAMERA: VIP0 PortA camera mode is [ 8-bit, Non-mux Embedded Sync] !!! 
     [m3vpss ] Stream ID 0: chId = 0 VpsUtils_queCreate.
     [m3vpss ] DCC server task running 
     [m3video]  6005: SYSTEM: Opening ListMP [VPSS-M3_IPC_OUT_0] ...
     [m3video]  6005: SYSTEM: Opening ListMP [VPSS-M3_IPC_IN_0] ...
     [m3video]  6006: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] ...
    
     [host] IpcBitsInLink_tskMain:Entered
     [host]  643: IPC_BITS_IN   : ListMPOpen start !!!
    
     [host]  644: SYSTEM: Opening ListMP [VIDEO-M3_IPC_OUT_28] ...
     645: SYSTEM: Opening ListMP [VIDEO-M3_IPC_IN_28] ...
    
     [host]  647: IPC_BITS_IN   : ListMPOpen done !!!
    
     [host]  649: IPC_BITS_IN   : System_linkGetInfo done !!!
    
     [host] USECASE SETUP DONE
     [m3video] HEAPID:0	USED:107592
    
     [host] 
    Application Run Completed
     [m3vpss ]  6197 [m3video]  Channel:0 inputframerate:60 targetfps:60
    
     [host] MCFW_IPCBITS: Callback function:App_ipcBitsInCbFxn
     [host] MCFW_IPCBITS:App_ipcBitsRecvStreamFxn:INFO: periodic print..ITT server task running !!!
    
     ITT ittServer_run
    ITT Server Message initialization successful
    
     ITT capture task created
    DCC server Message ques is open succefully
    Setting cmd <1> in message <45484c80>
    Posting message <45484c80> in QId <20002> 
     [m3vpss ] Command 1 recived from HOST A8 
    Response from M3 is : 1
    Server Socket created with ID <22> 
     [m3vpss ] ********************************************************************
     [m3vpss ]         APPRO AEWB TRIAL VERSION (LIMITATION is 1 DAY in 60fps)
     [m3vpss ]    For the formal release PLEASE CONTACT http://www.appropho.com !!!
     [m3vpss ] ********************************************************************
    ApproDrvInit: 7
    queue id:131076
    func_get_mem.mem_info.addr = 0x85000000
    func_get_mem.mem_info.size = 0x3b00000
    
     [host] MCFW_IPCBITS: Callback function:App_ipcBitsInCbFxn
     [host] MCFW_IPCBITS:App_ipcBitsRecvStreamFxn:INFO: periodic print..ApproDrvExit: 7
    Error: WaitStreamReady Fail.
    Error: SemWait: Invalid Semaphore handler
    Error: SemRelease: Invalid Semaphore handler
    Error: SemWait: Invalid Semaphore handler
    
    Force IDR on Channel: 0
    Error: SemRelease: Invalid Semaphore handler
    SystemInit success
    Schedule manager init success
    queue id:0
    umount: /mnt/mmc: not mounted
    FAT: bogus number of reserved sectors
    VFS: Can't find a valid FAT filesystem on dev mmcblk0.
    mount: wrong fs type, bad option, bad superblock on /dev/mmcblk0,
           missing codepage or other error
           In some cases useful info is found in syslog - try
           dmesg | tail  or so
    
    killall: dhcpcd: no process killed
    rm: cannot remove '/var/run/dhcpcd-eth0.pid': No such file or directory
    net_search_gateway:eth0, 2AA8C0, 0, 1
    net_search_gateway:eth0, 0, 22AA8C0, 3
    dns=202.106.0.20
    net_search_gateway:eth0, 2AA8C0, 0, 1
    net_search_gateway:eth0, 0, 22AA8C0, 3
    dns=202.106.0.20
    g_file_storage gadget: No serial-number string provided!
    g_file_storage gadget: File-backed Storage Gadget, version: 1 September 2010
    g_file_storage gadget: Number of LUNs=1
    g_file_storage gadget-lun0: ro=0, nofua=0, file: /dev/sbulla
    ApproDrvInit: 8
    queue id:131076
    func_get_mem.mem_info.addr = 0x85000000
    func_get_mem.mem_info.size = 0x3b00000
    Initializing...
    ...done initializing
    Play this stream using the URL:
    	rtsp://192.168.42.84:8555/PSIA/Streaming/channels/0?videoCodecType=MJPEG
    ApproDrvInit: 9
    ApproDrvInit: 10
    queue id:131076
    func_get_mem.mem_info.addr = 0x85000000
    func_get_mem.mem_info.size = 0x3b00000
    Initializing...
    ...done initializing
    Play this stream using the URL:
    	rtsp://192.168.42.84:8557/PSIA/Streaming/channels/2?videoCodecType=H.264
    ApproDrvInit: 2
    queue id:131076
    func_get_mem.mem_info.addr = 0x85000000
    func_get_mem.mem_info.size = 0x3b00000
    Initializing...
    ...done initializing
    queue id:131076
    func_get_mem.mem_info.addr = 0x85000000
    func_get_mem.mem_info.size = 0x3b00000
    Initializing...
    ...done initializing
    Play this stream using the URL:
    	rtsp://192.168.42.84:8556/PSIA/Streaming/channels/2?videoCodecType=H.264
    Play this stream using the URL:
    	rtsp://192.168.42.84:8553/PSIA/Streaming/channels/1?videoCodecType=MPEG4
    ApproDrvInit: 6
    queue id:131076
    func_get_mem.mem_info.addr = 0x85000000
    func_get_mem.mem_info.size = 0x3b00000
    Initializing...
    ...done initializing
    Play this stream using the URL:
    	rtsp://192.168.42.84:8554/PSIA/Streaming/channels/1?videoCodecType=MPEG4
    main 154
    ApproDrvInit: 3
    queue id:131076
    main 158
    main 163
    queue id:0
    main 168
    queue id:32769
    main 174
    main 178
    main 182
    main 186
    main 194
    main 205
    main 212
    main 224
    main 242
    main 246
    [18/Mar/2011:05:44:11 +0000] boa: server version Boa/0.94.13
    [18/Mar/2011:05:44:11 +0000] boa: server built Feb 20 2012 at 16:14:12.
    [18/Mar/2011:05:44:11 +0000] boa: starting server pid=1191, port 80
    main 252
    queue id:0
    queue id:0
    UDPString=uuid:Upnp-TVEmulator-1_0-00_0082792596</UDN>
    
    Upnp port is 0
    UPnP Initialized OK ip=192.168.42.84, port=0
    desc_doc_url = http://192.168.42.84/tvdevicedesc.xml
    UpnpRegisterRootDevice failure.
    error code = -107
    device advertisement failure.
    root@DM812x_IPNC:/opt/zjp#  [m3vpss ]  66238: CAMERA: Fields = 1802 (fps = 30), Total Resets = 0 (Avg 0 ms per reset)
     [m3video]  ==================== EncLink_PrintDetails ==================== 
     [m3video] 	66452: HDVICP-ID:0
     [m3video] 		totalAcquire2wait in msec:65795151
     [m3video] 		totalWait2Isr in msec:   27056
     [m3video] 		totalIsr2Done in msec:      50
     [m3video] 		totalWait2Done in msec:   27106
     [m3video] 		totalDone2Release in msec:       0
     [m3video] 		totalAcquire2Release in msec:       0
     [m3video] 		totalAcq2acqDelay in msec:       0
     [m3video] 		totalElapsedTime in msec:       0
     [m3video] 		numAccessCnt:       0
     [m3video] 		IVA-FPS :       0
     [m3video] 	66453: HDVICP-ID:1
     [m3video] 		totalAcquire2wait in msec:       0
     [m3video] 		totalWait2Isr in msec:       0
     [m3video] 		totalIsr2Done in msec:       0
     [m3video] 		totalWait2Done in msec:       0
     [m3video] 		totalDone2Release in msec:       0
     [m3video] 		totalAcquire2Release in msec:       0
     [m3video] 		totalAcq2acqDelay in msec:       0
     [m3video] 		totalElapsedTime in msec:       0
     [m3video] 		numAccessCnt:       0
     [m3video] 		IVA-FPS :       0
     [m3video] 	66454: HDVICP-ID:2
     [m3video] 		totalAcquire2wait in msec:       0
     [m3video] 		totalWait2Isr in msec:       0
     [m3video] 		totalIsr2Done in msec:       0
     [m3video] 		totalWait2Done in msec:       0
     [m3video] 		totalDone2Release in msec:       0
     [m3video] 		totalAcquire2Release in msec:       0
     [m3video] 		totalAcq2acqDelay in msec:       0
     [m3video] 		totalElapsedTime in msec:       0
     [m3video] 		numAccessCnt:       0
     [m3video] 		IVA-FPS :       0
     [m3video]  
     [m3video]  *** ENCODE Statistics *** 
     [m3video]  
     [m3video]  Elasped Time           : 60 secs
     [m3video]  
     [m3video]  
     [m3video]  CH  | In Recv In Skip In User  Out Latency  
     [m3video]  Num | FPS     FPS     Skip FPS FPS Min / Max
     [m3video]  --------------------------------------------
     [m3video]    0 |      30       0        0  30 255 / 66404
     [m3video]  
     [m3video]  ================================================================= 
    Force IDR on Channel: 1
    Usecase is Active !!! 
    
    

  • Hi Gomo,

    My two cents here:

    Can you root cause what is prompting these few lines of error?

    Error: WaitStreamReady Fail.
    Error: SemWait: Invalid Semaphore handler
    Error: SemRelease: Invalid Semaphore handler
    Error: SemWait: Invalid Semaphore handler
    
    Error: SemRelease: Invalid Semaphore handler
    
    
    Regards,
    Venu
  • hi venu,

        I modified the multich_tristream_lowPower.c to single H.264, but not modified the function of Init_StreamEnv();
       Because the default value of pConfig -> nStreamType is 2, so the following function will exit.
       if(WaitStreamReady(pConfig -> nStreamType) != 0) {
           ApproDrvExit(); 
            __E("WaitStreamReady Fail.\n");
           return -1;
        }
     SetDisplayValue(pConfig -> nDisplay);
     SetImage2AVendor(pConfig -> nAEWswitch);
     SetImage2AType(pConfig -> nAEWtype);
     Set2APriority(pConfig -> expPriority);
     SetTvSystem(pConfig -> imagesource);

      I modified the above sources and The camera can output single H.264;
      And the following steps:
      1)Output single MJPEG;
      2)Change to more big resolution.

      When meetting problem, I will post issue again. Thanks a lot!

  • hi venu,
        When modify to multich_tristream_lowPower.c to single Mjpeg, I meet problem again.Now I describe the process.
        1) Cut off the D1 H.264, we can get two 1080P H.264, can not get 1080P H.264 + 1080P Mjpeg, just see the "The first mode" of pic;
        2) Cut off the D1 and one 1080P 60fps, we can single 1080P H.264, can not signal 1080P Mjpeg, just see the "The second mode" of pic;
        3) I test another combination, such as D1 MJPEG and two 1080P H.264, they all work well.
        So I get a result: if I want to output Mjpeg stream, It's must set to tristream. Is it correctly? Or give me some advice?

        Another questions
        1) where do it control the MJPEG frames to 5? I modify the function of MjpegLink_codecCreate(), It do not become effective.
     pChObj->frameSkipModulo = 1; //12;               /* Default value
                                                                                      * of
                                                                                      * frameSkipCounter
                                                                                       */
        2) In lowPower mode of IPNC2.0, The Mjpeg encode is also in VENC, but in IPNC1.8, it's finished by SIMCOP(FullFeature mode also use it IPNC 2.0)? what's the difference?
     
        Thanks a lot!

  • Hi Gomo,

    I think when ever you arecuting out D1, you are facing issue. That is issue occurs whenever following is true in usecase file. But nothing to do with MJPEGE.

    pCameraInstPrm->numOutput = 1;

    This is a bug which we also identified which would be fixed in the next release.

    Regards,

    Venu

  • Let me answer the second question first:

    In IPNC1.8,  MJPEG encoding is always done by SIMCOP.

    In IPNC2.0, MJPEG encoding is done by SIMCOP in FULL FEATURE mode where as MJPEG encoding is done by HDVICP2/IVAHD in Low Power mode where SIMCOP is totally not clocked.

    Coming to the First Question of controlling, MJPEG Encoding frame rate, as your usecase in a variant of Low Power Mode you should look into the encLink which does the encoding on IVAHD. Esp encLink_jpeg*.*

    In MJPEG Encoding link on SIMCOP, this is controlled by pChObj->frameSkipModulo = inputFrameRate/targetFrameRate;

    In MJPEG Encoding on HDVICP2/IVAHD, this is controlled by EncLink_doSkipFrame() which depends on the further two variables of inputFrameRate and targetFrameRate.

    Regards,

    Venu

  • Thanks for your quick reply!

    I modified the fullfeature usecase to get 1080P MJPEG and D1 H.264, and also modified pChObj->frameSkipModulo = 20,  It's not become effective, the skip fps + fps = Total fps. I don't unstand. I modifyed pChObj->frameSkipModulo = 1, the result is same.

    Attache the source and log file.  Thanks a lot.

    
    U-Boot 2010.06 (Feb 14 2012 - 13:45:58) DM812x_IPNC_2.00.00
    
    TI8148-GP rev 2.1
    
    ARM clk: 600MHz
    DDR clk: 400MHz
    IVA clk: 450MHz
    ISS clk: 400MHz
    DSP clk: 400MHz
    DSS clk: 200MHz
    
    DRAM:  512 MiB
    NAND:  HW ECC Hamming Code selected
    256 MiB
    Using default environment
    
    The 2nd stage U-Boot will now be auto-loaded
    Please do not interrupt the countdown till TI8148_EVM prompt if 2nd stage is already flashed
    Hit any key to stop autoboot:  2  1  0 
    
    NAND read: device 0 offset 0x20000, size 0x40000
     262144 bytes read: OK
    ## Starting application at 0x81000000 ...
    
    
    U-Boot 2010.06 (Feb 14 2012 - 13:46:30) DM812x_IPNC_2.00.00
    
    TI8148-GP rev 2.1
    
    ARM clk: 600MHz
    DDR clk: 400MHz
    IVA clk: 450MHz
    ISS clk: 400MHz
    DSP clk: 400MHz
    DSS clk: 200MHz
    
    I2C:   ready
    DRAM:  512 MiB
    NAND:  HW ECC Hamming Code selected
    256 MiB
    MMC:   OMAP SD/MMC: 0, ON-BOARD SDIO: 1
                              .:;rrr;;.                   
                        ,5#@@@@#####@@@@@@#2,             
                     ,A@@@hi;;;r5;;;;r;rrSG@@@A,          
                   r@@#i;:;s222hG;rrsrrrrrr;ri#@@r        
                 :@@hr:r;SG3ssrr2r;rrsrsrsrsrr;rh@@:      
                B@H;;rr;3Hs;rrr;sr;;rrsrsrsrsrsr;;H@B     
               @@s:rrs;5#;;rrrr;r#@H:;;rrsrsrsrsrr:s@@    
              @@;;srs&X#9;r;r;;,2@@@rrr:;;rrsrsrsrr;;@@   
             @@;;rrsrrs@MB#@@@@@###@@@@@@#rsrsrsrsrr;;@@  
            G@r;rrsrsr;#X;SX25Ss#@@#M@#9H9rrsrsrsrsrs;r@G 
            @9:srsrsrs;2@;:;;:.X@@@@@H::;rrsrsrsrsrsrr:3@ 
           X@;rrsrsrsrr;XAi;;:&@@#@Bs:rrsrsrsrsrsrsrsrr;@X
           @#;rsrsrsrsrr;r2ir@@@###::rrsrsrsrsrsrsrsrsr:@@
           @A:rrsrsrsrr;:2@29@@M@@@;:;rrrrsrsrsrsrsrsrs;H@
           @&;rsrsrsrr;A@@@@@@###@@@s::;:;;rrsrsrsrsrsr;G@
           @#:rrsrsrsr;G@5Hr25@@@#@@@#9XG9s:rrrrsrsrsrs:#@
           M@;rsrsrsrs;r@&#;::S@@@@@@@M@@@@Grr:;rsrsrsr;@#
           :@s;rsrsrsrr:M#Msrr;;&#@@@@@@@@@@H@@5;rsrsr;s@,
            @@:rrsrsrsr;S@rrrsr;:;r3MH@@#@M5,S@@irrsrr:@@ 
             @A:rrsrsrsrrrrrsrsrrr;::;@##@r:;rH@h;srr:H@  
             ;@9:rrsrsrsrrrsrsrsrsr;,S@Hi@i:;s;MX;rr:h@;  
              r@B:rrrrsrsrsrsrsrr;;sA@#i,i@h;r;S5;r:H@r   
               ,@@r;rrrsrsrsrsrr;2BM3r:;r:G@:rrr;;r@@,    
                 B@Mr;rrrrsrsrsr@@S;;;rrr:5M;rr;rM@H      
                  .@@@i;;rrrrsrs2i;rrrrr;r@M:;i@@@.       
                    .A@@#5r;;;r;;;rrr;r:r#AsM@@H.         
                       ;&@@@@MhXS5i5SX9B@@@@G;            
                           :ihM#@@@@@##hs,                
    
    Date: 2011-03-17 (Thursday)    Time: 19:03:20
    Net:   Detected MACID:0:c:c:a0:ff:fa
    cpsw
    Hit any key to stop autoboot:  3  2  1  0 
    
    Loading from nand0, offset 0x280000
       Image Name:   Linux-2.6.37_DM812x_IPNC_2.00.00
       Created:      2012-02-14   8:21:36 UTC
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    2262728 Bytes = 2.2 MiB
       Load Address: 80008000
       Entry Point:  80008000
    ## Booting kernel from Legacy Image at 81000000 ...
       Image Name:   Linux-2.6.37_DM812x_IPNC_2.00.00
       Created:      2012-02-14   8:21:36 UTC
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    2262728 Bytes = 2.2 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK
    
    Starting kernel ...
    
    Uncompressing Linux... done, booting the kernel.
    Linux version 2.6.37_DM812x_IPNC_2.00.00 (a0875405@bangvideoapps01) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #1 PREEMPT Tue Feb 14 13:51:32 IST 2012
    CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
    CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
    Machine: ti8148ipnc
    vram size = 4194304 at 0x0
    bootconsole [earlycon0] enabled
    reserved size = 4194304 at 0x0
    FB: Reserving 4194304 bytes SDRAM for VRAM
    Memory policy: ECC disabled, Data cache writeback
    OMAP chip is TI8148 2.0
    SRAM: Mapped pa 0x40300000 to va 0xfe400000 size: 0x20000
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 19296
    Kernel command line: console=ttyO0,115200n8 noinitrd mem=80M vram=4M notifyk.vpssm3_sva=0xBFD00000 root=/dev/mtdblock4 rw rootfstype=jffs2 ip=192.168.42.84:192.168.42.2:192.168.42.2:255.255.255.0:::off eth=00:0C:0C:A0:09:1F earlyprintk
    cpsw: kernel boot params Ethernet address: 00:0C:0C:A0:09:1F
    PID hash table entries: 512 (order: -1, 2048 bytes)
    Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    Memory: 76MB = 76MB total
    Memory: 72132k/72132k available, 9788k reserved, 0K highmem
    Virtual kernel memory layout:
        vector  : 0xffff0000 - 0xffff1000   (   4 kB)
        fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
        DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
        vmalloc : 0xc5800000 - 0xf8000000   ( 808 MB)
        lowmem  : 0xc0000000 - 0xc5000000   (  80 MB)
        pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
        modules : 0xbf000000 - 0xbfe00000   (  14 MB)
          .init : 0xc0008000 - 0xc0036000   ( 184 kB)
          .text : 0xc0036000 - 0xc0455000   (4220 kB)
          .data : 0xc0456000 - 0xc0491ec0   ( 240 kB)
    SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    NR_IRQS:375
    omap_hwmod: gpio4: softreset failed (waited 10000 usec)
    IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    Total of 128 interrupts on 1 active controller
    GPMC revision 6.0
    Trying to install interrupt handler for IRQ368
    Trying to install interrupt handler for IRQ369
    Trying to install interrupt handler for IRQ370
    Trying to install interrupt handler for IRQ371
    Trying to install interrupt handler for IRQ372
    Trying to install interrupt handler for IRQ373
    Trying to install interrupt handler for IRQ374
    Trying to install type control for IRQ375
    Trying to set irq flags for IRQ375
    OMAP clockevent source: GPTIMER1 at 20000000 Hz
    Console: colour dummy device 80x30
    Calibrating delay loop... 598.01 BogoMIPS (lpj=2990080)
    pid_max: default: 32768 minimum: 301
    Security Framework initialized
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    devtmpfs: initialized
    regulator: core version 0.5
    regulator: dummy: 
    NET: Registered protocol family 16
    OMAP GPIO hardware version 0.1
    OMAP GPIO hardware version 0.1
    OMAP GPIO hardware version 0.1
    OMAP GPIO hardware version 0.1
    omap_mux_init: Add partition: #1: core, flags: 4
    _omap_mux_init_gpio: Could not set gpio79
    _omap_mux_init_gpio: Could not set gpio80
    registered ti814x_vpss device
    registered TI814x on-chip HDMI device
    registered ti81xx_vidout device
    Debugfs: Only enabling/disabling deep sleep and wakeup timer is supported now
    PWM0 init success.
    PWM1 init success.
    bio: create slab <bio-0> at 0
    SCSI subsystem initialized
    registerd cppi-dma Intr @ IRQ 17
    Cppi41 Init Done
    omap_i2c omap_i2c.1: bus 1 rev4.0 at 100 kHz
    regulator: VRTC: 1800 mV 
    regulator: VIO: 1500 mV 
    regulator: VDD1: 600 <--> 1500 mV at 1100 mV 
    regulator: VDD2: 600 <--> 1500 mV at 1350 mV 
    regulator: VDDCTRL: 600 <--> 1400 mV at 1100 mV 
    regulator: LDO1: 1100 <--> 3300 mV at 1800 mV 
    regulator: LDO2: 1100 <--> 3300 mV at 1800 mV 
    regulator: LDO3: 1100 <--> 3300 mV at 3300 mV 
    regulator: LDO4: 1100 <--> 3300 mV at 1800 mV 
    regulator: LDO5: 1100 <--> 3300 mV at 3300 mV 
    regulator: LDO6: 1100 <--> 3300 mV at 3300 mV 
    regulator: LDO7: 1100 <--> 3300 mV at 3300 mV 
    regulator: LDO8: 1100 <--> 3300 mV at 1800 mV 
    tps65911-rtc tps65911-rtc: rtc core: registered tps65911-rtc as rtc0
    tps65910 1-002d: No interrupt support, no core IRQ
    Advanced Linux Sound Architecture Driver Version 1.0.23.
    Switching to clocksource gp timer
    musb-hdrc: version 6.0, peripheral, debug=0
    musb-hdrc musb-hdrc.0: dma type: dma-cppi41
    musb-hdrc musb-hdrc.0: USB Peripheral mode controller at c581e000 using DMA, IRQ 18
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    TCP: Hash tables configured (established 4096 bind 4096)
    TCP reno registered
    UDP hash table entries: 256 (order: 0, 4096 bytes)
    UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    NET: Registered protocol family 1
    RPC: Registered udp transport module.
    RPC: Registered tcp transport module.
    RPC: Registered tcp NFSv4.1 backchannel transport module.
    NetWinder Floating Point Emulator V0.97 (double precision)
    PMU: registered new PMU device of type 0
    omap-iommu omap-iommu.0: ducati registered
    omap-iommu omap-iommu.1: sys registered
    JFFS2 version 2.2. (NAND) ? 2001-2006 Red Hat, Inc.
    msgmni has been set to 140
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    omap_uart.0: ttyO0 at MMIO 0x48020000 (irq = 72) is a OMAP UART0
    console [ttyO0] enabled, bootconsole disabled
    console [ttyO0] enabled, bootconsole disabled
    omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    brd: module loaded
    loop: module loaded
    omap2-nand driver initializing
    NAND device: Manufacturer ID: 0x2c, Chip ID: 0xca (Micron )
    Creating 7 MTD partitions on "omap2-nand.0":
    0x000000000000-0x000000020000 : "U-Boot-min"
    0x000000020000-0x000000260000 : "U-Boot"
    0x000000260000-0x000000280000 : "U-Boot Env"
    0x000000280000-0x0000006c0000 : "Kernel"
    0x0000006c0000-0x00000c000000 : "File System"
    0x00000c000000-0x00000cc00000 : "Data"
    0x00000cc00000-0x000010000000 : "Reserved"
    davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    davinci_mdio davinci_mdio.0: detected phy mask fffffffe
    davinci_mdio.0: probed
    davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
    mice: PS/2 mouse device common for all mice
    i2c /dev entries driver
    Linux video capture interface: v2.00
    OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec
    notify_init : notify drivercreated  for  remote proc id 2 at physical Address 0xbfd00000
    asoc: tlv320aic3x-hifi <-> davinci-mcasp.2 mapping ok
    asoc: HDMI-DAI-CODEC <-> hdmi-dai mapping ok
    ALSA device list:
      #0: TI8148 IPNC
    TCP cubic registered
    NET: Registered protocol family 17
    Registering the dns_resolver key type
    VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    Power Management for TI81XX.
    Detected MACID=0:c:c:a0:9:1f
    tps65911-rtc tps65911-rtc: setting system clock to 2011-03-17 19:03:29 UTC (1300388609)
    mmc0: new SDHC card at address e53a
    mmcblk0: mmc0:e53a SD04G 3.69 GiB 
     mmcblk0: p1
    
    CPSW phy found : id is : 0x4dd074
    PHY 0:01 not found
    IP-Config: Complete:
         device=eth0, addr=192.168.42.84, mask=255.255.255.0, gw=192.168.42.2,
         host=192.168.42.84, domain=, nis-domain=(none),
         bootserver=192.168.42.2, rootserver=192.168.42.2, rootpath=
    PHY: 0:00 - Link is Up - 100/Full
    Empty flash at 0x0462c090 ends at 0x0462c800
    Empty flash at 0x06f156e4 ends at 0x06f15800
    VFS: Mounted root (jffs2 filesystem) on device 31:4.
    devtmpfs: mounted
    Freeing init memory: 184K
    INIT: version 2.86 booting
    JFFS2 notice: (42) check_node_data: wrong data CRC in data node at 0x06f14df8: read 0xb44020c4, calculated 0x5bdfed7b.
    Please wait: booting...
    Error opening /dev/fb0: No such file or directory
    Starting udev
    udevd (75): /proc/75/oom_adj is deprecated, please use /proc/75/oom_score_adj instead.
    udev: starting version 141
    udevd-event[78]: error changing netif name eth0 to eth4: Device or resource busy
    
    Remounting root file system...
    Caching udev devnodes
    Populating dev cache
    Configuring network interfaces... done.
    Setting up IP spoofing protection: rp_filter.
    rm: cannot remove '/tmp': Device or resource busy
    INIT: Entering runlevel: 5
     sbulla: unknown partition table
     sbulla: unknown partition table
    FAT: bogus number of reserved sectors
    VFS: Can't find a valid FAT filesystem on dev sbulla.
    Starting system message bus: dbus.
    FAT: bogus number of reserved sectors
    VFS: Can't find a valid FAT filesystem on dev sbulla.
    Starting telnet daemon.
    Starting syslogd/klogd: done
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org dm814x-evm ttyO0
    
    Arago 2010.11 dm814x-evm ttyO0
    
    dm814x-evm login: root (automatic login)
    root@dm814x-evm:~# mkdosfs 2.11 (12 Mar 2005)
    unable to get drive geometry, using default 255/63/dev/sbulla has 255 heads and 63 sectors per track,
    logical sector size is 512,
    using 0xf8 media descriptor, with 1024 sectors;
    file system has 2 12-bit FATs and 4 sectors per cluster.
    FAT size is 1 sector, and provides 247 clusters.
    Root directory contains 512 slots.
    Volume ID is 4d825b0e, no volume label.
    g_file_storage gadget: No serial-number string provided!
    g_file_storage gadget: File-backed Storage Gadget, version: 1 September 2010
    g_file_storage gadget: Number of LUNs=1
    g_file_storage gadget-lun0: ro=0, nofua=0, file: /dev/sbulla
    Simple mixer control 'PGA',0
      Capabilities: cvolume cswitch penum
      Capture channels: Front Left - Front Right
      Limits: Capture 0 - 119
      Front Left: Capture 80 [67%] [40.00dB] [on]
      Front Right: Capture 80 [67%] [40.00dB] [on]
    numid=1,iface=MIXER,name='PCM Playback Volume'
      ; type=INTEGER,access=rw---R--,values=2,min=0,max=127,step=0
      : values=127,127
      | dBscale-min=-63.50dB,step=0.50dB,mute=0
    ERROR: Module cmemk does not exist in /proc/modules
     [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000
     [m3video] Remote Debug Shared Memory @ 0xbff05020
     [m3vpss ] Remote Debug Shared Memory @ 0xbff0a040
    SysLink version : 2.00.04.83
    SysLink module created on Date:Feb 14 2012 Time:13:52:26
    Trace enabled
    Trace SetFailureReason enabled
    CMEMK module: built on Feb 14 2012 at 13:57:13
      Reference Linux version 2.6.37
      File /data/datalocal_videoapps01/user/kudva/DM812x/IPNetCam/ti_tools/linuxutils_3_21_00_03/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
    allocated heap buffer 0xc7000000 of size 0x4000000
    cmemk initialized
    /dev/mem opened.
    data 2
                 BW Phy Addr : 0x48180d00 Data : 0x00030000
                 AW Phy Addr : 0x48180d00 Data : 0x00030002
    data 3
                 BW Phy Addr : 0x48180d10 Data : 0x00000007
                 AW Phy Addr : 0x48180d10 Data : 0x00000003
    data 2
                 BW Phy Addr : 0x48180700 Data : 0x00000001
                 AW Phy Addr : 0x48180700 Data : 0x00000002
    data 2
                 BW Phy Addr : 0x48180720 Data : 0x00070000
                 AW Phy Addr : 0x48180720 Data : 0x00070002
    data 2
                 BW Phy Addr : 0x48180724 Data : 0x00030000
                 AW Phy Addr : 0x48180724 Data : 0x00000002
    data 60020
                 BW Phy Addr : 0x48140924 Data : 0x000e0020
                 AW Phy Addr : 0x48140924 Data : 0x000e0020
    data 60020
                 BW Phy Addr : 0x48140928 Data : 0x000e0020
                 AW Phy Addr : 0x48140928 Data : 0x000e0020
    data 60001
                 BW Phy Addr : 0x48140c18 Data : 0x000e0001
                 AW Phy Addr : 0x48140c18 Data : 0x000e0001
    data 60001
                 BW Phy Addr : 0x48140c1c Data : 0x000e0001
                 AW Phy Addr : 0x48140c1c Data : 0x000e0001
    data 2
                 BW Phy Addr : 0x48181564 Data : 0x00000002
                 AW Phy Addr : 0x48181564 Data : 0x00000002
    data 2
                 BW Phy Addr : 0x48181568 Data : 0x00030000
                 AW Phy Addr : 0x48181568 Data : 0x00000002
                 Phy Addr : 0x48181560 Data : 0x00000002
    data 2
                 BW Phy Addr : 0x48181560 Data : 0x00000002
                 AW Phy Addr : 0x48181560 Data : 0x00000002
    data 60002
                 BW Phy Addr : 0x48140aac Data : 0x00040002
                 AW Phy Addr : 0x48140aac Data : 0x00040002
    data 60002
                 BW Phy Addr : 0x48140ab0 Data : 0x00060002
                 AW Phy Addr : 0x48140ab0 Data : 0x00060002
    data 60002
                 BW Phy Addr : 0x48140ab8 Data : 0x00040002
                 AW Phy Addr : 0x48140ab8 Data : 0x00040002
    data 60020
                 BW Phy Addr : 0x48140a58 Data : 0x000c0080
                 AW Phy Addr : 0x48140a58 Data : 0x000c0080
    data 60080
                 BW Phy Addr : 0x48140a60 Data : 0x000c0080
                 AW Phy Addr : 0x48140a60 Data : 0x000c0080
    data 60020
                 BW Phy Addr : 0x48140a64 Data : 0x000c0080
                 AW Phy Addr : 0x48140a64 Data : 0x000c0080
    data 60020
                 BW Phy Addr : 0x48140a68 Data : 0x000c0080
                 AW Phy Addr : 0x48140a68 Data : 0x000c0080
    data 60002
                 BW Phy Addr : 0x48140aa8 Data : 0x00040002
                 AW Phy Addr : 0x48140aa8 Data : 0x00040002
    data 60002
                 BW Phy Addr : 0x48140aa4 Data : 0x00040002
                 AW Phy Addr : 0x48140aa4 Data : 0x00040002
    data 60002
                 BW Phy Addr : 0x48140aa0 Data : 0x00040002
                 AW Phy Addr : 0x48140aa0 Data : 0x00040002
    data 60002
                 BW Phy Addr : 0x48140a9c Data : 0x00060002
                 AW Phy Addr : 0x48140a9c Data : 0x00060002
    data 60002
                 BW Phy Addr : 0x48140a98 Data : 0x00060002
                 AW Phy Addr : 0x48140a98 Data : 0x00060002
    data 60002
                 BW Phy Addr : 0x48140a94 Data : 0x00060002
                 AW Phy Addr : 0x48140a94 Data : 0x00060002
    data 60002
                 BW Phy Addr : 0x48140a90 Data : 0x00060002
                 AW Phy Addr : 0x48140a90 Data : 0x00060002
    data 60002
                 BW Phy Addr : 0x48140a8c Data : 0x00060002
                 AW Phy Addr : 0x48140a8c Data : 0x00060002
    data 60002
                 BW Phy Addr : 0x48140a6c Data : 0x000e0002
                 AW Phy Addr : 0x48140a6c Data : 0x000e0002
    data 60002
                 BW Phy Addr : 0x48140a70 Data : 0x000c0002
                 AW Phy Addr : 0x48140a70 Data : 0x000c0002
    data 60002
                 BW Phy Addr : 0x48140a74 Data : 0x000e0002
                 AW Phy Addr : 0x48140a74 Data : 0x000e0002
    data 60002
                 BW Phy Addr : 0x48140a78 Data : 0x000e0002
                 AW Phy Addr : 0x48140a78 Data : 0x000e0002
    data 0
                 BW Phy Addr : 0x411f4004 Data : 0x0000000e
                 AW Phy Addr : 0x411f4004 Data : 0x00000000
    data 0
                 BW Phy Addr : 0x411f2004 Data : 0x00000001
                 AW Phy Addr : 0x411f2004 Data : 0x00000000
    data 1
                 BW Phy Addr : 0x41140084 Data : 0x00000001
                 AW Phy Addr : 0x41140084 Data : 0x00000001
    data 1
                 BW Phy Addr : 0x411a0084 Data : 0x00000001
                 AW Phy Addr : 0x411a0084 Data : 0x00000001
    data 1
                 BW Phy Addr : 0x41160034 Data : 0x00000001
                 AW Phy Addr : 0x41160034 Data : 0x00000001
    data 1
                 BW Phy Addr : 0x41121ff0 Data : 0x00000001
                 AW Phy Addr : 0x41121ff0 Data : 0x00000001
    data 1
                 BW Phy Addr : 0x41131fe4 Data : 0x00000000
                 AW Phy Addr : 0x41131fe4 Data : 0x00000001
    data 1
                 BW Phy Addr : 0x411e002c Data : 0x00000000
                 AW Phy Addr : 0x411e002c Data : 0x00000001
    data 1
                 BW Phy Addr : 0x481c52ec Data : 0x00000001
                 AW Phy Addr : 0x481c52ec Data : 0x00000001
    secss put in low power state
    data 1
                 BW Phy Addr : 0x48180900 Data : 0x00000001
                 AW Phy Addr : 0x48180900 Data : 0x00000001
    data 0
                 BW Phy Addr : 0x48180f00 Data : 0x00030000
                 AW Phy Addr : 0x48180f00 Data : 0x00030000
                 Phy Addr : 0x48180f10 Data : 0x00000000
    data 2
                 BW Phy Addr : 0x4818052c Data : 0x00000002
                 AW Phy Addr : 0x4818052c Data : 0x00000002
    data 2
                 BW Phy Addr : 0x48180508 Data : 0x00000302
                 AW Phy Addr : 0x48180508 Data : 0x00000302
    data 2
                 BW Phy Addr : 0x48180520 Data : 0x00000002
                 AW Phy Addr : 0x48180520 Data : 0x00000002
    data 2
                 BW Phy Addr : 0x48180524 Data : 0x00000002
                 AW Phy Addr : 0x48180524 Data : 0x00000002
    data 2
                 BW Phy Addr : 0x48180528 Data : 0x00000002
                 AW Phy Addr : 0x48180528 Data : 0x00000002
                 Phy Addr : 0x48180508 Data : 0x00000302
                 Phy Addr : 0x48180520 Data : 0x00000002
                 Phy Addr : 0x48180524 Data : 0x00000002
                 Phy Addr : 0x48180528 Data : 0x00000002
                 Phy Addr : 0x4c0000e4 Data : 0x00173209
    data 173209
                 BW Phy Addr : 0x4c0000e4 Data : 0x00173209
                 AW Phy Addr : 0x4c0000e4 Data : 0x00173209
                 Phy Addr : 0x4d0000e4 Data : 0x00173209
    data 173209
                 BW Phy Addr : 0x4d0000e4 Data : 0x00173209
                 AW Phy Addr : 0x4d0000e4 Data : 0x00173209
                 Phy Addr : 0x4c0000e4 Data : 0x00173209
    data 173209
                 BW Phy Addr : 0x4c0000e4 Data : 0x00173209
                 AW Phy Addr : 0x4c0000e4 Data : 0x00173209
                 Phy Addr : 0x4d0000e4 Data : 0x00173209
    data 173209
                 BW Phy Addr : 0x4d0000e4 Data : 0x00173209
                 AW Phy Addr : 0x4d0000e4 Data : 0x00173209
    DDR IOs RX is shutdown 
     Setting DMM priority for [DUCATI  ] to [1] ( 0x4e000624 = 0x09000000 )
     Setting DMM priority for [HDVICP0 ] to [0] ( 0x4e000634 = 0x00000008 )
    
    root@dm814x-evm:~# cd /oproot@dm814x-evm:~# cd /opt/zjroot@dm814x-evm:~# cd /opt/zjp/
    root@dm814x-evm:/opt/zjp# ./autroot@dm814x-evm:/opt/zjp# ./autorun.sroot@dm814x-evm:/opt/zjp# ./autorun.sh 
    Creat queue id:0
    queue id:0
    FileMngThread created
    Creat queue id:32769
    queue id:32769
    AlramThread created
    Share memory init success
    IPNC_2.00.00 (a0875405@bangvideoapps01) (gcc version 4.3.3 (Sourcery G+ 
    Creat queue id:65538
    queue id:65538
    queue id:65538
    Creat queue id:98307
    queue id:98307
    queue id:32769
    
    CPU is TI812x
    DEMOCFG Value	: 0
    Videocodecmode	: 8
    Videocodecres 	: 0
    
    *****************************************************************
    
        IPNC BUILD VERSION: DM8127 IPNC RDK VERSION 02.00.00.16	
    
    *****************************************************************
    
    ./bin/ipnc_rdk_mcfw.out   TRISTREAM APPRO2A AEWB HIGH_SPEED1 HIGH_SPEED2 &
    Attached to slave procId 2.
    Loaded file ./firmware/ipnc_rdk_fw_m3vpss.xem3 on slave procId 2.
    Started slave procId 2.
     [m3vpss ] ***** SYSTEM  : Frequency <ORG> - 200000000, <NEW> - 200000000
    After Ipc_loadcallback status [0x00000000]
     [m3vpss ] notify_attach  rtnVal  0
     [m3vpss ] initProxyServer  rtnVal  0
     [m3vpss ]  
     [m3vpss ]  *** UTILS: CPU KHz = 400000 Khz ***
     [m3vpss ]  
     [m3vpss ]  98: SYSTEM  : System Common Init in progress !!!
     [m3vpss ]  98: SYSTEM: IPC init in progress !!!
     [m3vpss ]  98: SYSTEM: Attaching to [HOST] ... 
    After Ipc_startcallback status [0x097d2000]
     [m3vpss ]  1098: SYSTEM: Attaching to [HOST] ... 
     [m3vpss ]  1100: SYSTEM: Attaching to [HOST] ... SUCCESS !!!
     [m3vpss ]  1100: SYSTEM: Attaching to [DSP] ... 
    Attached to slave procId 1.
    Loaded file ./firmware/ipnc_rdk_fw_m3video.xem3 on slave procId 1.
    Started slave procId 1.
    After Ipc_loadcallback status [0x00000000]
     [m3video] ***** SYSTEM  : Frequency <ORG> - 200000000, <NEW> - 200000000
     [m3video]  
     [m3video]  *** UTILS: CPU KHz = 400000 Khz ***
     [m3video]  
     [m3video]  1290: SYSTEM  : System Common Init in progress !!!
     [m3video]  1291: SYSTEM: IPC init in progress !!!
     [m3video]  1291: SYSTEM: Attaching to [HOST] ... 
     [m3vpss ]  2101: SYSTEM: Attaching to [DSP] ... 
    After Ipc_startcallback status [0x00000000]
     [m3video]  2290: SYSTEM: Attaching to [HOST] ... 
     [m3video]  2294: SYSTEM: Attaching to [HOST] ... SUCCESS !!!
     [m3video]  2294: SYSTEM: Attaching to [DSP] ... 
    Attached to slave procId 0.
    Loaded file ./firmware/ipnc_rdk_fw_c6xdsp.xe674 on slave procId 0.
    Started slave procId 0.
    After Ipc_loadcallback status [0x00000000]
     [c6xdsp ] ***** SYSTEM  : Frequency <ORG> - 500000000, <NEW> - 400000000
     [c6xdsp ]  
     [c6xdsp ]  *** UTILS: CPU KHz = 400000 Khz ***
     [c6xdsp ]  
     [c6xdsp ]  2: SYSTEM  : System Common Init in progress !!!
     [c6xdsp ]  2: SYSTEM: IPC init in progress !!!
     [c6xdsp ]  2: SYSTEM: Attaching to [HOST] ... 
     [m3vpss ]  3101: SYSTEM: Attaching to [DSP] ... 
     [m3video]  3293: SYSTEM: Attaching to [DSP] ... 
     [c6xdsp ]  1001: SYSTEM: Attaching to [HOST] ... 
     [c6xdsp ]  1005: SYSTEM: Attaching to [HOST] ... SUCCESS !!!
     [c6xdsp ]  1005: SYSTEM: Attaching to [VIDEO-M3] ... 
    After Ipc_startcallback status [0x00000000]
     [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000
     [m3video] Remote Debug Shared Memory @ 0xbff05020
     [m3vpss ] Remote Debug Shared Memory @ 0xbff0a040
     [m3vpss ]  4101: SYSTEM: Attaching to [DSP] ... 
     [m3video]  4293: SYSTEM: Attaching to [DSP] ... 
     [c6xdsp ]  2004: SYSTEM: Attaching to [VIDEO-M3] ... 
     [m3vpss ]  5101: SYSTEM: Attaching to [DSP] ... 
     [c6xdsp ]  2853: SYSTEM: Attaching to [VIDEO-M3] ... SUCCESS !!!
     [m3video]  5293: SYSTEM: Attaching to [DSP] ... 
     [c6xdsp ]  2853: SYSTEM: Attaching to [VPSS-M3] ... 
     [m3video]  5294: SYSTEM: Attaching to [DSP] ... SUCCESS !!!
     [m3video]  5294: SYSTEM: Attaching to [VPSS-M3] ... 
     [m3vpss ]  6101: SYSTEM: Attaching to [DSP] ... 
     [c6xdsp ]  3852: SYSTEM: Attaching to [VPSS-M3] ... 
     [m3video]  6293: SYSTEM: Attaching to [VPSS-M3] ... 
     [c6xdsp ]  4660: SYSTEM: Attaching to [VPSS-M3] ... SUCCESS !!!
     [m3vpss ]  7101: SYSTEM: Attaching to [DSP] ... 
     [c6xdsp ]  4660: SYSTEM: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...
     [m3vpss ]  7101: SYSTEM: Attaching to [DSP] ... SUCCESS !!!
     [m3vpss ]  7101: SYSTEM: Attaching to [VIDEO-M3] ... 
     [m3video]  7293: SYSTEM: Attaching to [VPSS-M3] ... 
     [c6xdsp ]  5660: SYSTEM: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...
     [m3video]  8102: SYSTEM: Attaching to [VPSS-M3] ... SUCCESS !!!
     [m3vpss ]  8102: SYSTEM: Attaching to [VIDEO-M3] ... 
     [m3video]  8103: SYSTEM: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...
     [m3vpss ]  8102: SYSTEM: Attaching to [VIDEO-M3] ... SUCCESS !!!
     [m3video]  8103: SYSTEM: Creating MsgQ [VIDEO-M3  8103: SYSTEM: Creating MsgQ [VIDEO-M3_ACK_MSGQ] ...
     [m3vpss ]  8103: SYSTEM: Creating MsgQ [VPSS-M3_MSGQ] ...
     [m3vpss ]  8103: SYSTEM: Creating MsgQ [VPSS-M3_ACK_MSGQ] ...
     [m3video]  8106: SYSTEM: Notify register to [HOST] line 0, event 12 ... 
     [m3vpss ]  8105: SYSTEM: Notify register to [HOST] line 0, event 12 ... 
     [m3video]  8106: SYSTEM: Notify register to [DSP] line 0, event 12 ... 
     [m3vpss ]  8106: SYSTEM: Notify register to [DSP] line 0, event 12 ... 
     [m3video]  8106: SYSTEM: Notify register to [VPSS-M3] line 0, event 12 ... 
     [m3vpss ]  8106: SYSTEM: Notify register to [VIDEO-M3] line 0, event 12 ... 
     [m3video]  8106: SYSTEM: IPC init DONE !!!
     [m3vpss ]  8106: SYSTEM: IPC init DONE !!!
     [m3video]  8116: MEM: Shared Region 3: Base = 0xb0000000, Length = 0x0e900000 (233 MB) 
     [m3vpss ]  8116: MEM: Shared Region 3: Base = 0xb0000000, Length = 0x0e900000 (233 MB) 
     [m3video]  8117: MEM: Shared Region 1: Base = 0x89000000, Length = 0x03800000 (56 MB) 
     [m3vpss ]  8116: MEM: Shared Region 1: Base = 0x89000000, Length = 0x03800000 (56 MB) 
     [m3video]  8119: SYSTEM  : System Common Init Done !!!
     [m3vpss ]  8118: SYSTEM  : System Common Init Done !!!
     [m3video]  8119: SYSTEM  : System Video Init in progress !!!
     [m3vpss ]  8119: SYSTEM  : System VPSS Init in progress !!!
     [m3video]  8120: SYSTEM: Creating ListMP [VIDEO-M3_IPC_OUT_0] in region 0 ...
     [m3video]  8120: SYSTEM: Creating ListMP [VIDEO-M3_IPC_IN_0] in region 0 ...
     [m3video]  8120: SYSTEM: ListElem Shared Addr = 0xbeb0b280
     [m3video]  8123: SYSTEM: Creating ListMP [VIDEO-M3_IPC_OUT_1] in region 0 ...
     [m3video]  8123: SYSTEM: Creating ListMP [VIDEO-M3_IPC_IN_1] in region 0 ...
     [m3video]  8123: SYSTEM: ListElem Shared Addr = 0xbeb0e380
     [m3video]  8134: SYSTEM: Creating ListMP [VIDEO-M3_IPC_OUT_28] in region 0 ...
     [m3video]  8135: SYSTEM: Creating ListMP [VIDEO-M3_IPC_IN_28] in region 0 ...
     [m3video]  8135: SYSTEM: ListElem Shared Addr = 0xbeb11480
     [m3video]  8138: SYSTEM: Creating ListMP [VIDEO-M3_IPC_OUT_29] in region 0 ...
     [m3vpss ] === I2C0/2 Clk is active ===
     [m3video]  8138: SYSTEM: Creating ListMP [VIDEO-M3_IPC_IN_29] in region 0 ...
     [m3vpss ]  8137: SYSTEM : HDVPSS Drivers Version: HDVPSS_01_00_01_36
     [m3video]  8138: SYSTEM: ListElem Shared Addr = 0xbeb29f80
     [m3vpss ]  8137: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_0] in region 0 ...
     [m3video]  8140: HDVICP: Doing PRCM for IVAHD[0] ... 
     [m3vpss ]  8138: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_0] in region 0 ...
     [m3video]  8141: HDVICP: PRCM for IVAHD[0] ... DONE.
     [m3vpss ]  8138: SYSTEM: ListElem Shared Addr = 0xbeb27000
     [m3video]  8142: SYSTEM  : Initializing Links !!! 
     [m3vpss ]  8141: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_1] in region 0 ...
     [m3vpss ]  8141: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_1] in region 0 ...
     [m3video]  8142: SYSTEM  : Heap Free Space (System = 2088416 bytes, FrmBuf = 244318080 bytes,
     [m3video]          BitBuf = 58720128 bytes, Mbx = 10240 msgs) 
     [m3vpss ]  8141: SYSTEM: ListElem Shared Addr = 0xbeb3f980
     [m3vpss ]  8155: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_24] in region 0 ...
     [m3vpss ]  8156: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_24] in region 0 ...
     [m3vpss ]  8156: SYSTEM: ListElem Shared Addr = 0xbeb42a80
     [m3vpss ]  8159: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_25] in region 0 ...
     [m3vpss ]  8159: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_25] in region 0 ...
     [m3vpss ]  8159: SYSTEM: ListElem Shared Addr = 0xbeb62080
     [m3vpss ]  8166: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_28] in region 0 ...
     [m3vpss ]  8167: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_28] in region 0 ...
     [m3vpss ]  8167: SYSTEM: ListElem Shared Addr = 0xbeb81680
     [m3vpss ]  8169: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_29] in region 0 ...
     [m3vpss ]  8170: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_29] in region 0 ...
     [m3vpss ]  8170: SYSTEM: ListElem Shared Addr = 0xbeb97080
     [m3video]  8186: SYSTEM  : Initializing Links ... DONE !!! 
     [m3video]  8186: SYSTEM  : System Video Init Done !!!
     [m3vpss ]  Vps_deviceInit Daughter card not detected/connected!
     [m3vpss ]                 
     [m3vpss ]  8415: SYSTEM  : Initializing Links !!! 
     [m3vpss ]  8415: SYSTEM  : Heap Free Space (System = 896664 bytes, FrmBuf = 244318080 bytes,
     [m3vpss ]          BitBuf = 58720128 bytes, Mbx = 10240 msgs) 
     [m3vpss ] Received character 's'
     [m3vpss ]  8538: SYSTEM  : Initializing Links ... DONE !!! 
     [m3vpss ]  8538: SYSTEM  : System VPSS Init Done !!!
     [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000
     [m3video] Remote Debug Shared Memory @ 0xbff05020
     [m3vpss ] Remote Debug Shared Memory @ 0xbff0a040
     [m3video] Received character 's'
     [c6xdsp ] Remote Debug Shared Memory @ 0xbff00000
     [m3video] Remote Debug Shared Memory @ 0xbff05020
     [m3vpss ] Remote Debug Shared Memory @ 0xbff0a040
     [c6xdsp ]  6660: SYSTEM: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...
     [c6xdsp ]  6661: SYSTEM: Creating MsgQ [DSP_MSGQ] ...
     [c6xdsp ]  6661: SYSTEM: Creating MsgQ [DSP_ACK_MSGQ] ...
     [c6xdsp ]  6662: SYSTEM: Notify register to [HOST] line 0, event 12 ... 
     [c6xdsp ]  6662: SYSTEM: Notify register to [VIDEO-M3] line 0, event 12 ... 
     [c6xdsp ]  6662: SYSTEM: Notify register to [VPSS-M3] line 0, event 12 ... 
     [c6xdsp ]  6662: SYSTEM: IPC init DONE !!!
     [c6xdsp ]  6666: MEM: Shared Region 3: Base = 0xb0000000, Length = 0x0e900000 (233 MB) 
     [c6xdsp ]  6666: MEM: Shared Region 1: Base = 0x89000000, Length = 0x03800000 (56 MB) 
     [c6xdsp ] Received character 's'
     [c6xdsp ]  6667: SYSTEM  : System Common InDMA: Module install successful, device major num = 250 
    it Done !!!
     [cDRV: Module install successful
    6xdsp ]  6665: SDRV: Module built on Feb 22 2012 14:01:35 
    YSTEM  : System DSP Init in progress !!!
     [c6xdsp ]  6672: SYSTEM: Creating ListMP [DSP_IPC_OUT_24] in region 0 ...
     [c6xdsp ]  6672: SYSTEM: Creating ListMP [DSP_IPC_IN_24] in region 0 ...
     [c6xdsp ]  6672: SYSTEM: ListElem Shared Addr = 0xbebaca80
     [c6xdsp ]  6673: SYSTEM: Creating ListMP [DSP_IPC_OUT_25] in region 0 ...
     [c6xdsp ]  6673: SYSTEM: Creating ListMP [DSP_IPC_IN_25] in region 0 ...
     [c6xdsp ]  6673: SYSTEM: ListElem Shared Addr = 0xbebcc080
     [c6xdsp ] !!WARNING.Resource already registered:2
     [c6xdsp ]  6672: SYSTEM  : Initializing Links !!! 
     [c6xdsp ]  6674: SYSTEM  : Heap Free Space (System = 2089832 bytes, FrmBuf = 241207680 bytes,
     [c6xdsp ]          BitBuf = 58720128 bytes, Mbx = 10240 msgs) 
     [c6xdsp ]  6674: SYSTEM  : Initializing Links ... DONE !!! 
     [c6xdsp ]  6674: SYSTEM  : System DSP Init Done !!!
    VPSS_FVID2: M3 firmware version 0x1000136 is newer,driver may not work properly.
    HDMI W1 rev 4.0
    ApproDrvInit: 7
    Creat queue id:131076
    queue id:131076
    I2C No Ack
    
     
     ORG 0x46c00524: 0
     NEW 0x46c00524: 2
     
    
     [host] Application Load Completed
    Vsys_allocBuf - addr = 0x40cbb000,size = 65011712
    
     [host] MCFW_IPCBITS:App_streamSysInit:virt addr of 85000000 cir buffer  is 40cbb000
    ##########pInfo->totalsize 61865984
    MemMng_memcpy_open:OSA_dmaOpen passed with ch id = 4
    CacheMng_MemCpy_open:OSA_dmaOpen passed with ch id = 8
    queue id:131076
    queue id:65538
    
     [host] MCFW_IPCBITS:App_ipcBitsRecvStreamFxn:Entered...Vsys_allocBuf - addr = 0x4005e000,size = 682
    DCC Default File Intialization Done!
     0: SYSTEM: System Common Init in progress !!!
     1: SYSTEM: IPC init in progress !!!
     11: SYSTEM: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...
     13: SYSTEM: Creating MsgQ [HOST_MSGQ] ...
     14: SYSTEM: Creating MsgQ [HOST_ACK_MSGQ] ...
     16: SYSTEM: Opening MsgQ [DSP_MSGQ] ...
     16: SYSTEM: Opening MsgQ [VIDEO-M3_MSGQ] ...
     17: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] ...
     18: SYSTEM: Notify register to [DSP] line 0, event 12 ... 
     18: SYSTEM: Notify register to [VIDEO-M3] line 0, event 12 ... 
     18: SYSTEM: Notify register to [VPSS-M3] line 0, event 12 ... 
     19: SYSTEM: IPC init DONE !!!
     20: SYSTEM: Creating ListMP [HOST_IPC_OUT_28] in region 0 ...
     22: SYSTEM: Creating ListMP [HOST_IPC_IN_28] in region 0 ...
     24: SYSTEM: ListElem Shared Addr = 0x45657680
     25: SYSTEM: Creating ListMP [HOST_IPC_OUT_29] in region 0 ...
     27: SYSTEM: Creating ListMP [HOST_IPC_IN_29] in region 0 ...
     29: SYSTEM: ListElem Shared Addr = 0x4566d080
     30: SYSTEM: Creating ListMP [HOST_IPC_OUT_24] in region 0 ...
     32: SYSTEM: Creating ListMP [HOST_IPC_IN_24] in region 0 ...
     34: SYSTEM: ListElem Shared Addr = 0x45682a80
     35: SYSTEM: Creating ListMP [HOST_IPC_OUT_25] in region 0 ...
     37: SYSTEM: Creating ListMP [HOST_IPC_IN_25] in region 0 ...
     39: SYSTEM: ListElem Shared Addr = 0x456a2080
     39: SYSTEM: System Common Init Done !!!
    
     [host] 
    ********** FULL FEATURE USECASE ********
    
     [host] ********* Entered Tri Streaming usecase - H264 1080p @60fps + H264 D1 @30fps + MJPEG 1080p @5fps ********
    
     40: MCFW  : CPU Revision [ES2.1] !!! 
     40: MCFW  : Detected [UNKNOWN] Board !!! 
     40: MCFW  : Base Board Revision [REV A] !!! 
     [m3vpss ]  10425: CAMERA: VIP0 PortA camera mode is [ 8-bit, Non-mux Embedded Sync] !!! 
     [m3vpss ] Stream ID 0: chId = 0 VpsUtils_queCreate.
     [m3vpss ] Stream ID 1: chId = 0 VpsUtils_queCreate.
    func_get_mem.mem_info.addr = 0x85000000
    func_get_mem.mem_info.size = 0x3b00000
     [m3vpss ] DCC server task running 
     [m3video]  11280: SYSTEM: Opening ListMP [VPSS-M3_IPC_OUT_0] ...
     [m3video]  11281: SYSTEM: Opening ListMP [VPSS-M3_IPC_IN_0] ...
     [m3video]  11282: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] ...
     [m3video] HEAPID:0	USED:107592
    
     [host] IpcBitsInLink_tskMain:Entered
     [host]  1009: IPC_BITS_IN   : ListMPOpen start !!!
    
     [host]  1009: SYSTEM: Opening ListMP [VPSS-M3_IPC_OUT_28] ...
     [m3vpss ] MJPEG Enc Channel#  0 ::: Width X Height (1920 X 1080) and Pitch is 1920 
     1012: SYSTEM: Opening ListMP [VPSS-M3_IPC_IN_28] ...
    
     [host]  1014: IPC_BITS_IN   : ListMPOpen done !!!
    
     [host]  1016: IPC_BITS_IN   : System_linkGetInfo done !!!
    
     [host] IpcBitsInLink_tskMain:Entered
     [host]  1019: IPC_BITS_IN   : ListMPOpen start !!!
    
     [host]  1019: SYSTEM: Opening ListMP [VIDEO-M3_IPC_OUT_28] ...
     1020: SYSTEM: Opening ListMP [VIDEO-M3_IPC_IN_28] ...
    
     [host]  1022: IPC_BITS_IN   : ListMPOpen done !!!
    
     [host]  1024: IPC_BITS_IN   : System_linkGetInfo done !!!
    
     [host] USECASE SETUP DONE
     [m3vpss ]  frameSkipModulo=20 zhangjp			###############################  set pChObj->frameSkipModulo = 20
     [m3vpss ] Here is the priority of the MjpegLink_codecCreateProcessTsk :::: 12
     [m3vpss ] MJPEG Enc Task Func of Task#0 started.
    
     [host] 
    Application Run Completed
     [m3vpss ]  11535: CAMERA: Fields = 2 (fps = 0), Total Resets = 0 (Avg 0 ms per reset)
     [m3video]  Channel:0 inputframerate:60 targetfps:60
    
     [host] MCFW_IPCBITS: Callback function:App_ipcBitsInCbFxn
     [host] MCFW_IPCBITS:App_ipcBitsRecvStreamFxn:INFO: periodic print..ITT server task running !!!
    
     ITT ittServer_run
    ITT Server Message initialization successful
    
     ITT capture task created
    DCC server Message ques is open succefully
    Setting cmd <1> in message <45377100>
    Posting message <45377100> in QId <20002> 
     [m3vpss ] Command 1 recived from HOST A8 
    Response from M3 is : 1
    Server Socket created with ID <22> 
     [m3vpss ] ********************************************************************
     [m3vpss ]         APPRO AEWB TRIAL VERSION (LIMITATION is 1 DAY in 60fps)
     [m3vpss ]    For the formal release PLEASE CONTACT http://www.appropho.com !!!
     [m3vpss ] ********************************************************************
     [m3vpss ]  ==================== MjpegLink_PrintDetails ==================== 
     [m3vpss ]  
     [m3vpss ]  *** MJPEG ENCODE Statistics *** 
     [m3vpss ]  Elasped Time           : 37 secs
     [m3vpss ]  --------------------------------------------
     [m3vpss ]  CH  | In Recv In Skip In User  Out Latency  
     [m3vpss ]  Num | FPS     FPS     Skip FPS FPS Min / Max
     [m3vpss ]  --------------------------------------------
     [m3vpss ]    0 |      41       0       39   2   0 /  13
     [m3vpss ]  ================================================================= 
    
     [host] MCFW_IPCBITS: Callback function:App_ipcBitsInCbFxn
     [host] MCFW_IPCBITS:App_ipcBitsRecvStreamFxn:INFO: periodic print..Error: WaitStreamReady Fail.
    
     Channel Selected: 0,bitrate      = 10000000
     Channel Selected: 0,rate control = 0
     Channel Selected: 0,frame rate   = 60000
     Channel Selected: 0,IP ratio     = 60
     Channel Selected: 0,qpmin = 10.qpmax = 36,qpinit = -1
     Channel Selected: 0,qpmin = 10.qpmax = 40,qpinit = 28
     Channel Selected: 0,packet size = 100
     Channel Selected: 0,encPreset = 0
     [m3vpss ] framerateParams->FrameRate = 60
     [m3video]  ENCLINK: new targetbitrate to set:10000000 
     Channel Selected: 1,bitrate      = 2000000
     Channel Selected: 1,rate control = 0
     Channel Selected: 1,frame rate   = 30000
     Channel Selected: 1,IP ratio     = 30
     Channel Selected: 1,qpmin = 10.qpmax = 36,qpinit = -1
     Channel Selected: 1,qpmin = 10.qpmax = 40,qpinit = 28
     Channel Selected: 1,packet size = 100
     Channel Selected: 1,encPreset = 0
    Check_device_version : DEVICE VER = 1 !!
     [m3video]  ENCLINK: new targetframerate to set:60000 
     [m3video]  ENCLINK: new intraFrameInterval to set:60 
     [m3video]  ENCLINK: new QP I Param to set:10 36 -1
     [m3video]  ENCLINK: new QP P Param to set:10 40 28
     [m3video]  ENCLINK: new PacketSize Param to set:100 
     [m3video]  ENCLINK: new Encode Preset Param to set:0
    Simple mixer control 'PGA',0
      Capabilities: cvolume cswitch penum
      Capture channels: Front Left - Front Right
      Limits: Capture 0 - 119
      Front Left: Capture 95 [80%] [47.50dB] [on]
      Front Right: Capture 95 [80%] [47.50dB] [on]
    Check_device_version : DEVICE VER = 1 !!
     [m3video]  ENCLINK: new rate control algorithm  to set:0 
    Simple mixer control 'PCM',0
      Capabilities: pvolume penum
      Playback channels: Front Left - Front Right
      Limits: Playback 0 - 127
      Mono:
      Front Left: Playback 101 [80%] [-13.00dB]
      Front Right: Playback 101 [80%] [-13.00dB]
     Channel Selected: 0
    Force IDR on Channel: 0
    SystemInit success
    Schedule manager init success
    queue id:0
    umount: /mnt/mmc: not mounted
    FAT: bogus number of reserved sectors
    VFS: Can't find a valid FAT filesystem on dev mmcblk0.
    mount: wrong fs type, bad option, bad superblock on /dev/mmcblk0,
           missing codepage or other error
           In some cases useful info is found in syslog - try
           dmesg | tail  or so
    
    killall: dhcpcd: no process killed
    rm: cannot remove '/var/run/dhcpcd-eth0.pid': No such file or directory
    net_search_gateway:eth0, 2AA8C0, 0, 1
    net_search_gateway:eth0, 0, 22AA8C0, 3
    dns=202.106.0.20
    net_search_gateway:eth0, 2AA8C0, 0, 1
    net_search_gateway:eth0, 0, 22AA8C0, 3
    dns=202.106.0.20
    g_file_storage gadget: No serial-number string provided!
    g_file_storage gadget: File-backed Storage Gadget, version: 1 September 2010
    g_file_storage gadget: Number of LUNs=1
    g_file_storage gadget-lun0: ro=0, nofua=0, file: /dev/sbulla
    ApproDrvInit: 10
    queue id:131076
    func_get_mem.mem_info.addr = 0x85000000
    func_get_mem.mem_info.size = 0x3b00000
    ApproDrvInit: 6
    queue id:131076
    func_get_mem.mem_info.addr = 0x85000000
    func_get_mem.mem_info.size = 0x3b00000
    Initializing...
    ...done initializing
    ApproDrvInit: 2
    queue id:131076
    func_get_mem.mem_info.addr = 0x85000000
    func_get_mem.mem_info.size = 0x3b00000
    ApproDrvInit: 8
    queue id:131076
    func_get_mem.mem_info.addr = 0x85000000
    func_get_mem.mem_info.size = 0x3b00000
    Initializing...
    ...done initializing
    ApproDrvInit: 9
    queue id:131076
    func_get_mem.mem_info.addr = 0x85000000
    func_get_mem.mem_info.size = 0x3b00000
    Initializing...
    ...done initializing
    Initializing...
    ...done initializing
    Play this stream using the URL:
    	rtsp://192.168.42.84:8555/PSIA/Streaming/channels/0?videoCodecType=MJPEG
    Play this stream using the URL:
    	rtsp://192.168.42.84:8556/PSIA/Streaming/channels/2?videoCodecType=H.264
    Play this stream using the URL:
    	rtsp://192.168.42.84:8557/PSIA/Streaming/channels/2?videoCodecType=H.264
    Play this stream using the URL:
    	rtsp://192.168.42.84:8554/PSIA/Streaming/channels/1?videoCodecType=MPEG4
    Initializing...
    ...done initializing
    Play this stream using the URL:
    	rtsp://192.168.42.84:8553/PSIA/Streaming/channels/1?videoCodecType=MPEG4
    main 154
    ApproDrvInit: 3
    queue id:131076
    main 158
    main 163
    queue id:0
    main 168
    queue id:32769
    main 174
    main 178
    main 182
    main 186
    main 194
    main 205
    main 212
    main 224
    main 242
    main 246
    [17/Mar/2011:19:07:22 +0000] boa: server version Boa/0.94.13
    [17/Mar/2011:19:07:22 +0000] boa: server built Feb 21 2012 at 18:11:31.
    [17/Mar/2011:19:07:22 +0000] boa: starting server pid=1203, port 80
    main 252
    queue id:0
    queue id:0
    UDPString=uuid:Upnp-TVEmulator-1_0-00_0036422409</UDN>
    
    Upnp port is 0
    UPnP Initialized OK ip=192.168.42.84, port=0
    desc_doc_url = http://192.168.42.84/tvdevicedesc.xml
    UpnpRegisterRootDevice failure.
    error code = -107
    device advertisement failure.
    root@DM812x_IPNC:/opt/zjp#  [m3vpss ]  ==================== MjpegLink_PrintDetails ==================== 
     [m3vpss ]  
     [m3vpss ]  *** MJPEG ENCODE Statistics *** 
     [m3vpss ]  Elasped Time           : 24 secs
     [m3vpss ]  --------------------------------------------
     [m3vpss ]  CH  | In Recv In Skip In User  Out Latency  
     [m3vpss ]  Num | FPS     FPS     Skip FPS FPS Min / Max
     [m3vpss ]  --------------------------------------------
     [m3vpss ]    0 |      62       0       57   4  11 /  13
     [m3vpss ]  ================================================================= 
    Force IDR on Channel: 1
     [host] MCFW_IPCBITS: Callback function:App_ipcBitsInCbFxn
     [host] MCFW_IPCBITS:App_ipcBitsRecvStreamFxn:INFO: periodic print.. [m3video]  ==================== EncLink_PrintDetails ==================== 
     [m3vpss ]  ==================== CameraLink_PrintDetails ==================== 
     [m3vpss ]  71532: CAMERA: Fields = 5402 (fps = 90, CPU Load = 57)
     [m3video] 	71631: HDVICP-ID:0
     [m3vpss ]  71532: CAMERA: Num Resets = 0 (Avg 0 ms per reset)
     [m3video] 		totalAcquire2wait in msec:74967080
     [m3video] 		totalWait2Isr in msec:    4738
     [m3video] 		totalIsr2Done in msec:      36
     [m3video] 		totalWait2Done in msec:    4774
     [m3video] 		totalDone2Release in msec:       0
     [m3video] 		totalAcquire2Release in msec:       0
     [m3video] 		totalAcq2acqDelay in msec:       0
     [m3video] 		totalElapsedTime in msec:       0
     [m3video] 		numAccessCnt:       0
     [m3vpss ]  ================================================================= 
     [m3video] 		IVA-FPS :       0
     [m3video] 	71632: HDVICP-ID:1
     [m3vpss ]  71549: CAMERA: Fields = 5401 (fps = 90), Total Resets = 0 (Avg 0 ms per reset)
     [m3video] 		totalAcquire2wait in msec:       0
     [m3video] 		totalWait2Isr in msec:       0
     [m3video] 		totalIsr2Done in msec:       0
     [m3video] 		totalWait2Done in msec:       0
     [m3video] 		totalDone2Release in msec:       0
     [m3video] 		totalAcquire2Release in msec:       0
     [m3video] 		totalAcq2acqDelay in msec:       0
     [m3video] 		totalElapsedTime in msec:       0
     [m3video] 		numAccessCnt:       0
     [m3video] 		IVA-FPS :       0
     [m3video] 	71633: HDVICP-ID:2
     [m3video] 		totalAcquire2wait in msec:       0
     [m3video] 		totalWait2Isr in msec:       0
     [m3video] 		totalIsr2Done in msec:       0
     [m3video] 		totalWait2Done in msec:       0
     [m3video] 		totalDone2Release in msec:       0
     [m3video] 		totalAcquire2Release in msec:       0
     [m3video] 		totalAcq2acqDelay in msec:       0
     [m3video] 		totalElapsedTime in msec:       0
     [m3video] 		numAccessCnt:       0
     [m3video] 		IVA-FPS :       0
     [m3video]  
     [m3video]  *** ENCODE Statistics *** 
     [m3video]  
     [m3video]  Elasped Time           : 59 secs
     [m3video]  
     [m3video]  
     [m3video]  CH  | In Recv In Skip In User  Out Latency  
     [m3video]  Num | FPS     FPS     Skip FPS FPS Min / Max
     [m3video]  --------------------------------------------
     [m3video]    0 |      30       0        0  30 255 / 71601
     [m3video]  
     [m3video]  ================================================================= 
    
    Usecase is Active !!! 
     [m3vpss ]  ==================== MjpegLink_PrintDetails ==================== 
     [m3vpss ]  
     [m3vpss ]  *** MJPEG ENCODE Statistics *** 
     [m3vpss ]  Elasped Time           : 24 secs
     [m3vpss ]  --------------------------------------------
     [m3vpss ]  CH  | In Recv In Skip In User  Out Latency  
     [m3vpss ]  Num | FPS     FPS     Skip FPS FPS Min / Max
     [m3vpss ]  --------------------------------------------
     [m3vpss ]    0 |      61       0       56   5  11 /  13
     [m3vpss ]  ================================================================= 
    
     [host] MCFW_IPCBITS: Callback function:App_ipcBitsInCbFxn
     [host] MCFW_IPCBITS:App_ipcBitsRecvStreamFxn:INFO: periodic print.. [m3vpss ]  ==================== MjpegLink_PrintDetails ==================== 
     [m3vpss ]  
     [m3vpss ]  *** MJPEG ENCODE Statistics *** 
     [m3vpss ]  Elasped Time           : 24 secs
     [m3vpss ]  --------------------------------------------
     [m3vpss ]  CH  | In Recv In Skip In User  Out Latency  
     [m3vpss ]  Num | FPS     FPS     Skip FPS FPS Min / Max
     [m3vpss ]  --------------------------------------------
     [m3vpss ]    0 |      61       0       56   5  11 /  13
     [m3vpss ]  ================================================================= 
    
     

     *** MJPEG ENCODE Statistics ***
    [m3vpss ] Elasped Time : 24 secs
    [m3vpss ] --------------------------------------------
    [m3vpss ] CH | In Recv In Skip In User Out Latency
    [m3vpss ] Num | FPS FPS Skip FPS FPS Min / Max
    [m3vpss ] --------------------------------------------
    [m3vpss ]    0     |    61  0          56       5        11 / 12
    [m3vpss ] =================================================================

    [host] MCFW_IPCBITS: Callback function:App_ipcBitsInCbFxn
    [host] MCFW_IPCBITS:App_ipcBitsRecvStreamFxn:INFO: periodic print.. [m3vpss ]
    [m3video] *** ENCODE Statistics ***
    [m3video]
    [m3video] Elasped Time : 59 secs
    [m3video]
    [m3video]
    [m3video] CH | In Recv In Skip In User Out Latency
    [m3video] Num | FPS FPS Skip FPS FPS Min / Max
    [m3video] --------------------------------------------
    [m3video]       0 |     30   0           0         30   255 / 431651
    [m3video]
    [m3video] =================================================================

     

  • Hi Gomo,

    Following logic in the file mjpegLink_common.c controls the number of frames encoded or skipped.

    if ((pChObj->curFrameNum % pChObj->frameSkipModulo))
    {
    skipFrame = TRUE;
    }
    Can you put a printf to see what is the frameSkipModulo was is taking?
    Vps_rprintf("pChObj->frameSkipModulo is %d\n", pChObj->frameSkipModulo);
    
    
    Regards,
    Venu
  • Thanks a lot.

     pChObj->curFrameNum++;

    if ((pChObj->curFrameNum % pChObj->frameSkipModulo))
    {
    skipFrame = TRUE;
    }
    Vps_rprintf("pChObj->frameSkipModulo is %d,pChObj->curFrameNum=%d\n", pChObj->frameSkipModulo,pChObj->curFrameNum);
    Log detail, some place modify it back to default value 12.
    [m3vpss ] pChObj->frameSkipModulo is 20 pChObj->curFrameNum=837                                                 
    [m3vpss ] pChObj->frameSkipModulo is 20 pChObj->curFrameNum=838
    [m3vpss ] pChObj->frameSkipModulo is 20 pChObj->curFrameNum=839
    [m3vpss ] pChObj->frameSkipModulo is 20 pChObj->curFrameNum=840
    Channel Selected: 0,bitrate = 10000000
    Channel Selected: 0,rate control = 0
    [m3vpss ] framerateParams->FrameRate = 60
    Channel Selected: 0,frame rate = 60000
    Channel Selected: 0,IP ratio = 60
    Channel Selected: 0,qpmin = 10.qpmax = 36,qpinit = -1
    Channel Selected: 0,qpmin = 10.qpmax = 40,qpinit = 28
    Channel Selected: 0,packet size = 100
    Channel Selected: 0,encPreset = 0
    Channel Selected: 1,bitrate = 2000000
    Channel Selected: 1,rate control = 0
    [m3vpss ] pChObj->frameSkipModulo is 20 pChObj->curFrameNum=841
    [m3video] ENCLINK: new targetbitrate to set:10000000
    Channel Selected: 1,frame rate = 30000
    Channel Selected: 1,IP ratio = 30
    Channel Selected: 1,qpmin = 10.qpmax = 36,qpinit = -1
    Channel Selected: 1,qpmin = 10.qpmax = 40,qpinit = 28
    Channel Selected: 1,packet size = 100
    Channel Selected: 1,encPreset = 0
    Check_device_version : DEVICE VER = 1 !!
    [m3video] ENCLINK: new targetframerate to set:60000
    [m3video] ENCLINK: new intraFrameInterval to set:60
    [m3video] ENCLINK: new QP I Param to set:10 36 -1
    [m3video] ENCLINK: new QP P Param to set:10 40 28
    [m3video] ENCLINK: new PacketSize Param to set:100
    [m3video] ENCLINK: new Encode Preset Param to set:0
    Simple mixer control 'PGA',0
    Capabilities: cvolume cswitch penum
    Capture channels: Front Left - Front Right
    Limits: Capture 0 - 119
    Front Left: Capture 95 [80%] [47.50dB] [on]
    Front Right: Capture 95 [80%] [47.50dB] [on]
    Check_device_version : DEVICE VER = 1 !!
    [m3video] ENCLINK: new rate control algorithm to set:0
    [m3vpss ] pChObj->frameSkipModulo is 12 pChObj->curFrameNum=842
    Simple mixer control 'PCM',0
    Capabilities: pvolume penum
    Playback channels: Front Left - Front Right
    Limits: Playback 0 - 127
    Mono:
    Front Left: Playback 101 [80%] [-13.00dB]
    Front Right: Playback 101 [80%] [-13.00dB]
    Channel Selected: 0
    Force IDR on Channel: 0
    [m3vpss ] pChObj->frameSkipModulo is 12 pChObj->curFrameNum=843
    [m3vpss ] pChObj->frameSkipModulo is 12 pChObj->curFrameNum=844
    SystemInit success
    Schedule manager init success
    [m3vpss ] pChObj->frameSkipModulo is 12 pChObj->curFrameNum=845
  • As

    gomo said:
    pChObj->frameSkipModulo is 12

    1 in 12 frames is getting encoded. For for 60 frames captured in a second only 5 frames are encoded.

    Regards,

    Venu

  • I know 1 in 12 to encode, 60 frames have 5 frames to encode.

    But I set pChObj->frameSkipModulo = 20, It should have 3 frames to encode.

    where modify to 12?  I want adjust the MJPEG output fps? how to do?

  • I think the current implementation the frameRate can hardly change as it is hardcoded I think. Can you try?

    pChObj->frameSkipModulo = XYZ; // Encodes One frame every XYZ frames
    if ((pChObj->curFrameNum % pChObj->frameSkipModulo))
    {
    skipFrame = TRUE;
    }

    Regards,
    Venu
  • yes, I don't understand the run process. I modify to 5, the capture input and the output are also down.

     pChObj->frameSkipModulo = 5; //zhangjp

    if ((pChObj->curFrameNum % pChObj->frameSkipModulo))
    {
    skipFrame = TRUE;
    }
    // Vps_rprintf("pChObj->frameSkipModulo is %d pChObj->curFrameNum=%d\n", pChObj->frameSkipModulo, pChObj->curFrameNum);

    Log:
     [m3video]  CH  | In Recv In Skip In User  Out Latency                                                           
    [m3video] Num | FPS FPS Skip FPS FPS Min / Max
    [m3video] --------------------------------------------
    [m3video] 0 | 32 0 0 32 255 / 244014
    [m3video]
    [m3video] =================================================================
    [m3vpss ] 251667: CAMERA: Fields = 1922 (fps = 32), Total Resets = 0 (Avg 0 ms per reset)

    [host] MCFW_IPCBITS: Callback function:App_ipcBitsInCbFxn
    [host] MCFW_IPCBITS:App_ipcBitsRecvStreamFxn:INFO: periodic print..
    Usecase is Active !!!
    [m3vpss ] ==================== MjpegLink_PrintDetails ====================
    [m3vpss ]
    [m3vpss ] *** MJPEG ENCODE Statistics ***
    [m3vpss ] Elasped Time : 41 secs
    [m3vpss ] --------------------------------------------
    [m3vpss ] CH | In Recv In Skip In User Out Latency
    [m3vpss ] Num | FPS FPS Skip FPS FPS Min / Max
    [m3vpss ] --------------------------------------------
    [m3vpss ] 0 | 32 0 26 6 11 / 13
    [m3vpss ] =================================================================
  • hi venu,

        I had  set  the pChObj->curFrameNum to different value (such as 10, 6 ), The running result show the MJPEG have not change(5 or 6 fps), I thinks the limitation of MJPEG is on the  SIMCOP; Tomorrow,  I will use the lowpower usecase to modify the MJPEG fps.

       Can you make sure the limitation of the SIMCOP?

    Thanks a lot!

  • Hi venu,
        Yestoday, I modified the function of MjpegLink_codecCreate(), in fullfeature usecase. 
        pChObj->frameSkipModulo = 5; //12;               
       and modify your advice place to same value
       pChObj->frameSkipModulo = 5;
       if ((pChObj->curFrameNum % pChObj->frameSkipModulo))
                {
                    skipFrame = TRUE;
                }
     It do not become effective. the result have no change.   But I find the In Recv FPS also decrease.
     [m3vpss ]  ==================== MjpegLink_PrintDetails ====================                                     
     [m3vpss ]                                                                                                       
     [m3vpss ]  *** MJPEG ENCODE Statistics ***                                                                      
     [m3vpss ]  Elasped Time           : 41 secs                                                                     
     [m3vpss ]  --------------------------------------------                                                         
     [m3vpss ]  CH  | In Recv In Skip In User  Out Latency                                                           
     [m3vpss ]  Num | FPS     FPS     Skip FPS FPS Min / Max                                                         
     [m3vpss ]  --------------------------------------------                                                         
     [m3vpss ]    0 |      32       0              26             6  11 /  13                                                         
     [m3vpss ]  ================================================================= 

      So today moring, I modified like this,
                In MjpegLink_codecCreate(), 
        pChObj->frameSkipModulo = 12;               
     and modify your advice place to same value
     pChObj->frameSkipModulo = 1;
     if ((pChObj->curFrameNum % pChObj->frameSkipModulo))
                {
                    skipFrame = TRUE;
                }
     The result is incredible: tristream, we get 1080P MJPEG @62. Using VLC to see the MJPEG stream, It's very fluent.
     [host] MCFW_IPCBITS: Callback function:App_ipcBitsInCbFxn                                              
     [host] MCFW_IPCBITS:App_ipcBitsRecvStreamFxn:INFO: periodic print.. [m3vpss ]  ==================== Mjp
     [m3vpss ]                                                                                              
     [m3vpss ]  *** MJPEG ENCODE Statistics ***                                                             
     [m3vpss ]  Elasped Time           : 13 secs                                                            
     [m3vpss ]  --------------------------------------------                                                
     [m3vpss ]  CH  | In Recv In Skip In User  Out Latency                                                  
     [m3vpss ]  Num | FPS     FPS     Skip FPS FPS Min / Max                                                
     [m3vpss ]  --------------------------------------------                                                
     [m3vpss ]    0 |      62       0            0               62  11 /  21                                                
     [m3vpss ]  =================================================================
     [m3video]  *** ENCODE Statistics ***                                                                   
     [m3video]                                                                                              
     [m3video]  Elasped Time           : 28 secs                                                            
     [m3video]                                                                                              
     [m3video]                                                                                              
     [m3video]  CH  | In Recv In Skip In User  Out Latency                                                  
     [m3video]  Num | FPS     FPS     Skip FPS FPS Min / Max                                                
     [m3video]  --------------------------------------------                                                
     [m3video]    0 |      60       0        0  60 255 / 663339                                             
     [m3video]    1 |      30       0        0  30 255 / 663323                                             
     [m3video]                                                                                              
     [m3video]  =================================================================

     I don't understand why, Can you tell me? And about the frameSkipModulo value, where had it been modified again?

     BTW, next step, we plan to modify the resolution, I know  set the sensor register, but about the capture size and the RSZ setting, I need your advice.
     Maybe your a advice will get twice the result with half the effort.
     Thanks a lot!

  • Hi Gomo,

    The picture looks as if the AWB/AE algorithm is not running or not able to do the compensation. Can you confirm if you h.264 outputs of the YUV output is fine?

    If streaming is running at your end - I suggest to open the web gui and try changing the 2A vendor.

    Regards

    Rajat Sagar

  • Rajat Sagar said:

    Hi Gomo,

    The picture looks as if the AWB/AE algorithm is not running or not able to do the compensation. Can you confirm if you h.264 outputs of the YUV output is fine?

    If streaming is running at your end - I suggest to open the web gui and try changing the 2A vendor.

    Regards

    Rajat Sagar

    Thanks a lot. About the picture blue light, we had found what cause this phenomenon.

    Can you help me to resolve other questions which list in above?

  • hi all, 
      Today I try to modify the resulotion(frist stream 1080P to D1, encode to MJPEG),
    but the pic is not correct.
     /* First stream */
     pCameraOutPrm = &pCameraInstPrm->outParams[0];
     pCameraOutPrm->dataFormat = SYSTEM_DF_YUV422I_VYUY;
     pCameraOutPrm->scEnable = FALSE;
     pCameraOutPrm->scOutWidth = 720; //1920
     pCameraOutPrm->scOutHeight = 480; //1080
     pCameraOutPrm->outQueId = 0;
        The left is D1 H.264, the right is D1 Mjpeg; It's can see the MJPEG stream scene is
    small than the H.264, it seem to cut out the scene of right corner.
    Anybody can give me some advices?
  • gomo said:
    I don't understand why, Can you tell me? And about the frameSkipModulo value, where had it been modified again?

    Answer is simple, when 

    gomo said:
     pChObj->frameSkipModulo = 1;

    all the frames coming to the MJPEG Link is encoded and none is skipped.

    When 

    gomo said:
    pChObj->frameSkipModulo = 5;

    The following is fine, as it encoded one frame every 5 frames. 

    gomo said:
    [m3vpss ]  *** MJPEG ENCODE Statistics ***                                                                      
     [m3vpss ]  Elasped Time           : 41 secs                                                                     
     [m3vpss ]  --------------------------------------------                                                         
     [m3vpss ]  CH  | In Recv In Skip In User  Out Latency                                                           
     [m3vpss ]  Num | FPS     FPS     Skip FPS FPS Min / Max                                                         
     [m3vpss ]  --------------------------------------------                                                         
     [m3vpss ]    0 |      32       0              26             6  11 /  13                                                         
     [m3vpss ]  ================================================================= 

    This means during the statistics collection window, 32 frames have arrived in the mjpeg link out of which 6 frames are encoded. the following encoded frame pattern might be one possibility in time window.

    ENC|SKIP|SKIP|SKIP|SKIP|ENC|SKIP|SKIP|SKIP|SKIP|ENC|SKIP|SKIP|SKIP|SKIP|ENC|SKIP|SKIP|SKIP|SKIP|ENC|SKIP|SKIP|SKIP|SKIP|ENC|SKIP|SKIP|

    Totally 6 frames encoded and 26 frames skipped.

    Regards,

    Venu

  • Thanks for your reply, we understand the frame skop and have found where chage the frameSkipModulo, in the function of Init_StreamEnv(), it will  callback SetCamDayNight() to set Mjpeg frame rate to 5, so the frameSkipModulo will become back to 12;

    gomo said:

    pChObj->curFrameNum++;

    if ((pChObj->curFrameNum % pChObj->frameSkipModulo))
    {
    skipFrame = TRUE;
    }
    Vps_rprintf("pChObj->frameSkipModulo is %d,pChObj->curFrameNum=%d\n", pChObj->frameSkipModulo,pChObj->curFrameNum);

    Log detail, some place modify it back to default value 12.
    [m3vpss ] pChObj->frameSkipModulo is 20 pChObj->curFrameNum=837 
    ....

    [m3vpss ] pChObj->frameSkipModulo is 12 pChObj->curFrameNum=842

    [m3vpss ] pChObj->frameSkipModulo is 12 pChObj->curFrameNum=843
    [m3vpss ] pChObj->frameSkipModulo is 12 pChObj->curFrameNum=844
    SystemInit success
    Schedule manager init success

    Now, we try to change resolution of output. we want to modify 1080P H.264 to output 720P 
    H.264. It's very unfavorable.Can you give us some advices?
    Maybe your a advice will get twice the result with half the effort.
    Thanks a lot.