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.

Save encode stream to SD card

Other Parts Discussed in Thread: DM385, TVP5158

Hello everyone

We have customized board, cpu is DM385, M3 is running IPNC RDK 3.5 firmware.

I running usecase is ENC_A8_DEC_USE_CASE, it's normal working.

I wish save H264 file to SD card, when the encode stream to A8.


can I refer which file or document ?

thank you very much!

  • Hi vic lin,

    I don't know about  availability of any document of this. But I can help you to point out the SD card dump code already available in ipnc. Only thing you need to enable the appropriate flags and resolve few dependencies.
    Please go through the ti_mcfw_ipcbits.c in mcfw_demos. Please find the below function App_streamSysVidWrite(). It will give you clearer picture of this.

  • Hi Ravikiran

    Thank you very much for your reply.

    I will try it and let you know the result : )

  • Hello ravikiran hv

    Now the encode file can be store to SD card.

    data flow is :

    ENCODE (M3-VIDEO) --> BITS OUT (M3-VIDEO) --> BITS IN(A8) --> Store to SD Card.

    By the way, I have a question the same with you

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/t/223906.aspx

    I wanted use WDR or GLBCE library, I refer usecases: multich_quadstream_noisefilter and  multich_tristream_fullfeature the camera setting

    **************************************************************

    gVcamModuleContext.glbceId = glbceId;
    CameraLink_CreateParams_Init(&cameraPrm);

    cameraPrm.captureMode = CAMERA_LINK_CAPMODE_DDR;
    cameraPrm.outQueParams[0].nextLink = glbceId;

    /* This is for TVP5158 Audio Channels - Change it to 16 if there are 16 audio channels connected in cascade */
    cameraPrm.numAudioChannels = 0;
    cameraPrm.numVipInst = 1;
    cameraPrm.tilerEnable = FALSE;
    cameraPrm.vsEnable = 0; //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_BAYER_RAW; //SYSTEM_DF_RAW;
    pCameraInstPrm->sensorOutWidth = 1280;
    pCameraInstPrm->sensorOutHeight = 720;
    pCameraInstPrm->standard = SYSTEM_STD_720P_60; //SYSTEM_STD_720P_60; //SYSTEM_STD_1080P_60;
    pCameraInstPrm->numOutput = 1;

    /* First stream */
    pCameraOutPrm = &pCameraInstPrm->outParams[0];
    pCameraOutPrm->dataFormat = SYSTEM_DF_BAYER_RAW;
    pCameraOutPrm->scEnable = FALSE;
    pCameraOutPrm->scOutWidth = 1280;
    pCameraOutPrm->scOutHeight = 720;
    pCameraOutPrm->outQueId = 0;

    /* 2A config */
    cameraPrm.t2aConfig.n2A_vendor = gUI_mcfw_config.n2A_vendor;
    cameraPrm.t2aConfig.n2A_mode = gUI_mcfw_config.n2A_mode;

    **************************************************************

    SDTV out preview is work.

    but color is wrong. do you have any idea?

    Thank you very much again.

  • Have you verified ISIF and IPIPE CCOLD  registers?