A method for processing a video content in a video processor, the method comprising: determining one or more object contours of one or more moving objects in said video content; creating a first Object Bounding Box that encompasses a first object contour of a first moving object based on said determined said one or more object contours; infilling said first object contour of the first moving object in a first destination image frame; and dynamically generating a first object mask for said first moving object in the first destination image frame based on infilling of said first object contour in said created said first OBB; characterized in that the step of infilling comprising: setting all pixels in said first destination image frame to a first pixel value corresponding to a color gray; extracting color attributes from said determined said first object contour such that a second pixel value is set in said determined said first object contour, the second pixel value corresponding to a color white; setting all pixels in regions within the first object contour and in a rectangular area outside the first object contour in the said first OBB to a third pixel value corresponding to a color black; copying said created said first OBB to said first destination image frame at a predetermined location; detecting whether a first pixel in said first OBB has said third pixel value, and a second adjacent pixel in said first destination image frame has said first pixel value; assigning said first pixel value to said detected said first pixel when said adjacent second pixel is detected with said first pixel value; assigning said second pixel value to one or more pixels in said first OBB having the third pixel value for said infilling of said first object contour, when two adjacent pixels in said first OBB are not detected with said third pixel value and said first pixel value. determining one or more object contours of one or more moving objects in said video content; creating a first Object Bounding Box that encompasses a first object contour of a first moving object based on said determined said one or more object contours; infilling said first object contour of the first moving object in a first destination image frame; and dynamically generating a first object mask for said first moving object in the first destination image frame based on infilling of said first object contour in said created said first OBB; characterized in that the step of infilling comprising: setting all pixels in said first destination image frame to a first pixel value corresponding to a color gray; extracting color attributes from said determined said first object contour such that a second pixel value is set in said determined said first object contour, the second pixel value corresponding to a color white; setting all pixels in regions within the first object contour and in a rectangular area outside the first object contour in the said first OBB to a third pixel value corresponding to a color black; copying said created said first OBB to said first destination image frame at a predetermined location; detecting whether a first pixel in said first OBB has said third pixel value, and a second adjacent pixel in said first destination image frame has said first pixel value; assigning said first pixel value to said detected said first pixel when said adjacent second pixel is detected with said first pixel value; assigning said second pixel value to one or more pixels in said first OBB having the third pixel value for said infilling of said first object contour, when two adjacent pixels in said first OBB are not detected with said third pixel value and said first pixel value. setting all pixels in said first destination image frame to a first pixel value corresponding to a color gray; extracting color attributes from said determined said first object contour such that a second pixel value is set in said determined said first object contour, the second pixel value corresponding to a color white; setting all pixels in regions within the first object contour and in a rectangular area outside the first object contour in the said first OBB to a third pixel value corresponding to a color black; copying said created said first OBB to said first destination image frame at a predetermined location; detecting whether a first pixel in said first OBB has said third pixel value, and a second adjacent pixel in said first destination image frame has said first pixel value; assigning said first pixel value to said detected said first pixel when said adjacent second pixel is detected with said first pixel value; assigning said second pixel value to one or more pixels in said first OBB having the third pixel value for said infilling of said first object contour, when two adjacent pixels in said first OBB are not detected with said third pixel value and said first pixel value.