The bar path on the squat is straight enough: you are operating at less than bodyweight (I'm reasonably certain. You don't look like you weight less than 135), which means the CCOM of the system will lie closer to your COM than the barbell, which in turn means the bar is a little bit forward. I wouldn't worry about it. You are going a bit too deep on these.
Your hips are rising on the deadlift because they are starting too low. The legs should straighten before the rest of the body: knee extension should be almost, though not entirely, finished by the time the bar clears the knees. It feels like you're getting too much because they are starting too bent. You're rocking back slightly to get that extra hip drop. Don't do that. On the reps you don't reset between, this problem disappears.