How to fix this issue of showing multi-color coded events on a timeline?

I need to show multiple(8-10) type of repetitive events on a horizontal timeline in a multi-color coded fashion. But this approach seems to be harder for user to grasp and lead to high cognitive load. Is there any better way to fix this issue?

Sample Image Timeline with many multi-colored dots in the same row

Above image depicts a horizontal time line with multiple events that are in sync with a video, which comprises of events that we want to show in a timeline.

Please suggest any fix/ways to improve UX.