The Coast Guard rescued at least 32 people from several boats in Texas waters on Friday and Saturday as a result of Hurricane Harvey, which was later downgraded to a tropical storm.

One video released by the Coast Guard shows a man in a life jacket being pulled to shore as a vessel called the Signet Enterprise languishes in the background with its stern submerged.

Officials said the four people airlifted from that scene were among 15 who were rescued near Port Aransas, Tex., on Saturday. Seven had been aboard a tugboat called Sabine and were airlifted to a rig near Aransas Pass; four were rescued from a vessel called Sandy Point.

The rescues there involved two Coast Guard MH-65 helicopters, Capt. Tony Hahn said in a statement. Officials said the Coast Guard deployed 14 boats and seven helicopters to Houston.

Officials had warned Texans to “stay off the water,” saying that the Coast Guard’s search-and-rescue capabilities would degrade as storm conditions strengthened.

“If you’ve evacuated, please stay where you’re at,” Captain Hahn said at a news conference on Saturday afternoon.

“The most important thing right now is your safety,” he added. “Where your boat might be is most likely not a nice place — or not a safe place.”

Officials said two people and a dog were in good condition at a hospital after being rescued near Rockport, Tex. A spokeswoman for the Coast Guard said three people on a fishing vessel had also been rescued, but she did not provide additional details.

On Friday, the Coast Guard said it had rescued a dozen people aboard a 160-foot vessel that had been taking on water near Port Mansfield, Tex. All 12 people were reported to be in stable condition with no injuries, the Coast Guard said.