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

https://my.peertube.server/videos/watch/UUID_OF_THE_VIDEO

an actual direct link looks like

https://my.peertube.server/static/webseed/UUID_OF_THE_VIDEO-1080.mp4

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.