Your AVI uses the RGB24 colour space format, which is not compatible with certain filters you've used.
Amend the first line to:
AviSource("D:\Brave Little Toaster\merged2.avi").ConvertToYUY2()
Your AVI uses the RGB24 colour space format, which is not compatible with certain filters you've used.
Amend the first line to:
AviSource("D:\Brave Little Toaster\merged2.avi").ConvertToYUY2()