In the Berlin-video could be a DB BR 112/114. See
https://en.wikipedia.org/wiki/DR_Class_243If the description of the image is right, the loco in this moment is the front of the train. It just left Rostock main station on his route to Warnemünde (seaside resort at baltic sea).
Never measured the way

, could be ~15km at railtrack and 10stations, ~20min at all.
Mostly I drive myself by bicycle.
But meanwhile the DB uses on this route often also railcars, Bombardier Talent 2 -> DB BR 442. The image is from 2010 and today the double-deck-wagons are rare on this track.