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.

Motion detection with 3MP



Hi,

I am using a resolution of 3MP on dm368IPNC camera. I noticed that motion detection doesn't work at MP resolution. Is there anyway to change the source code to enforce motion detection at MP resolutions? The frame rate doesn't matter for me. 

Regards,

 

Bernhard,

  • Are you using MJPEG stream? Motion Detection algorithm is tied to the motion vectors generated by video encoder (like H.264 and MPEG4). For MJPEG, we disable motion detection. In IPNC ver2.5 or above, we have motion detection enabled for all H.264 or MPEG4 usecases. Can you please confirm the same?

    The code that takes care of it is in av_serverAPI.c and videoEncodeThr.c in the IPNC application layer.

    Regards,

    Anshuman

    PS: Please mark this post as verified, if you think it has answered your question. Thanks.

  • Hi,

    Yes I am using MJPEG with 3MP resolution because H264 encoding doesn't work with 3MP. So it means there is no way to enable motion detection for 3MP? 

    Moreover, I have another question. I will appreciate if you answer. I asked this question before but it still remains unanswered. I wanna capture MJPEG images from the camera to my pc in a c++ application to do some image processing. I tried FFMPEG but it has some problem understanding the mjpeg format from the camera and I receive error message "mjpeg: unsupported coding type". However, the streaming works fine in VLC. 

    Can you please suggest something to capture MJPEG images?

    Regards,

    Bernhard,

  • Hi,

    Which version of IPNC are you using? Do you want to use MJPEG only or do you want H.264? If MJPEG, then we cannot get motion detection enabled in the IPNC, because we use the motion vectors from the codec. JPEG encoder does not give motion vectors. We need to think of some other way of motion detection.

    We use FFMPEG based player that we use on the browser to play the MJPEG streams. I will have to check with the team working on it to find the exact version of FFMPEG and any specific modifications done to get MJPEG working.

    Regards,

    Anshuman

    PS: Please mark this post as verified, if you think it has answered your question. Thanks.