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.

problems of FileRead->decode->FileWrite in DM8168

Hi,

     Now,I want use the DM8168 to realize the function of "FileRead->decode->FileWrite ",first read .h264 file ,then decode the.h264 file ,i want save the decode data to a file  in A8 side.my DVR_RDK Vertion is " DVRRDK_04.00.00.03"  .

   i have some questions:

     1. now my link structure is  

Ipc_bits_out_A8->Ipc_bits_in(vedio)->Dec->Ipc_Out(vedio)->Ipc_Invpss->Ipcframe_outvpsstohost->IpcframeInhost(or IpcbitInhost)

   i donnot know if the link is true .

    2.above the link structure i want to realize filewrite function ,how to get the data from link of  IpcframeInhost or IpcbitInhost .

    Thanks very much.

   ouyang

  • Link structure you have mentioned is correct. Last link should be ipcFramesInHost.

    Pls refer  http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/p/291937/1020114.aspx#1020114 where similar usecase was created.

     

  • Hi Badri,

          Thanks for you replay.i have read the  post you have mentioned ,but i still cannot understand how  to get the decode output data.could you give me some advise.

          now i have  a question in the directory of DVRRDK_04.00.00.03/dvr_rdk/demos/mcfw_api_demos/mcfw_demo there some function to realize  the bit  file write function or frame write function.

           In the file of demo_vcap_venc_vdis_bits_wr.c the function  of Venc_getBitstreamBuffer() to get the bit buf data and write to the file .

          In the file demo_vcap_venc_vdis_ipc_frames_exch.c the function of  Vcap_getFullVideoFrames() to get the frame buf data and write to the file.

          But now ,from above link structure ,we donnot use the vcap,and venc,so i donot know how to get  the file write data .

          Thanks vrey much.

    ouyang

  • Hi,

           Above the following links i want to realise the FileRead->Decode->FileWrite Usecase ,i used it by follow link structure.

        Now,i have the following problems:

           i mearsue the recvived frames in IpcFramesInHost and IPC_IN(VPSS) side ,it only receive the first few frames of data but i use the demo of VdecVdis the link of IPC_IN(VPSS) can receive lots of the frame date .and attatched is the log txt mearsured in different link structure.

             I donnot know what the problem, Could you give me offers or sugesstions,thansk a lot.

        Ouyang7266.log.txt

  • Ensure you are freeing the buffers received in ipcFramesInHost back.

  • Hi  Badri,

       Thanks for you replay ,after the link structure finishec ,i call a thread function  to write data to a file which is opened. and i consider the date is come from the  ipcFramesInHost  side.

     The main thread function and my commments are follows:

     VIDEO_FRAMEBUF_LIST_S bufList;

      while (FALSE == thrObj->exitFramesInOutThread)       //it will always run if the thread is start

      {

        status =  Vcap_getFullVideoFrames(&bufList,0);  //it get a bit buf from the link of  ipcFramesInHost  side

       Vdectohost_ipcFrameFileWrite(&bufList);    //write  the frame date to file

        status = Vcap_putEmptyVideoFrames (&bufList);  //freeing the buf in the link of  ipcFramesInHost  side

    }

         1. how can i do to free the buffers received in  ipcFramesInHost back.

        2. I think  the function of Vcap_putEmptyVideoFrames () realize  freeing the buffers received in ipcFramesInHost

    is that right.

        3. Between different link  what mechanism is based on the data transfer.

          Thanks a lot.

    ouyang.