A man who was filmed brandishing a gun during a "heated family argument" on Brierley Hill Road has been jailed.