A cyclist who recorded a dying motorcyclist on a southern Germany road instead of helping him could be prosecuted, police say. (file photo)

A cyclist in Germany used his mobile phone to film a man dying after a motorbike crash instead of helping.

When an ambulance arrived on the scene of the accident in Heidenheim, in the country's south on Sunday evening, he kept filming, The Guardian reported.

Even when paramedics attempted to get him to leave, he remained and kept recording, even when they complained he was hampering their work.

He only fled the scene when police were on their way.

The victim, a 29-year-old, was pronounced dead at the scene. Now, the cyclist could be prosecuted, police looking for the man say.

READ MORE:

* Merkel grilled by children

* Germany approves same-sex marriage

The incident was an example of a wider issue of the public recording accidents on their phones and posting material to social media, police told The Guardian.

In a twist to the story, the cyclist was in turn captured in footage recorded by another motorist's dashcam.

Police were using the footage in an attempt to identify the man.