
PeerTube
Chocobozzz · Video hosting platforms
What is PeerTube?
PeerTube is a free, decentralised and federated video platform that its README describes as an alternative to platforms such as YouTube, Dailymotion or Vimeo. It is developed by Framasoft, a French non-profit, with a very small team; its first stable release came in October 2018. There is no single PeerTube site. Anyone can install it on their own domain, and each server (an instance) talks to the others over ActivityPub, the same protocol Mastodon uses. Framasoft itself runs framatube.org and peer.tube and the search engine sepiasearch.org. Instances are installed from source on Linux or FreeBSD, or with the Docker guide in the repository. Apps exist for Android and iOS.
PeerTube is a video platform made of many independent servers, called instances, that connect to each other. Viewers watch and follow channels on any instance, and organisations or individuals can run their own. It is developed by the French non-profit Framasoft. It is open source under the AGPL-3.0.
Core capabilities
- Instances federate over ActivityPub, so you can follow channels from Mastodon or by RSS without an account there.
- Live streams from OBS or other RTMP software, with permanent lives, automatic replays and several resolutions.
- Optional peer-to-peer playback over WebRTC lets viewers share the load, and instances can cache each other's videos.
A network of instances, with peer-to-peer playback
Each instance hosts its own videos but can follow other instances, so their videos show up in its lists and search. People on Mastodon and other Fediverse software can follow PeerTube channels directly, and every channel has an RSS feed. To save bandwidth, viewers can share video pieces with each other over WebRTC; viewers and admins can switch this peer-to-peer mode off. Instances can also mirror each other's videos (redundancy), which helps small servers serve a bigger audience.
- ActivityPub
- Fediverse
- P2P
- RSS
Live streaming, plugins and tools for creators
Creators upload videos with descriptions and tags, or go live from any RTMP client, with permanent lives and automatic replays. Videos can be embedded on other websites. Admins can install plugins and themes from the admin panel, for example to sign in with LDAP or OpenID Connect or to add live chat, and developers can write their own with the plugin API. There are no ads and no built-in monetisation; creators can add a support button that links to their own donation pages. A REST API with an OpenAPI schema is documented.
- Live streaming
- Plugins
- Embeds
- API
Licence, hosting your own instance and limits
PeerTube is open source under the AGPL-3.0; its logo is CC BY-SA 4.0. The production guide installs it with Node.js, PostgreSQL, Redis and nginx; the FAQ asks for at least 1 vCore, 1.5 GB of RAM, 20 Mbit/s upload and enough storage, and much more for transcoding. Videos can live on disk or S3 object storage, and transcoding can move to remote runners. The domain cannot be changed after the first start, and only the latest version is supported. Each instance sets its own rules, moderation and storage, so what you can find on one depends on which other instances it follows.
- AGPL-3.0
- Self-host
- Limits
Where it fits
Use cases
- 01
Watch videos without ads or tracking
Pick an instance from the joinpeertube.org list and watch without an account. Sign up on one instance to get subscriptions, playlists and watch history.
- 02
Host your own video channel or platform
Install PeerTube on your own server and domain, set your own rules, and upload or livestream. Your videos can still be found and followed from other instances.
- 03
Run live events and permanent streams
Stream from OBS, Restream or ffmpeg over RTMP, keep a fixed URL for a permanent live, and publish the replay automatically afterwards.