RIO DE JANEIRO -- Brazil ended its play at the World Cup it's hosting with enormous disappointment.
Playing for third place, they lost to the Netherlands 3-nil.
On Sunday, Argentina and Germany play for the cup, and there will be a security presence unlike anything Brazil - or many other places - has ever seen.
No one can accuse Brazil of scrimping on security for soccer's biggest event. The country totaled nearly a billion dollars in security costs, five times what South Africa spent during the 2010 cup.
Come Sunday, Rio de Janeiro may look like an occupied city. Twenty-five thousand troops, military police, firefighters and national guardsmen are being deployed, the largest ever in the city's history.
"It is an immense responsibility, and we are working to prevent this kind of situation," the state's security chief, Jose Mariano Beltrame, told reporters.
Police clashed often with anti-cup protesters early in the tournament. CBS News witnessed security forces in Sao Paulo using tear gas and pepper spray to break up an opening day march before it ever got started.
Rio's new $45 million command and control center was modeled on counter-terrorism centers in New York and around the world. The center's deputy director, Edval Novaes, demonstrated the massive video wall, which scans thousands of cameras mounted across the region - even live cams in cop cars and helicopters.
When protesters moved toward the Maracana Stadium last month, the center was in action, scouring those live feeds and redeploying forces.
On Sunday, police will focus not just on protesters, but also on fans. Tens of thousands of Argentines, bitter rivals with supporters of Brazil, have invaded Rio for the cup final.
Win or lose, tensions will be high after the game. Then, the planning will begin again for an even bigger security challenge - when Rio hosts the 2016 Summer Olympics.