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.

Fill blank window in swms with blue Box

Hello everyone

In my usecase, if there is no video input for the window in swms, the window appears as black box;

While the video source pauses or be removed, the corresponding window in swms will appear to show the last frame of the video source;

How can I fill the window with blue box while there is no viedeo source or the video source be removed?

Thanks for your response!

  • How to fill in the dataframe by myself?

    If there is no camera,fill the databuf 0x00 then the windows can be black. But,where is the pointer to the databuf?

  • I am not clear on what you want to do. Pls provide more details.

    Do you want the SwMs blank window to display blue color ?

        - The system blank video frame is common and used in several modules like SwMs and display. If you want to change it to blue color modify

        /dvr_rdk/mcfw/src_bios6/links_m3vpss/swMs/swMsLink_drv.c

        Int32 SwMsLink_fillBlankDataPattern(FVID2_Format * pFormat,  FVID2_Frame * pFrame)

       to set whatever color you want.

    Are you currently seeing the last video and instead you want to show blank video frame ?

        - If you detect video loss you can invoke Vdis_flushSwMs setting holdLastFrame = FALSE which will blank the window.

  • Thanks, I have set color I want.

    Furthur question, how can I detect video loss when one camera be removed

    Thanks for any reply!

  • The external Video decoder you are using to capture video should support a video loss detection feature.