Authorities in Texas say the woman seen ringing a doorbell late at night in a viral video has been found safe.

The woman was captured on the surveillance camera of the house she rang in the Sunrise Ranch area of Montgomery, Texas.

People from all over the country were trying to identify the woman after the video was shared by the sheriff's office this week. The video showed a woman who rang the doorbell in the dead of night, partially dressed and wearing what appeared to be broken restraints on both wrists.

The Montgomery County Sheriff's Office explains what happened Wednesday after the video went viral:

"On August 29th 2018 at about 11 a.m. the Montgomery County Sheriff's Office received a welfare check call in the 18400 block of Sunrise Pines in the Sunrise Ranch subdivision. Deputies received information a male made suicidal comments. When deputies arrived on scene they could not get an answer at the door and due to the circumstances made forced entry into the home. A man was found deceased inside the home. The male was identified as a 49 year old white male. They preliminary cause of death is believed to be a single gunshot wound. The deceased's girlfriend a 32 year old white female, who was not on scene when deputies arrived, is confirmed to be the female in the doorbell ring video. Due to the female's status as a family violence victim, the female's identity can not be released at this time. The female is confirmed to be safe and with family. The investigation will continue.

"The female that we have all been looking for has been identified and is safe. She is currently outside Montgomery County and our investigators will be meeting with her to continue the investigation."

Montgomery County is just north of Houston.