I remember natural gas vehicles (busses and cars, like the honda civic). You could actually fill up at home if you had natural gas, but the electricity just to compress the natural gas for the car cost as much or more than the compressed fuel in the car.
For hydrogen, it is even harder. take a look at cars running compressed hydrogen. I remember $17 for the equivalent of a gallon of gasoline. I think it is even more expensive now.
Easier to burn CH4 than use energy to split out the H2, then compres it, then store it.
I actually think solar is better.