What’s wrong when the starts and runs than starts sputtering and the car smells like burnt oil

What's wrong when the car takes forever to start than when it starts it runs for a maybe 30 minutes than starts sputtering and dies. It won't restart and it smells like burnt oil
My car has an automatic transmission.

– What’s wrong when the starts and runs than starts sputtering and the car smells like burnt oil