Edge Detection on video not working on Pynq-z2

So i was trying to implement edge detection on video using HDMI input and output on a pynq -z2 board. I used the HDMI in demo project to interface the complete HDMI input and output interface and then I had an IP of sobel filter that works fine for an image. I just integrated the IP after the video in to AXI4 stream and then transfer the output of this IP to the VDMA. No other changes have been made in the project and there is no change in the Vitis portion. I have also integrated an IP named interface that is just for other things but right now I am using it to convert every pixel from RGB to grayscale. I am getting some different behaviour and not able to debug it. I am attaching the drive link for the project file and the video for demonstration.