The mother of a 12-year-old Australian boy accused of throwing rocks at passing cars filmed him swearing at police officers as they arrested him.