The snake - which appears to measure more than 12ft in length - writhes around as the large swollen mass in its stomach is slowly brought tack through its dislocated jaw.
First the dog's hind legs emerge, then the rest of its body, in the video clip filmed on the phone of an onlooker.
Warning: Graphic content
A snake-handler can then been seen capturing the snake at the end of the video.
It is thought the hungry animal, which kills its prey by constricting before swallowing it whole, bit off more than it could cope with.
Since being uploaded to YouTube and LiveLeak, the video has been viewed hundreds of thousands of times.
The event of a snake bringing back up undigested food is rarely seen but quite common in the natural world, according to experts.
'All that commotion is spooking the snake and he can't get away quick enough. He's probably pretty scared at the moment, so what he's trying to do is get away.'