BUDAPEST - More than 1,000 migrants stranded for days at Budapest's main train station left the building on Friday, intent on walking to the Austrian border, according to an AFP journalist on the scene.

The huge crowd included people in wheelchairs and on crutches, as well as parents carrying children on their shoulders, all prepared to march 175 kilometres (110 miles) to the border.

"We are very happy that something is happening at last, The next stop is Austria. The children are very tired, Hungary is very bad, we have to go somehow," 23-year-old Osama from Syria said.

The migrants were part of an estimated 2,000 people stuck in makeshift refugee camps at Keleti station, after railway authorities had blocked them from boarding trains to Austria and Germany because they lacked EU visas.

Police watched the silent migrants walk through the Hungarian capital but did not intervene, the AFP correspondent said, adding there was no sign of conflict at the moment.

The march was causing traffic jams on the main route into the city from the western Buda area.

It came as Hungarian lawmakers debated tough new anti-immigration measures on Friday afternoon, including criminalising illegal border crossing and vandalism to the new anti-immigrant razor-wire fence erected along the border with Serbia.