Antihydrogen, the lightest atom consisting purely of antimatter, is an ideal laboratory to study the CPT symmetry by comparison with hydrogen. With respect to absolute precision, transitions within the ground-state hyperfine structure (GS-HFS) are most appealing by virtue of their small energy separation. ASACUSA proposed employing a beam of cold antihydrogen atoms in a Rabi-type experiment, to determine the GS-HFS in a field-free region. Here we present a measurement of the zero-field hydrogen GS-HFS using the spectroscopy apparatus of ASACUSA's antihydrogen experiment. The measured value of νHF=1,420,405,748.4(3.4) (1.6) Hz with a relative precision of 2.7 × 10−9 constitutes the most precise determination of this quantity in a beam and verifies the developed spectroscopy methods for the antihydrogen HFS experiment to the p.p.b. level. Together with the recently presented observation of antihydrogen atoms 2.7 m downstream of the production region, the prerequisites for a measurement with antihydrogen are now available within the ASACUSA collaboration., Comparing the ground-state hyperfine structure of antihydrogen to that of hydrogen will provide insights into CPT symmetry in nature. Here the authors report the most precise in-beam measurement of this quantity for hydrogen to demonstrate the viability of ASACUSA's setup to measure it in antihydrogen.