Rpm not stable when code start.
I wonder if anyone could help me with it. My 2003 w209 clk 200 has this rpm not stable problem especially noticeable when the engine is cold. While driving it is less noticeable but occasionally rpm drops a few hundred but it will come back to normal, it feels like the engine is choking. A couple nights ago while I was driving headlights started flickering so I took the car to do a diagnosis and the battery was replaced and the reading for alternator seems fine. After the battery replacement the car seems runs slightly better but the rpm issues still there. And while it dose that the headlights are flickering with it.
I have attached a video, please see the problem.
Any input are highly appreciated, thank you all






