Hungarian police halted a train packed with migrants and refugees who thought they were bound for the Austrian border, and tried to force them to disembark in a town with a detention camp.

Disappointed migrants started chanting "No camp!" Some tried to flee on foot down the tracks, and one family threw themselves onto the tracks and appealed to journalists for help. Police in helmets and body armour moved in and lifted the man off of his wife and child. Officers later handcuffed and carried him away. The woman and infant were escorted off the tracks but not detained.

Migrants Hungary train Germany Austria
A man and woman attempt to shield their baby from police as they lie on the tracks at the railway station in the town of Bicske, west of Budapest, HungaryLaszlo Balogh/Reuters
Migrants Hungary train Germany Austria
Hungarian police pull a man away from his wife and baby as they lie on the railway tracksLaszlo Balogh/Reuters
Migrants Hungary train Germany Austria
Hungarian policemen stand over a woman clutching a baby at the railway station in the town of BicskeLaszlo Balogh/Reuters

Other migrants scuffled with police and forced their way back on to the train's carriages, where a stand-off in the sweltering sun began.

Police delivered water to the migrants, but many tossed the bottles back, expressing fears that police might have spiked the water and wanted to sedate them.

Migrants Hungary train Germany Austria
A migrant and a young girl get fresh air from a window above a sign calling for help and reading "children need air, we death's"Attila Kisbenedek/AFP
Migrants Hungary train Germany Austria
A man holds a crying boy out of a train from Budapest that was stopped in Bicske, west of the Hungarian capitalAttila Kisbenedek/AFP
Migrants Hungary train Germany Austria
A man cares for a crying baby on the platform in BicskeAttila Kisbenedek/AFP
Migrants Hungary train Germany Austria
People's hands are seen at a train window as they try to get fresh airAttila Kisbenedek/AFP
Migrants Hungary train Germany Austria
A man holds a drawing bearing the words "Germany" and "No camp" as the train stops in the town of BicskeBernadett Szabo/Reuters
Migrants Hungary train Germany Austria
A medic helps a man who fell ill on a train in Bicske, west of the Hungarian capitalAttila Kisbenedek/AFP

Hungarian police then forced journalists and photographers away from the scene.

The train's departure from Budapest followed a two-day standoff with police barring entry to the station to more than 2,000 migrants. Eventually the police stepped aside and the crowd surged past. Some were wary of boarding trains, unsure where they were headed. "We want to go to Germany but that train in the station, maybe it goes nowhere. We heard it may go to a camp. So we will stay out here and wait," said a 17-year-old Syrian.

The hundreds who boarded the train crammed aboard, clinging to doors and squeezing their children through open carriage windows.

Migrants Hungary train Germany Austria
Migrants and refugees enter the doors of Keleti station after it was reopenedMatt Cardy/Getty Images
Migrants Hungary train Germany Austria
Matt Cardy/Getty Images
Migrants Hungary train Germany Austria
Migrants and refugees board a train after Budapest's Keleti station was reopenedMatt Cardy/Getty Images
Migrants Hungary train Germany Austria
Migrants and refugees board a train with a German flag on its side at Keleti station in BudapestMatt Cardy/Getty Images

But instead of proceeding to the Austrian border, the train was stopped just west of Budapest in the town of Bicske, where Hungary has a migration reception centre. Many of the migrants and refugees on the train had left the overcrowded asylum detention centre just days before.