Earlier, Bangladesh captain Litton Das won the toss and opted to bat first.
Tanzid Hasan Tamim and Najmul Hossain Shanto took to the crease for the tourists.
It was not long before the breakthrough came as Proteas fast bowler Duan Jansen trapped Hossain Shanto LBW for two off the second ball of the second over.
Jansen was at it again in his next over, removing Tamim for 11.
By the end of the fifth over, Bangladesh were still finding their feet at 25 for two.
Test hero Towhid Hridoy joined Das and attempted to regain some semblance of control for the visitors.
But Das holed out at deep square leg off a Lungi Ngidi ball, caught by Brevis. The Bangladesh captain only managed 18.
The visitors ended the powerplay on 39 for three and Bangladesh reached 50 runs in the 11th over.
Hridoy and Parvez Hossain Emon helped Bangladesh gain stability with a strong partnership of 50 runs in 58 balls which ensured Bangladesh breached the 100 mark in the 21st over.
Hridoy moved to his half-century six overs later, before Emon was dismissed by offspinner Stubbs for 43 (69), ending a 96-run partnership.
After the Tigers reached 150 in the 32nd over, Proteas captain Keshav Maharaj claimed the big scalp of Hridoy on 68 (87), caught by Pretorius.
Hasan Mehidy joined Yasir Ali to drive Bangladesh past the 200-run mark before their 71-run partnership ended when Ali was run out for 46 from 45 balls.
Taskin Ahmed was sent packing by Jansen, well caught by Stubbs at long on, and Shoriful Islam followed when his high ball was caught by Jansen for Ngidi's second scalp.
Tanvir Islam was run out in the same over, and Jansen bowled Mehidy for 46 to close out the innings for 245.