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.

How to reset capture link or flush buffer of capture link?

Hi, 

Can I reset capture link or flush buffer of capture link?(stop(flush) --> start)

I tried to stop capture link then start capture, but it cannot work when start capture.

Thanks

  • What is the issue you see when you stop and start capture link ? Why are you trying to stop and start capture link ?

  • Hi, 

    I want to flush buffer of capture link.

    Our application will remove video input. If user remove video input(SDI cable), VIP will capture illegal frame.

    So I need to flush all buffer when cable removed.

    When I stop and start capture link, FVID2_dequeue() cannot get any frame. I have checked  the frameList.numFrames is zero.

    Thanks

  • Can you configure VIP to skip all fields when you remove input cable.Changes are below:

    /dvr_rdk/mcfw/src_bios6/links_m3vpss/capture/captureLink_tsk.c

                case CAPTURE_LINK_CMD_SKIP_ODD_FIELDS:

                   CaptureLink_drvSkipOddFields

     

    To skip all fields capture driver skip mask should be set to

     

    +                     case CAPTURE_LINK_ALL_FIELD_SKIP:

    +                    {

    +                        pChObj->frameSkipMask = 0xFFFFFFFF;

    +                        break;

    +                    }