2017-02-10 12:20:21 +01:00
|
|
|
# FAQ
|
|
|
|
|
2017-11-27 19:39:20 +01:00
|
|
|
## If nobody watches a video, is it seeded?
|
2017-02-10 12:20:21 +01:00
|
|
|
|
2018-01-06 18:10:30 +01:00
|
|
|
Yes, the origin server always seeds videos uploaded on it thanks to
|
|
|
|
[Webseed](http://www.bittorrent.org/beps/bep_0019.html).
|
2017-02-10 12:20:21 +01:00
|
|
|
|
|
|
|
|
|
|
|
## What is WebSeed?
|
|
|
|
|
2018-01-06 18:10:30 +01:00
|
|
|
It is a BitTorrent extension that allows a server to seed a file through HTTP.
|
|
|
|
It just needs to statically serve a file, then the clients will request chunks
|
|
|
|
with a `Content-Range` HTTP header.
|
2017-02-10 12:20:21 +01:00
|
|
|
|
|
|
|
|
2018-01-06 18:10:30 +01:00
|
|
|
## If a client requests each chunk of a video through HTTP, will the server be overloaded?
|
2017-02-10 12:20:21 +01:00
|
|
|
|
2018-01-06 18:10:30 +01:00
|
|
|
Not really. Reverse proxies like Nginx handle very well requests of static
|
|
|
|
files. In my tests, it can send chunks at 10MB/s without consuming more than 5%
|
|
|
|
of CPU on a very small VPS.
|
2017-02-10 12:20:21 +01:00
|
|
|
|
|
|
|
|
2018-01-06 18:10:30 +01:00
|
|
|
## Will an index of all the videos of servers you follow be too large for small servers?
|
2017-02-10 12:20:21 +01:00
|
|
|
|
2018-01-06 18:10:30 +01:00
|
|
|
In our benchmarks, 1,000,000 videos takes around 2GB of storage on PostgreSQL.
|
|
|
|
We think it is acceptable for a video platform.
|
2017-02-10 12:20:21 +01:00
|
|
|
|
|
|
|
|
2018-01-06 18:10:30 +01:00
|
|
|
## What codecs can I use for the videos I want to upload?
|
2017-02-10 12:20:21 +01:00
|
|
|
|
|
|
|
WEBM, MP4 or OGV videos.
|
|
|
|
|
|
|
|
|
2017-11-27 19:39:20 +01:00
|
|
|
## I want to change my host or move to HTTPS, how can I do that?
|
2017-02-10 12:20:21 +01:00
|
|
|
|
2017-11-27 16:06:13 +01:00
|
|
|
If you already have followers, you can't.
|
|
|
|
|
2018-01-06 18:10:30 +01:00
|
|
|
If you don't have any followers, update your configuration and run
|
|
|
|
`NODE_ENV=production npm run update-host` to update the torrent files.
|