Hungarian authorities are stopping all trains from leaving Budapest's main train terminal in an effort to prevent migrants from using it to leave for Austria and Germany.

An announcement over the station's loudspeakers Tuesday said the measure would be in effect for an undetermined length of time.

Scuffles broke out earlier in the morning among some of the hundreds of migrants as they pushed toward metal gates at the platform where a train was scheduled to leave for Vienna and Munich, and were blocked by police.

Several say they spent hundreds of euros for tickets after police told them they would be allowed free passage.

Police in Vienna say 3,650 migrants arrived from Hungary Monday at the city's Westbahnhof station. They say most continued on toward Germany.