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.

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.