The process produces hydrogen and carbon dioxide, which are combined by enzymes and microbes to form methane, a gas that escapes from both ends of a cow in a never-ending series of farts and burps.