I would strongly suggest you to get Ryzen 5 2600 or 2600x as ryzen CPU performs better than intel in multicore performance so you will get a better experience eof streaming on ryzen 5 comparing to I5 8400.
Also if you are going with ryzen 5 CPU (which I strongly recommend ) then buy a faster RAM aleast of 3000MHz