The Fascinate effect lasts as long as the Bard plays, concentrates, and as long as the target is in hearing range.
As a DM, I'd play it like this:
Bard fascinates dinosaurs. They sit, calm and mesmerized.
The party walks away as the Bard plays.
The party walks outside of the hearing range...