Actually, the individuals captured on these video clips are probably depositing scent from their glands.....
There are scents in the stakes in these video clips, which I believe are eliciting this response.
Regardless of whether they are scratching or depositing scent....seeing these clips makes me happy that I wear gloves when I change out the scents in those stakes!!
There seems to be some disagreement among raccoon authorities about whether they are primarily solitary....or whether they run in loose social groups (particularly females). In the first video clip above, we clearly have an example of two individuals moving together. According to Zeveloff (2002) they frequently have overlapping home ranges, so don't regularly defend territories (especially when resources are high). Odors (like gland secretions, urine and feces) can be used to mark home range boundaries and leave information about their presence to other raccoons. I would assume the individual above is marking his/her home range. The second video clip could be of a different individual depositing a reply to the first raccoon that left his or her message.
Zeveloff, S.I. 2002. Raccoons: a natural history. Smithsonian Books, Washington, D.C..