There have been struggles between migrants and police in the Hungarian town of Bicske.
Chaos broke out as their train, bound for Austrian border, stopped at Bicske, 35 kilometres outside Budapest.
Riot police ordered them off, but many resisted, lying on the train tracks or running away.
Some wrestled with police, trying to get back on board.
There is a migrant reception facility at Bicske.
Another train has pulled into Bicske station and people have been allowed to board it.
Its destination, however, is unknown.
Why has the focus moved on from Budapest?
The migrants left Budapest’s main railway station on Thursday morning after police stepped aside and let them in.
2,000 had been camped in and around the station for two days.
International services are suspended so they boarded local trains, believing they were heading for Austria and Germany.