Publish your videos with PeerTube, the YouTube alternative
在适合你的平台 分享你的热爱
有了 PeerTube,您不再需要屈服于算法,人为修改自己的内容:PeerTube 平台是由与你我一样的有情之人管理、维护的,而不是机器人。
PeerTube allows you to focus on what you do the best: your videos, the way you want to create them.
得益于联邦概念,提升知名度!
Increase the potential audience for your videos by connecting your PeerTube platform to the ones you want.
我正准备入门 PeerTube
在现有的 PeerTube 平台上创建我的账户
Join a PeerTube platform based on its theme, terms of use or code of conduct.
- 加入社区 并直接与平台所有者交流
- 从 YouTube、Vimeo 等其他网站 导入视频,或直接导入文件
- 建立多个频道 以按主题归类您的视频,例如钢琴频道、生态频道……
- Easily integrate your PeerTube videos on your own website
- 在支持的平台中 线上直播
Create my own PeerTube platform
If you have a minimum amount of time and technical skills, creating your own platform (also called "instance") on your server is the best way to take advantage of PeerTube.
Creating and administering your own PeerTube platform will allow you to:
- 定制你自己的维护规则
- 邀请其他人创建频道,让他们一起来发布视频,或帮助您维护平台
- Choose to automatically display videos uploaded on other PeerTube instances, thanks to the federation
- 借助 P2P 减少带宽消耗
- 借助自定义主题与社区开发的 大量插件 来 定制你的实例。
有问题?我们来帮忙!
PeerTube 的内容获利政策是什么?
There are none at the moment: PeerTube is a tool that we wanted neutral in terms of monetization.
However, the uploader can display a support button under the video. This button displays a frame in which people who upload videos can display text, images, and links freely (link to Patreon, Tipeee, Paypal, Liberapay...).
We did not go any further, as we refuse to tie our code to a particular content funding method, that might not fit all communities and deter others. 这是为什么我们鼓励开发者使用 PeerTube 插件 API 来建立自己的获利系统。
我怎么安装自己的 PeerTube 平台?
安装指南在这里 (只有英文版)。
Should I have a big server to run PeerTube?
Minimum hardware requirements:
- 1 vCore
- 1.5 GB of RAM
- Enough storage for videos
- 20Mbit/s upload network speed
- 播送视频的带宽足够
Recommended hardware requirements for a big instance to handle 1,000 concurrent viewers (see our blog post about our viewers stress test):
- 4 vCore
- 4 GB of RAM
- Enough storage for videos
- 1Gbit/s upload network speed
- 播送视频的带宽足够
- 如果你打算有很多用户获观众,请阅读 规模指南
If you plan to do transcoding on the same machine as the PeerTube instance:
- 8 vCore
- 8 GB of RAM
For a more detailed guide about hardware requirements:
CPUExcept for video transcoding, a PeerTube instance is not CPU bound. Neither Nginx, PeerTube itself, PostgreSQL nor Redis require a lot of computing power. If it were only for those, one could easily get by with just one thread/vCPU.
You will hugely benefit from at least a second thread though, because of transcoding. Transcoding is very cpu intensive. It serves two purposes on a PeerTube instance: it ensures all videos can be played optimally in the web interface, and it generates different resolutions for the same video.
也可以用 远程 runners将转码任务转移到其他机器上。
RAM1.5 GB 的内存对基础 PeerTube实例应该够了, 基础实例通常最多用掉 500 MB 内存。 The only reason you might want more would be if you colocate your Redis or PostgreSQL services on a non-SSD system.
StorageThere are two important angles to storage: disk space usage and sustained read speed. To make a rough estimate of your disk space usage requirements, you want to know the answer to three questions:
- What is the total size of the videos you wish to stream?
- Do you want to enable transcoding? If so, do you want to provide multiple resolutions per video? Try this out with a few videos and you will get an idea of how much extra space is required per video and estimate a multiplication factor for future space allocation.
- Which sharing mechanisms do you want to enable? Just web video, or also HLS with P2P? If you want both, this will double your storage needs.
If you want to store many videos on your PeerTube instance, you may want to store videos externally using Object Storage.
In terms of read speed, you want to make sure that you can saturate your network uplink serving PeerTube videos. This should not be a problem with SSD disks, whereas traditional HDD should be accounted for: typical sustained read rates for a well tuned system with a 7200rpm hard disk should hover around 120 MB/s or 960 Mbit/s. The latter should be enough for a typical 1 Gbit/s network uplink.
Network对传统服务器的视频串流网络容量的粗略估计通常是很直接的。 You simply divide your server's available bandwidth by the average bandwidth per stream, and you have an upper bound.
Take a server for example with a 1 Gbit/s uplink for example pushing out 1080p60 streams at 5 Mbit/s per stream. That means the absolute theoretical upper capacity bound is 200 simultaneous viewers if your server's disk i/o can keep up. Expect a bit less in practice.
But what if you need to serve more users? That's where PeerTube's federation feature shines. If other PeerTube instances following yours, chances are they have decided to mirror part of your instance! 此功能被称为 “服务器冗余” 并缓存你最受欢迎的视频来帮助服务额外的观众。 虽然观众们在浏览器里观看视频时会贡献一点额外的带宽(主要在流量激增期间),但镜像服务器有更好的上行线路,并能帮助您的实例提供更高并行串流量。