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 overlay video using RDK?

Hi,

We are having a usecase in which we need capture 2 video streams and display them
overlayed on eachother.

How can we overlay two captured videos using RDK?
we are using RDK 4.1.

we have gone through TRM of 81XX and it shows that it has 2 video & 3 graphics plane
and with use of display compositor one can overlay these planes on single display device.

How RDK uses video & graphics plane or how can we use two video planes in RDK to display
one video overlayed on second?

Thanks in anticipation.

Regards,
shashank.

  • Hi Sivagamy,

    Thanks a lot for your reply.
    Due to some unknown reasons, I am not able to view your reply on this thread so I am
    attaching it as inline below for further conversation.

    "2 video planes are not really required. You can do PIP using software mosaic link.
    There are examples for PIP layout in DVR RDK use cases."

    I got your point to use software mosaic for PIP. Thanks for the help.

    I am having one more query.

    In our usecase we want to capture two 1080p 60 fps videos and third video stream will come via ethernet in encoded format.
    Two of which will be overlayed on each other with there fix position in layout and third video needs to be scrolled over them.

    As a referance with PIP usecase of sw mosaic , we feel this can be done by overlaying the third video over the two videos.

    Now if we want to scroll the third video, on top of the two videos, we need to change sw mosaic layout frequently with different positions of third video so we can simulate scrolling effect of third video over other two videos.

    We are not sure about how frequently we can change the sw mosaic layout or what should be the minimum
    time between two sw mosaic layout change commands so that we can get required performance without any
    flicker or artifacts on display with 1080p60fps videos.

    Would you please confirm that we are thinking in right direction or not?
    or
    Would you please suggest any other way to achieve the desire usecase?

    Thanks in anicipation.

    Regards,
    Shashank.

  • Using 2 video planes would have been a bette4r choice, but we dont have support in software right now. The only option available is using software mosaic.

    SW mosaic layout change is done via messaging. As you have explained this would be much frequent if you want to show a scrolling video and you may not get the visual effect as per the speed of sending layout change requests.

    In such cases, you could modify software mosaic link code to operate in specical mode of using varying coordinates for this scrolling stream on successive frames processing. This is just a suggestion, we have not coded / verified the effectiveness of this scenario.