Is my driveshaft bad?

I have a 2005 Jeep Liberty and when I put it in 4x4 either part time or full time it makes a terrible clanking noise and when I put it back in 2 wheel drive it stops after about a minute and a half. I’m thinking it’s possibly the drive shaft but has anybody else had this problem ?

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0