Hello everyone.
I try to make a client software for TMDXIPCAM8127 and the DM368IPNC. I use live555 to communicate with cameras and get data, and ffmpeg to decode it in real time.
Now I add the ffmpeg function in the live555 function H264VideoFileSink::afterGettingFrame1(unsigned frameSize, struct timeval presentationTime) like this:
avcodec_decode_video(pCodecCtx, pFrame, &frameFinished, FileSink::fBuffer, (int)frameSize);
And it works successfully with the TMDXIPCAM8127. But when working this the DM368IPNC, the function avcodec_decode_video() cannot decode the frame buffer, it returns a "-1" and the "frameFinished" is "0".
At the same time, other methods like storing data into file with live555 and then play it with ffmpeg, or playing directly by opencv, all work successfully.
So can anyone tell me what is the problem? Thank you!