People stand behind a fence net to a train that was stopped Thursday in Bicske, Hungary, Friday, Sept. 4, 2015.AP Photo/Petr David Josek)

Hundreds of refugees have broken through a police cordon and fled from a train being held near an asylum camp in Hungary.

Surprised riot police scrambled for their helmets as the huge crowd suddenly surged from the front of the train at Bicske station, near Budapest, and ran down a track leading towards Austria, 84 miles to the west.

Officers were able to block only a minority of the estimated 500 people on the train, and pushed them back on board amid much shouting and screaming and children crying.

The break-out came hours after hundreds of other refugees who had been stuck for days in Budapest gathered their belongings and started marching out of the capital, vowing to make it to Austria on foot.

They set out from Keleti railway station after Hungarian authorities blocked them from boarding western-bound trains.

They carried their belongings in bags and backpacks as they snaked through the capital in a line stretching nearly half a mile, hampering traffic at times, as they began the 100-mile journey to the Austrian border.

The refugees, many fleeing war in Syria, want to reach Germany or elsewhere in the West and are trying to avoid registering in Hungary, which is economically depressed and more likely to return them to their home countries than many western European nations.

Under European law, asylum seekers are approved or disapproved in the countries where they first register.

One man, 23-year-old Osama Morzar, from Aleppo, Syria, was so determined not to be registered in Hungary that he removed his fingerprints with acid, holding up smooth finger pads as proof.

"The government of Hungary is very bad," said Mr Morzar, who studied pharmacology at Aleppo's university. "The United Nations should help."

A migrant holds a crying boy out of a local train coming from Budapest and heading to the Austrian border, that has been stopped in Bicske, west of the Hungarian capital on September 3, 2015. AFP/Getty Images

TOPSHOTS
A migrant family is arrested by local police after their local train coming from Budapest and heading to the Austrian border has been stopped in Bicske, west of the Hungarian capital on September 3, 2015. The train carrying between 200 and 300 migrants left Budapest's main international train station after authorities re-opened the station to migrants as the EU is grappling with an unprecedented influx of people fleeing war, repression and poverty in what the bloc has described as its worst refugee crisis in 50 years. AFP PHOTO / ISTVAN BIELIKISTVAN BIELIK/AFP/Getty Images

TOPSHOTS
Migrants board into a local train heading to the Hungarian-Austrian border at the main train station in Budapest on September 3, 2015, after authorities re-opened the station to refugees. On the day before Hungarian authorities stopped migrants taking trains to Austria and Germany. AFP PHOTO / PETER KOHALMIPETER KOHALMI/AFP/Getty Images

TOPSHOTS
Migrants of several countries enter a local train with direction to the Hungarian-Austrian border at Keleti (East) railway station in Budapest on September 3, 2015. A train carrying between 200 and 300 migrants left Budapest's main international train station and headed toward the Austrian border, after authorities re-opened the station to migrants. AFP PHOTO / PETER KOHALMIPETER KOHALMI/AFP/Getty Images

TOPSHOTS
Migrant boy holds a sign reading 'SOS help me' as he sits with other migrants in front of the Keleti (East) railway station in Budapest on September 2, 2015. Hungarian authorities face mounting anger from thousands of migrants who are unable to board trains to western European countries after the main Budapest station was closed. AFP PHOTO / ATTILA KISBENEDEKATTILA KISBENEDEK/AFP/Getty Images

The feet of a young boy are bandaged as he waits at the railway station in Budapest, Hungary, Thursday, Sept. 3, 2015. Over 150,000 migrants have reached Hungary this year, most coming through the southern border with Serbia, and many apply for asylum but quickly try to leave for richer EU countries.(AP Photo/Frank Augstein)

A young migrant boy plays a harmonica to police officers in front of the railway station in Budapest, Hungary, Thursday, Sept. 3, 2015. Over 150,000 migrants have reached Hungary this year, most coming through the southern border with Serbia, and many apply for asylum but quickly try to leave for richer EU countries.(AP Photo/Frank Augstein)

Migrants gather and shout slogans outside the railway station in Budapest, Hungary, Thursday, Sept. 3, 2015. Over 150,000 migrants have reached Hungary this year, most coming through the southern border with Serbia, and many apply for asylum but quickly try to leave for richer EU countries.(AP Photo/Frank Augstein)

Migrants help an elderly man to cross tracks at the railway station in Budapest, Hungary, Thursday, Sept. 3, 2015. Over 150,000 migrants have reached Hungary this year, most coming through the southern border with Serbia, and many apply for asylum but quickly try to leave for richer EU countries.(AP Photo/Frank Augstein)

A migrant is detained after the train they were traveling in from Budapest arrived in Bicske, Hungary, Thursday, Sept. 3, 2015. Over 150,000 migrants have reached Hungary this year, most coming through the southern border with Serbia. Many apply for asylum but quickly try to leave for richer EU countries. (AP Photo/Petr David Josek)

People sit on a train as hundreds of migrants left the Keleti Railway Station in Budapest, Hungary, Thursday, Sept. 3, 2015. Over 150,000 migrants have reached Hungary this year, most coming through the southern border with Serbia. Many apply for asylum but quickly try to leave for richer EU countries. (AP Photo/Petr David Josek)

A boy looks out of a window as a train with hundreds of migrants leaves the Keleti Railway Station in Budapest, Hungary, Thursday, Sept. 3, 2015. Over 150,000 migrants have reached Hungary this year, most coming through the southern border with Serbia. Many apply for asylum but quickly try to leave for richer EU countries. (AP Photo/Petr David Josek)

A young boy holds a German flag in front of the railway station in Budapest, Hungary, Thursday, Sept. 3, 2015. Over 150,000 migrants have reached Hungary this year, most coming through the southern border with Serbia, and many apply for asylum but quickly try to leave for richer EU countries.(AP Photo/Frank Augstein)

Migrants try to board a train at the railway station in Budapest, Hungary, Thursday, Sept. 3, 2015. Over 150,000 migrants have reached Hungary this year, most coming through the southern border with Serbia, and many apply for asylum but quickly try to leave for richer EU countries.(AP Photo/Frank Augstein)

A young child cries as hundreds of migrants try to board a train at the Keleti Railway Station in Budapest, Hungary, Thursday, Sept. 3, 2015. Over 150,000 migrants have reached Hungary this year, most coming through the southern border with Serbia. Many apply for asylum but quickly try to leave for richer EU countries. (AP Photo/Petr David Josek)

A child cries as nigrants try to board a train at the railway station in Budapest, Hungary, Thursday, Sept. 3, 2015. Over 150,000 migrants have reached Hungary this year, most coming through the southern border with Serbia, and many apply for asylum but quickly try to leave for richer EU countries.(AP Photo/Frank Augstein)

A young migrant boy flashes a victory sign with his fingers painted in the colours of the German national flag outside the railway station in Budapest, Hungary, Thursday, Sept. 3, 2015. Over 150,000 migrants have reached Hungary this year, most coming through the southern border with Serbia, and many apply for asylum but quickly try to leave for richer EU countries. (AP Photo/Frank Augstein)

Migrants show placards outside of the railway station in Budapest, Hungary, Thursday, Sept. 3, 2015. Over 150,000 migrants have reached Hungary this year, most coming through the southern border with Serbia, and many apply for asylum but quickly try to leave for richer EU countries.(AP Photo/Frank Augstein)

A migrant shows his hands with the countries Syria and Germany written on them in front of the railway station in Budapest, Hungary, Thursday, Sept. 3, 2015. Over 150,000 migrants have reached Hungary this year, most coming through the southern border with Serbia, and many apply for asylum but quickly try to leave for richer EU countries.(AP Photo/Frank Augstein)

Migrants push and shout as they gather in front of the railway station in Budapest, Hungary, Thursday, Sept. 3, 2015. Over 150,000 migrants have reached Hungary this year, most coming through the southern border with Serbia, and many apply for asylum but quickly try to leave for richer EU countries.(AP Photo/Frank Augstein)

A migrant family is arrested by local police after their local train coming from Budapest and heading to the Austrian border has been stopped in Bicske, west of the Hungarian capital on September 3, 2015. The train carrying between 200 and 300 migrants left Budapest's main international train station after authorities re-opened the station to migrants as the EU is grappling with an unprecedented influx of people fleeing war, repression and poverty in what the bloc has described as its worst refugee crisis in 50 years. AFP PHOTO / ISTVAN BIELIKISTVAN BIELIK/AFP/Getty Images

Migrant is arrested by local police after his local train coming from Budapest and heading to the Austrian border has been stopped in Bicske, west of the Hungarian capital on September 3, 2015. The train carrying between 200 and 300 migrants left Budapest's main international train station after authorities re-opened the station to migrants as the EU is grappling with an unprecedented influx of people fleeing war, repression and poverty in what the bloc has described as its worst refugee crisis in 50 years. AFP PHOTO / ISTVAN BIELIKISTVAN BIELIK/AFP/Getty Images

A migrant takes care of a crying boy outside a local train coming from Budapest and heading to the Austrian border, that has been stopped in Bicske, west of the Hungarian capital on September 3, 2015. The train carrying between 200 and 300 migrants left Budapest's main international train station after authorities re-opened the station to migrants as the EU is grappling with an unprecedented influx of people fleeing war, repression and poverty in what the bloc has described as its worst refugee crisis in 50 years. AFP PHOTO / ATTILA KISBENEDEKATTILA KISBENEDEK/AFP/Getty Images

A migrant holds a crying boy out of a local train coming from Budapest and heading to the Austrian border, that has been stopped in Bicske, west of the Hungarian capital on September 3, 2015. The train carrying between 200 and 300 migrants left Budapest's main international train station after authorities re-opened the station to migrants as the EU is grappling with an unprecedented influx of people fleeing war, repression and poverty in what the bloc has described as its worst refugee crisis in 50 years. AFP PHOTO / ATTILA KISBENEDEKATTILA KISBENEDEK/AFP/Getty Images

A rescuer helps a migrant lying on the platform outside a local train coming from Budapest and heading to the Austrian border, that has been stopped in Bicske by authorities, west of the Hungarian capital on September 3, 2015. The train carrying between 200 and 300 migrants left Budapest's main international train station after authorities re-opened the station to migrants as the EU is grappling with an unprecedented influx of people fleeing war, repression and poverty in what the bloc has described as its worst refugee crisis in 50 years. AFP PHOTO / ATTILA KISBENEDEKATTILA KISBENEDEK/AFP/Getty Images

Migrants board into a local train heading to the Hungarian-Austrian border at the main train station in Budapest on September 3, 2015, after authorities re-opened the station to refugees. On the day before Hungarian authorities stopped migrants taking trains to Austria and Germany. AFP PHOTO / PETER KOHALMIPETER KOHALMI/AFP/Getty Images

Migrants of several countries enter a local train with direction to the Hungarian-Austrian border at Keleti (East) railway station in Budapest on September 3, 2015. A train carrying between 200 and 300 migrants left Budapest's main international train station and headed toward the Austrian border, after authorities re-opened the station to migrants. AFP PHOTO / PETER KOHALMIPETER KOHALMI/AFP/Getty Images

BUDAPEST, HUNGARY - SEPTEMBER 03: A migrant looks from a window of a train that he is refusing to leave as he protests against being taken to a refugee camp from a train that has been held at Bicske station on September 3, 2015 in Bicske, near Budapest, Hungary. Although the station has reopened all international trains to Western Europe have been cancelled. According to the Hungarian authorities a record number of migrants from many parts of the Middle East, Africa and Asia are crossing the border from Serbia. Since the beginning of 2015 the number of migrants using the so-called Balkans route has exploded with migrants arriving in Greece from Turkey and then travelling on through Macedonia and Serbia before entering the EU via Hungary. The massive increase, said to be the largest migration of people since World War II, led Hungarian Prime Minister Victor Orban to order Hungary's army to build a steel and barbed wire security barrier along its entire border with Serbia, after more than 100,000 asylum seekers from a variety of countries and war zones entered the country so far this year. (Photo by Matt Cardy/Getty Images)

BUDAPEST, HUNGARY - SEPTEMBER 03: Migrants protest against being taken to a refugee camp from a train that has been held at Bicske station on September 3, 2015 in Bicske, near Budapest, Hungary. Although the station has reopened all international trains to Western Europe have been cancelled. According to the Hungarian authorities a record number of migrants from many parts of the Middle East, Africa and Asia are crossing the border from Serbia. Since the beginning of 2015 the number of migrants using the so-called Balkans route has exploded with migrants arriving in Greece from Turkey and then travelling on through Macedonia and Serbia before entering the EU via Hungary. The massive increase, said to be the largest migration of people since World War II, led Hungarian Prime Minister Victor Orban to order Hungary's army to build a steel and barbed wire security barrier along its entire border with Serbia, after more than 100,000 asylum seekers from a variety of countries and war zones entered the country so far this year. (Photo by Matt Cardy/Getty Images)

BUDAPEST, HUNGARY - SEPTEMBER 03: Migrants protest against being taken to a refugee camp from a train that has been held at Bicske station on September 3, 2015 in Bicske, near Budapest, Hungary. Although the station has reopened all international trains to Western Europe have been cancelled. According to the Hungarian authorities a record number of migrants from many parts of the Middle East, Africa and Asia are crossing the border from Serbia. Since the beginning of 2015 the number of migrants using the so-called Balkans route has exploded with migrants arriving in Greece from Turkey and then travelling on through Macedonia and Serbia before entering the EU via Hungary. The massive increase, said to be the largest migration of people since World War II, led Hungarian Prime Minister Victor Orban to order Hungary's army to build a steel and barbed wire security barrier along its entire border with Serbia, after more than 100,000 asylum seekers from a variety of countries and war zones entered the country so far this year. (Photo by Matt Cardy/Getty Images)

BUDAPEST, HUNGARY - SEPTEMBER 03: A migrant receives medical attention as people protest against being taken to a refugee camp from a train that has been held at Bicske station on September 3, 2015 in Bicske, near Budapest, Hungary. Although the station has reopened all international trains to Western Europe have been cancelled. According to the Hungarian authorities a record number of migrants from many parts of the Middle East, Africa and Asia are crossing the border from Serbia. Since the beginning of 2015 the number of migrants using the so-called Balkans route has exploded with migrants arriving in Greece from Turkey and then travelling on through Macedonia and Serbia before entering the EU via Hungary. The massive increase, said to be the largest migration of people since World War II, led Hungarian Prime Minister Victor Orban to order Hungary's army to build a steel and barbed wire security barrier along its entire border with Serbia, after more than 100,000 asylum seekers from a variety of countries and war zones entered the country so far this year. (Photo by Matt Cardy/Getty Images)

BUDAPEST, HUNGARY - SEPTEMBER 03: A migrant receives medical attention as people protest against being taken to a refugee camp from a train that has been held at Bicske station on September 3, 2015 in Bicske, near Budapest, Hungary. Although the station has reopened all international trains to Western Europe have been cancelled. According to the Hungarian authorities a record number of migrants from many parts of the Middle East, Africa and Asia are crossing the border from Serbia. Since the beginning of 2015 the number of migrants using the so-called Balkans route has exploded with migrants arriving in Greece from Turkey and then travelling on through Macedonia and Serbia before entering the EU via Hungary. The massive increase, said to be the largest migration of people since World War II, led Hungarian Prime Minister Victor Orban to order Hungary's army to build a steel and barbed wire security barrier along its entire border with Serbia, after more than 100,000 asylum seekers from a variety of countries and war zones entered the country so far this year. (Photo by Matt Cardy/Getty Images)

BUDAPEST, HUNGARY - SEPTEMBER 03: Migrants protest against being taken to a refugee camp from a train that has been held at Bicske station on September 3, 2015 in Bicske, near Budapest, Hungary. Although the station has reopened all international trains to Western Europe have been cancelled. According to the Hungarian authorities a record number of migrants from many parts of the Middle East, Africa and Asia are crossing the border from Serbia. Since the beginning of 2015 the number of migrants using the so-called Balkans route has exploded with migrants arriving in Greece from Turkey and then travelling on through Macedonia and Serbia before entering the EU via Hungary. The massive increase, said to be the largest migration of people since World War II, led Hungarian Prime Minister Victor Orban to order Hungary's army to build a steel and barbed wire security barrier along its entire border with Serbia, after more than 100,000 asylum seekers from a variety of countries and war zones entered the country so far this year. (Photo by Matt Cardy/Getty Images)

BUDAPEST, HUNGARY - SEPTEMBER 03: Police stand guard as migrants sit on the platform of Keleti station after it was reopened this morning in central Budapest on September 3, 2015 in Budapest, Hungary. Although the station has reopened all international trains to Western Europe have bee cancelled. According to the Hungarian authorities a record number of migrants from many parts of the Middle East, Africa and Asia are crossing the border from Serbia. Since the beginning of 2015 the number of migrants using the so-called Balkans route has exploded with migrants arriving in Greece from Turkey and then travelling on through Macedonia and Serbia before entering the EU via Hungary. The massive increase, said to be the largest migration of people since World War II, led Hungarian Prime Minister Victor Orban to order Hungary's army to build a steel and barbed wire security barrier along its entire border with Serbia, after more than 100,000 asylum seekers from a variety of countries and war zones entered the country so far this year. (Photo by Matt Cardy/Getty Images)

BUDAPEST, HUNGARY - SEPTEMBER 03: Migrants gathered on the platform of Keleti station watch a train to Sopron leave, after it was reopened this morning in central Budapest on September 3, 2015 in Budapest, Hungary. Although the station has reopened all international trains to Western Europe have bee cancelled. According to the Hungarian authorities a record number of migrants from many parts of the Middle East, Africa and Asia are crossing the border from Serbia. Since the beginning of 2015 the number of migrants using the so-called Balkans route has exploded with migrants arriving in Greece from Turkey and then travelling on through Macedonia and Serbia before entering the EU via Hungary. The massive increase, said to be the largest migration of people since World War II, led Hungarian Prime Minister Victor Orban to order Hungary's army to build a steel and barbed wire security barrier along its entire border with Serbia, after more than 100,000 asylum seekers from a variety of countries and war zones entered the country so far this year. (Photo by Matt Cardy/Getty Images)

BUDAPEST, HUNGARY - SEPTEMBER 03: Police stand guard as migrants sit on the platform of Keleti station after it was reopened this morning in central Budapest on September 3, 2015 in Budapest, Hungary. Although the station has reopened all international trains to Western Europe have bee cancelled. According to the Hungarian authorities a record number of migrants from many parts of the Middle East, Africa and Asia are crossing the border from Serbia. Since the beginning of 2015 the number of migrants using the so-called Balkans route has exploded with migrants arriving in Greece from Turkey and then travelling on through Macedonia and Serbia before entering the EU via Hungary. The massive increase, said to be the largest migration of people since World War II, led Hungarian Prime Minister Victor Orban to order Hungary's army to build a steel and barbed wire security barrier along its entire border with Serbia, after more than 100,000 asylum seekers from a variety of countries and war zones entered the country so far this year. (Photo by Matt Cardy/Getty Images)

BUDAPEST, HUNGARY - SEPTEMBER 03: Migrants board a train in Keleti station after it was reopened this morning in central Budapest on September 3, 2015 in Budapest, Hungary. Although the station has reopened all international trains to Western Europe have bee cancelled. According to the Hungarian authorities a record number of migrants from many parts of the Middle East, Africa and Asia are crossing the border from Serbia. Since the beginning of 2015 the number of migrants using the so-called Balkans route has exploded with migrants arriving in Greece from Turkey and then travelling on through Macedonia and Serbia before entering the EU via Hungary. The massive increase, said to be the largest migration of people since World War II, led Hungarian Prime Minister Victor Orban to order Hungary's army to build a steel and barbed wire security barrier along its entire border with Serbia, after more than 100,000 asylum seekers from a variety of countries and war zones entered the country so far this year. (Photo by Matt Cardy/Getty Images)

BUDAPEST, HUNGARY - SEPTEMBER 03: Migrants board a train in Keleti station after it was reopened this morning in central Budapest on September 3, 2015 in Budapest, Hungary. Although the station has reopened all international trains to Western Europe have bee cancelled. According to the Hungarian authorities a record number of migrants from many parts of the Middle East, Africa and Asia are crossing the border from Serbia. Since the beginning of 2015 the number of migrants using the so-called Balkans route has exploded with migrants arriving in Greece from Turkey and then travelling on through Macedonia and Serbia before entering the EU via Hungary. The massive increase, said to be the largest migration of people since World War II, led Hungarian Prime Minister Victor Orban to order Hungary's army to build a steel and barbed wire security barrier along its entire border with Serbia, after more than 100,000 asylum seekers from a variety of countries and war zones entered the country so far this year. (Photo by Matt Cardy/Getty Images)

BUDAPEST, HUNGARY - SEPTEMBER 03: Migrants board a train in Keleti station after it was reopened this morning in central Budapest on September 3, 2015 in Budapest, Hungary. Although the station has reopened all international trains to Western Europe have bee cancelled. According to the Hungarian authorities a record number of migrants from many parts of the Middle East, Africa and Asia are crossing the border from Serbia. Since the beginning of 2015 the number of migrants using the so-called Balkans route has exploded with migrants arriving in Greece from Turkey and then travelling on through Macedonia and Serbia before entering the EU via Hungary. The massive increase, said to be the largest migration of people since World War II, led Hungarian Prime Minister Victor Orban to order Hungary's army to build a steel and barbed wire security barrier along its entire border with Serbia, after more than 100,000 asylum seekers from a variety of countries and war zones entered the country so far this year. (Photo by Matt Cardy/Getty Images)

BUDAPEST, HUNGARY - SEPTEMBER 03: Migrants board a train in Keleti station after it was reopened this morning in central Budapest on September 3, 2015 in Budapest, Hungary. Although the station has reopened all international trains to Western Europe have bee cancelled. According to the Hungarian authorities a record number of migrants from many parts of the Middle East, Africa and Asia are crossing the border from Serbia. Since the beginning of 2015 the number of migrants using the so-called Balkans route has exploded with migrants arriving in Greece from Turkey and then travelling on through Macedonia and Serbia before entering the EU via Hungary. The massive increase, said to be the largest migration of people since World War II, led Hungarian Prime Minister Victor Orban to order Hungary's army to build a steel and barbed wire security barrier along its entire border with Serbia, after more than 100,000 asylum seekers from a variety of countries and war zones entered the country so far this year. (Photo by Matt Cardy/Getty Images)

BUDAPEST, HUNGARY - SEPTEMBER 03: Migrants board a train in Keleti station after it was reopened this morning in central Budapest on September 3, 2015 in Budapest, Hungary. Although the station has reopened all international trains to Western Europe have bee cancelled. According to the Hungarian authorities a record number of migrants from many parts of the Middle East, Africa and Asia are crossing the border from Serbia. Since the beginning of 2015 the number of migrants using the so-called Balkans route has exploded with migrants arriving in Greece from Turkey and then travelling on through Macedonia and Serbia before entering the EU via Hungary. The massive increase, said to be the largest migration of people since World War II, led Hungarian Prime Minister Victor Orban to order Hungary's army to build a steel and barbed wire security barrier along its entire border with Serbia, after more than 100,000 asylum seekers from a variety of countries and war zones entered the country so far this year. (Photo by Matt Cardy/Getty Images)

BUDAPEST, HUNGARY - SEPTEMBER 03: Migrants board a train in Keleti station after it was reopened this morning in central Budapest on September 3, 2015 in Budapest, Hungary. Although the station has reopened all international trains to Western Europe have bee cancelled. According to the Hungarian authorities a record number of migrants from many parts of the Middle East, Africa and Asia are crossing the border from Serbia. Since the beginning of 2015 the number of migrants using the so-called Balkans route has exploded with migrants arriving in Greece from Turkey and then travelling on through Macedonia and Serbia before entering the EU via Hungary. The massive increase, said to be the largest migration of people since World War II, led Hungarian Prime Minister Victor Orban to order Hungary's army to build a steel and barbed wire security barrier along its entire border with Serbia, after more than 100,000 asylum seekers from a variety of countries and war zones entered the country so far this year. (Photo by Matt Cardy/Getty Images)

BUDAPEST, HUNGARY - SEPTEMBER 03: Migrants board a train in Keleti station after it was reopened this morning in central Budapest on September 3, 2015 in Budapest, Hungary. Although the station has reopened all international trains to Western Europe have bee cancelled. According to the Hungarian authorities a record number of migrants from many parts of the Middle East, Africa and Asia are crossing the border from Serbia. Since the beginning of 2015 the number of migrants using the so-called Balkans route has exploded with migrants arriving in Greece from Turkey and then travelling on through Macedonia and Serbia before entering the EU via Hungary. The massive increase, said to be the largest migration of people since World War II, led Hungarian Prime Minister Victor Orban to order Hungary's army to build a steel and barbed wire security barrier along its entire border with Serbia, after more than 100,000 asylum seekers from a variety of countries and war zones entered the country so far this year. (Photo by Matt Cardy/Getty Images)

BUDAPEST, HUNGARY - SEPTEMBER 03: Migrants board a train in Keleti station after it was reopened this morning in central Budapest on September 3, 2015 in Budapest, Hungary. Although the station has reopened all international trains to Western Europe have bee cancelled. According to the Hungarian authorities a record number of migrants from many parts of the Middle East, Africa and Asia are crossing the border from Serbia. Since the beginning of 2015 the number of migrants using the so-called Balkans route has exploded with migrants arriving in Greece from Turkey and then travelling on through Macedonia and Serbia before entering the EU via Hungary. The massive increase, said to be the largest migration of people since World War II, led Hungarian Prime Minister Victor Orban to order Hungary's army to build a steel and barbed wire security barrier along its entire border with Serbia, after more than 100,000 asylum seekers from a variety of countries and war zones entered the country so far this year. (Photo by Matt Cardy/Getty Images)

BUDAPEST, HUNGARY - SEPTEMBER 03: Migrants board trains in Keleti station after it was reopened this morning in central Budapest on September 3, 2015 in Budapest, Hungary. Although the station has reopened all international trains to Western Europe have been cancelled. According to the Hungarian authorities a record number of migrants from many parts of the Middle East, Africa and Asia are crossing the border from Serbia. Since the beginning of 2015 the number of migrants using the so-called Balkans route has exploded with migrants arriving in Greece from Turkey and then travelling on through Macedonia and Serbia before entering the EU via Hungary. The massive increase, said to be the largest migration of people since World War II, led Hungarian Prime Minister Victor Orban to order Hungary's army to build a steel and barbed wire security barrier along its entire border with Serbia, after more than 100,000 asylum seekers from a variety of countries and war zones entered the country so far this year. (Photo by Matt Cardy/Getty Images)

BUDAPEST, HUNGARY - SEPTEMBER 03: Migrants board trains in Keleti station after it was reopened this morning in central Budapest on September 3, 2015 in Budapest, Hungary. Although the station has reopened all international trains to Western Europe have been cancelled. According to the Hungarian authorities a record number of migrants from many parts of the Middle East, Africa and Asia are crossing the border from Serbia. Since the beginning of 2015 the number of migrants using the so-called Balkans route has exploded with migrants arriving in Greece from Turkey and then travelling on through Macedonia and Serbia before entering the EU via Hungary. The massive increase, said to be the largest migration of people since World War II, led Hungarian Prime Minister Victor Orban to order Hungary's army to build a steel and barbed wire security barrier along its entire border with Serbia, after more than 100,000 asylum seekers from a variety of countries and war zones entered the country so far this year. (Photo by Matt Cardy/Getty Images)

BUDAPEST, HUNGARY - SEPTEMBER 03: Migrants board trains in Keleti station after it was reopened this morning in central Budapest on September 3, 2015 in Budapest, Hungary. Although the station has reopened all international trains to Western Europe have been cancelled. According to the Hungarian authorities a record number of migrants from many parts of the Middle East, Africa and Asia are crossing the border from Serbia. Since the beginning of 2015 the number of migrants using the so-called Balkans route has exploded with migrants arriving in Greece from Turkey and then travelling on through Macedonia and Serbia before entering the EU via Hungary. The massive increase, said to be the largest migration of people since World War II, led Hungarian Prime Minister Victor Orban to order Hungary's army to build a steel and barbed wire security barrier along its entire border with Serbia, after more than 100,000 asylum seekers from a variety of countries and war zones entered the country so far this year. (Photo by Matt Cardy/Getty Images)

A couple from Baghdad, Mohammed and Zahara, who marched with a toddler, said they had been in a Hungarian asylum camp and were roughed up by guards because they refused to be fingerprinted.

She said she has family in Belgium and is determined to seek asylum there. They would not give their last names.

The break-out at Bicske came after a two-day stand-off with police close to one the country's five camps for asylum seekers.

Hundreds of people had sat on the train, some with tickets they had purchased to Berlin or Vienna. Although some eventually relented and registered at the asylum centre, most were determined not to.

"The situation is so bad. We have so many sick people on the train. We have pregnant women, no food, no water," said Adnan Shanan, a 35-year-old from Latakia, Syria, who said he was fleeing war in his homeland.

"We don't need to stay here one more day. We need to move to Munich, to anywhere else, we can't stay here. We can't wait until tomorrow. We need a decision today, now," Mr Shanan said.

The events came a day after a round of recriminations among EU leaders. Prime minister Viktor Orban has said the human wave is a German problem, but chancellor Angela Merkel said the obligation to protect refugees "applies not just in Germany, but in every European member".

Mr Orban reiterated on Hungarian state radio his determination to stop the refugees.

"Today we are talking about tens of thousands but next year we will be talking about millions and this has no end.

"We have to make it clear that we can't allow everyone in, because if we allow everyone in, Europe is finished. If you are rich and attractive to others, you also have to be strong because if not, they will take away what you have worked for and you will be poor too."