Well, I hear you and you have a point. But because I am me I will not leave it to that. I will argue that you don't know if the reason they cough at you is racism. (It might as well be as like I have said I believe there are many racists people in Japan).
In that video the coughing guy might as well had just been annoyed by the twat who was video filming himself while walking like a complete asshole. While I would not cough like that, I couldn't even if I wanted to in the first place as that was a very impressive cough, I would still probably give the guy a stinky eye for being a waste of public space.
Also like
@drlucozade88 said these random asshole guys do that same thing to Japanese people too. So instead of being a racist, like you claim, I do now declare he was actually just the opposite! He wanted to treat that foreign twat exactly the same way he would have treated any native Japanese person.
So next time when someone farts in your general direction please do not take it as an act of racism. It actually means you are a valued and recognised part of the society; it's the sign you belong!