Police released a video Thursday showing a speeding motorcyclist crashing into a bear on a Canadian highway, as a warning to distracted drivers -- and wildlife.

The video shows the motorcycle taking off and accelerating to 140 kilometres per hour in less than 20 seconds on Highway 7 near Hope, British Columbia.

A young black bear that appears to have been spooked by a train running parallel to the road suddenly darts into view and collides with the bike.

Police said in a statement that the driver was focused on his speedometer as part of a stunt and failed to see the bear until the last minute.

He ended up with non-life-threatening injuries while the bear walked away.