Two human fireballs burst out a door and one collapses to the sidewalk, writhing in agony.

The other remains standing and runs into a deli for help — trailing flames.

A terrified woman plunges to her death from a third-floor window to escape the inferno.

http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0″ id=”vxFlashPlayer2414″ width=”380″ height=”252″ > http://publish.vx.roo.com/nypost/viral/2010/flashembed/” /> http://publish.vx.roo.com/nypost/viral/2010/vxCore.swf&” />http://publish.vx.roo.com/nypost/viral/2010/flashembed/” width=”380″ height=”252″ allowScriptAccess=”always” allowFullscreen=”true” quality=”high” scale=”noScale” wmode=”windowed” flashvars=”vxTemplate=http://publish.vx.roo.com/nypost/viral/2010/NYPost_Mini_Scalable.swf&vxSiteId=b0debab1-419e-413a-bc36-ecb11d2ff4f8&vxChannel=PostUsFeed&vxClipId=1458_967293&vxClickToPlay=clip&vxTint=&vxServerBase=&vxBitrate=300&vxCore=http://publish.vx.roo.com/nypost/viral/2010/vxCore.swf&” >

These horrifying scenes were all in a video shown yesterday to the Queens jury that will decide the fate of a woman who allegedly set her ex-boy friend on fire in a jealous rage and then accidentally torched herself.

As the astonishing video unreeled, Agnes Bermudez — accused of killing ex-lover William Salazar in a horrific 2008 Father’s Day blaze that also took the lives of three other people — hunched her shoulders and wept as numbed jurors watched stone-faced.

The first nightmarish frames show the couple bursting out of the three- story building on 69th Street near Metropolitan Avenue in Middle Vil lage and Bermudez, 50, falling to the ground.

RAW VIDEO:

She curls into a ball as flames from her body shoot into the air. Salazar, although engulfed in flames, some how manages to stay on his feet and run into the Z-Star Deli on the ground floor of his building, desperately seeking help.

He has the presence of mind to race to the back of the shop to open the freezer door, where he searches for water.

Deli owner Mohammed Almatari and good Samaritan George Zugajewicz follow him back out carrying gallon jugs, which they pour on the flames that are consuming the couple’s bodies.

Salazar, 32, remains on his feet, pacing around with a dazed expression on his face, holding his head.

He died four days later in New York Hospital’s Burn Center.

While he was waiting for medical attention, he asked a friend who survived the fire how badly hurt he was, prosecutor Jack Warshawsky revealed in his opening statement.

“Willie [Salazar] asked him, ‘How’s my hair? How’s my face?’ He expected an honest answer from his friend,” Warshawsky said. “But he couldn’t tell Willie the truth.”

The friend lied and told the severely burned Salazar that his burns were superficial, the assistant DA said.

At one point in the video, Almatari and Salazar, whose burning apartment was on the second floor, point at three firetrucks rolling onto the street. By then, a third-floor tenant, Flor Sandoval, 48, was hanging from her window,

She was frantically screaming, “Help Me! Help me! Catch me in your arms,” as people on the ground shouted up to her to hold on — because help was seconds away.

A firefighter is seen running with a ladder and placing it on the wall only moments before her body crashes onto the sidewalk.

“All I could hear was the crack of her head on the concrete and then I saw the blood coming out,” Zugajewicz testified a day earlier.

The video ends as firefighters helplessly surround her body.

Also killed in the blaze were Sandoval’s husband, Heriberto Garcia, 57, and their 20-year-old son, Felipe Garcia Sandoval.

Prosecutors charge that Bermudez doused Salazar with carpet-cleaning solution before setting him on fire.

Salazar, who suffered burns to 50 percent of his body, identified Bermudez as his attacker to a friend at the scene, Warshawsky said.

“Agnes is crazy. She threw that s – – – on me and the whole place went on fire,” Salazar told pal Sebastian Castro, according to the ADA.

Salazar’s roommate, José Chacon, told police he’d heard the couple arguing before the inferno.

“Kill me, Kill me!” Salazar had screamed out at Bermudez before the fire broke out, Chacon said, according to Warshawsky.

“I’m going to kill you. I already know about the girl,” Chacon heard Bermudez say, Warshawsky related.

“You think I’m stupid? You’re going to pay for this!”

Chacon was forced to jump from his second-floor window. He escaped serious injury thanks to the quick-thinking Zugajewicz, who moved a Dumpster so Chacon could land softly on the garbage.

Bermudez’s lawyer, David McGruder, said in his opening statement that it was actually Salazar, who owned a carpet-cleaning business, who had torched Bermudez.

McGruder asked State Supreme Court Justice Richard Buchter to block the release of the video to news organizations, saying — in a very unfortunate choice of words — the material was “inflammatory.”

McGruder said Bermudez stayed over at Salazar’s apartment after she had met Salazar and several friends at La Kueva, a Sunnyside Latin-rock joint.

Several of the people at the club were heading back to Salazar’s after closing time and Bermudez didn’t want to drive home to upstate Newburgh.

“It was the biggest mistake of her life, easily,” McGruder said.

He said Salazar later tossed the carpet-cleaning solution on Bermudez and ignited it.

william.gorta@nypost.com

