You need a new cable. Looks like the metal sleeve is coming apart at the end. transmission end looks ok. When you replace it, save an end of the cable (about 1 foot) as it makes a good test cable to tell if the speedometer is working. Just push it in an twist it.
New one should look similar to this..
pic