I am using ipnc rdk 3.8, with DM388 IPNC. I wanted to use our custom streaming server. I am using GetAVData() method to get the encoded streams. However, I am stuck at LockFrame() function and it always returning RET_ERROR_OP or RET_OVERWRTE. I am using AV_OP_LOCK_MP4 to get H.264 stream . Is this correct?
pls check the relevant code below:
if(ApproDrvInit(BOA_MSG_TYPE) < 0) {
exit(1);
}
if (func_get_mem(NULL)) {
ApproDrvExit();
exit(1);
}
while (1)
{
ret = GetAVData(AV_OP_LOCK_MP4,1,&av_data);
if (ret == SUCCESS)
{
GetAVData(AV_OP_UNLOCK_MP4,1,NULL);
......................
}
else if (ret == RET_NO_VALID_DATA)
{
printf("No Valid Data.\n");
}
}
Is this the correct way to get H.264 frames in a different process?
Best Regards
JK
