And adding total_mem=2048 to config.txt did not fix the problem for me.
My output channels is only 2 as suggested.
My refresh rate is 60HZ as suggested.
I turned off hardware acceleration as one person suggested.
These are all suggestions from this thread. None of them worked.