PeerTube Direct Links

PeerTube Direct Links
Photo by Anderson Rian / Unsplash

A note for future self: as the web interface of PeerTube do not exposes any direct link to access the raw video files it hosts (but only a link to the embeddable own player, which may be unconvenient in many situations), a bit of hack is required.

Given that a PeerTube URL to a given video looks like


an actual direct link looks like


where the final -1080.mp4 is the resolution and the file extension.

More details (including the available resolutions, and all the existing direct URLs) for a given video are accessible through the /videos/{id} REST API, documented here.