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.

Change the frame rate with IPCAM DM355

Hello,

I want to know how I can change the frame rate of the encoder camera evaluation IPNC DM355, I tried to change several settings but without effect, I use VLC to watch the video.

Thank you for specifying the parameter to change for a change of frame rate.

  • Hi,

    There is a web based GUI in DM355 IPNetwork Camera Reference Design. The GUI allows you to change the framerate for each individual stream. Please refer to the user guide on details of using the GUI.

    Regards,

    Anshuman

  • Thank you for your reply

    yes I know this but I want to change the frame rate directly in the soft

    Regards,

    Rblode.


  • Hi,

    On DM355 IP Camera, we do change the frame rate directly at the capture thread. We call V4L2_CID_FRM_CTRL ioctl in capture.c and this is used to change the overall frame rate.

    Other options to change the framerate are listed below:

    1. Have some sort of frame skip mask in video1.c and control the calling of encodeVideoBuffer() function.

    2. Change the dynamicParams.targetFrameRate parameter in video1.c file

    Regards,

    Anshuman

     

  • Hi,

    Anshuman Saxena said:
    On DM355 IP Camera, we do change the frame rate directly at the capture thread. We call V4L2_CID_FRM_CTRL ioctl in capture.c and this is used to change the overall frame rate.

    I added this in the capture.c thread after the Set the video capture format and no effect , here is the lines that i added :

     /*set the frame rate */

      ctrl.id = V4L2_CID_FRM_CTRL;
      ctrl.value = 7500;

      fprintf(stderr,"V4l2_Sensor_Frame_Rate = %d \n", 7500);

      if (ioctl(fd, VIDIOC_S_CTRL, &ctrl) == -1) {
        ERR("VIDIOC_S_CTRL failed on %s (%s)\n", V4L2_DEVICE, strerror(errno));
        return FAILURE;
      }

    Anshuman Saxena said:
    2. Change the dynamicParams.targetFrameRate parameter in video1.c file

    I changed the dynamicParams.targetFrameRate in video1.c abd no effect too.

    Reagrds ,

    Rblode

  • Hi,

    Anshuman Saxena said:
    On DM355 IP Camera, we do change the frame rate directly at the capture thread. We call V4L2_CID_FRM_CTRL ioctl in capture.c and this is used to change the overall frame rate.

    I added this in the capture.c thread after the Set the video capture format and no effect , here is the lines that i added :

     struct v4l2_control ctrl;

     /*set the frame rate */

      ctrl.id = V4L2_CID_FRM_CTRL;
      ctrl.value = 7500;

      if (ioctl(fd, VIDIOC_S_CTRL, &ctrl) == -1) {
        ERR("VIDIOC_S_CTRL failed on %s (%s)\n", V4L2_DEVICE, strerror(errno));
        return FAILURE;
      }

    Anshuman Saxena said:
    2. Change the dynamicParams.targetFrameRate parameter in video1.c file

    I changed the dynamicParams.targetFrameRate in video1.c and no effect too.

    Reagrds ,

    Rblode