It looks like a horror movie. As a villager slices open the belly of a python, a man’s body emerges, after it had been swallowed whole by the giant snake the day before. The video of the episode emerged after a search party in a remote Indonesian village of Salubiro, on the island of Sulawesi, glimpsed the shape of shoes in the belly of the python. After chasing the snake and killing it, they sliced open the python, revealing the body of the villager, whose name was Akbar.

A graphic video clip of men cutting up the python to retrieve the villager’s body was posted to YouTube.

Warning: This video includes graphic imagery.

At first the video is blurry and difficult to make out. A bunch of men standing around a python begin slicing its belly down the middle. It soon becomes apparent that something of note is inside the giant snake, but it’s not immediately clear what has drawn so much attention.

Then you see it: An entire grown man, swallowed whole, lies dead inside the python.

Human-animal encounters are common in Indonesia, a tropical archipelago that contains Asia’s largest swath of rain forest. Environmentalists worry that such encounters will only increase because of the country’s rapid rate of rain forest destruction, which disrupts ecosystems and leads predators to seek new prey.

“As humans push further into wildlife, habitat conflict like this is more likely to occur as both humans and wildlife require space,” said Farwiza Farhan, the chairwoman of Forest, Nature and Environment of Aceh, an environmental organisation.

Plantation workers like Mr. Akbar are often the most at risk. A 2013 report by Eyes on the Forest, a coalition of environmental organisations on the island of Sumatra, found that over 12 years, 60 percent of tiger attacks in a region in Riau Province had occurred in concessions where developers had recently cleared the forest.

The report found that the tiger attacks resulted in 27 human deaths, as well as eight dead tigers. Marauding elephants also regularly wander into villages in plantations throughout Sumatra, killing workers. Sulawesi, a heavily forested island in eastern Indonesia, is much less developed than Sumatra, but it has undergone a major expansion of palm oil plantations over the last decade, which could make python attacks like the one that occurred this week more likely, experts said. Wahdi Azmi, the director of wildlife studies on the veterinary faculty of Syiah Kuala University in Aceh Province, called the recent attack “a rare case of a python eating a person — but also shows that we need to manage human wildlife interactions better by conserving the habitat.”

Pythons are known to attack humans, and can kill them by suffocation, but this represents a rare case in which a python succeeded in swallowing its human victim.

“This is an unfortunate incident,” he added.

According to Junaedi, a village official who briefed the news media on Tuesday, villagers had heard shouting the day of the attack but assumed it was simply someone hunting pigs, because no one had cried for help. The next day, a search party was sent, and the python was found.