Pain in Left Leg When Walking

Hello, since last Sunday I am feeling a pain in my left leg, close to where the leg meets the hip. It’s like something is “clacking” every step I take, it gets better after walking for a while and it doesn’t hurt at all while squatting or deadlifting. I want to wait for a week or so before I go to a doctor but I would like to see if you have some knowledge about what this could be, if it’s probably something serious.

I’ll post a video from my last squat session, maybe that can help to pinpoint the problem.