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.

dec framerate can not to 60fps

hi all,now i do a test for the 8168 dec ,i read 2 h264 file to dec ,

while (1)
{
unsigned char* pt = streamBuf + 4;
unsigned char* pNal = streamBuf;
while (pt - streamBuf < size && m_running)
{
if (pt[0] == 0 && pt[1] == 0 && pt[2] == 0 && pt[3] == 1)
{
int nalSize = pt - pNal;
#if 1
ITCM_decPutBuffer(chId,pNal,nalSize);
#endif
pNal = pt;
pt += 4;
OSA_waitMsecs(17);
}
else
{
pt++;
}
}
}

but i found that will can not be decoded ,just the wait time is 19ms that can be decoded. so why?

19ms that means just about 53 fps,can not be to 60fps?

then i do a loopback+dec file test,just 1 enc ch+2 dec,i found that that dec file channel just can be 53fps,the loopback can be 60fps

that following is my configure

static SystemVideo_Ivahd2ChMap_Tbl systemVid_encDecIvaChMapTbl =
{
.isPopulated = 1,
.ivaMap[0] =
{
.EncNumCh = 1,
.EncChList = {0},
.DecNumCh = 0,
.DecChList = { 0},
},
.ivaMap[1] =
{
.EncNumCh = 1,
.EncChList = {1},
.DecNumCh = 1,
.DecChList = {1},
},
.ivaMap[2] =
{
.EncNumCh = 0,
.EncChList = {0},
.DecNumCh = 1,
.DecChList = {0},
},


};

  •  i do the test for 1  channel 60fps 1080P  loopback ,(1 enc +1 dec) and other 1 channel dec most about 45fps.

    i do 2 channel 1080P dec ,about each channel about 52fps,so i think the 2 dec most can dec about 105fps,can not be 120 fps for 2 channel dec?

    so whether the hardware have problem? 

  • Hardware can do 3 channel 1080P60 .Share logs of Vsys_printDetailedStatistics collected 3 times with 1 min interval.

  • i use the my own board.the app run  log is below:

    when wait 30ms the video is not in disorder

    7077.wait30ms.txt

     

    but if i wait 16ms the video is in disorder

    the log is below:

    1581.wait16ms.txt

    channel 0 is for loopback

    channel 1 is for read file to dec.

    the read file algorithm is above

    tks

  • You ivaMap is wrong. You have 2 decoder on IVA2 and 1 encoder on IVA0 and have not used IVA1 at all.Distribute equally.

    Also your swms scaler assignment is wrong. You cannot do 2 channel 1080P60 fps scaling with one scaler. Make sure you assign different scaler instID for each 1080P60 channel. Or you could enable lowCostScaling to skip alternate lines and use two scalers.

  • hi Badri ,thanks for your help ,that is my swms scaler set error,i have fix it

    i use the IVA1 for 1 enc and 1 dec,like following:

    that configure can fix 2 dec+1 enc or 2 enc +1 dec.it is you told me before 

    static SystemVideo_Ivahd2ChMap_Tbl systemVid_encDecIvaChMapTbl =
    {
    .isPopulated = 1,
    .ivaMap[0] =
    {
    .EncNumCh = 1,
    .EncChList = {0},
    .DecNumCh = 0,
    .DecChList = { 0},
    },
    .ivaMap[1] =
    {
    .EncNumCh = 1,
    .EncChList = {1},
    .DecNumCh = 1,
    .DecChList = {1},
    },
    .ivaMap[2] =
    {
    .EncNumCh = 0,
    .EncChList = {0},
    .DecNumCh = 1,
    .DecChList = {0},
    },


    };

    i also want to know whether this configure is suitable for the 2 enc 1080p + 16CIF dec ? 

     

    or i can set the configure like following:

    .isPopulated = 1,
    .ivaMap[0] =
    {
    .EncNumCh = 1,
    .EncChList = {0},
    .DecNumCh = 0,
    .DecChList = { 0},
    },
    .ivaMap[1] =
    {
    .EncNumCh = 1,
    .EncChList = {1},
    .DecNumCh = 1,
    .DecChList = {1},
    },
    .ivaMap[2] =
    {
    .EncNumCh = 0,
    .EncChList = {0},
    .DecNumCh = 15,
    .DecChList = {0,2,3,4,5,6,7,8,9,10,11,12,13,14,15},
    },

  • The ivaMap is correct but the logs you have shared doesn't correspond to this ivaMap. You can see for yourself in the log where IVA FPS for one on the HDVICP is zero which indicates no channel is allocated to that IVAHD.

    Anyhow the main issue in your usecase is the SWMS scaler assignment. You need to fix that

  • OK ,thanks for your help badri.i want to know whether you know how to solve the following question:

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/p/323057/1126757.aspx#1126757