7 ms·
I like the idea of PeerTube, but every time I try to play a video, it buffers to the point of being unwatchable.
by PopeDotNinja 6y ago
I like the idea of PeerTube, but every time I try to play a video, it buffers to the point of being unwatchable.
- simias 6y agoStreaming video is hard and expensive, I think that's why there's very little serious competition to Youtube. You not only have the network effects of social media ("everybody is on Youtube") but you also have to host and stream petabytes of data and still manage to turn a profit. Now if on top of all of that you want to do it with decentralized technologies it become even harder to reach the same level of quality. Anybody who's attempted to download some niche torrent from a few years ago knows that the success rate tends to be very low. Meanwhile you can still watch the holiday video of some Polish family in Italy in 2011 on Youtube, even if it only has like 20 views. I want a decentralized, peer-to-peer internet but when you face the technical and financial realities you realize that it really doesn't add up, IMO. You need huge economies of scale to make it work. Or alternatively you need to convince people that things like web search, video streaming and email hosting are actually worth paying for. Good luck.
- akerro 6y agoCan I encode video to one format, like webm, and only serve this format without reendocing specifically for a client? Force all clients to watch only in resolutions in which the file is available on disk? It would deduct CPU/GPU time and only need to get storage and network, which isn't that expensive. I have a few dedicated kimsufi servers that are under-utilized.
- kevincox 6y agoYou can. But now most of your clients will burn battery because they don't have hardware VP8, VP9 or AV1 decoding (yet). IIUC these are the only video codecs supported by WebM and they have very little hardware support. Of course this problem exists for any particular codec that you chose it is either nonfree, inefficient or not universally supported. And after that some of your clients will have terrible buffering because your video file is too large. Other clients will have a 4k TV and your file will be too small. Unless your bandwidth is very cheap you will also spend more money sending your 1080 video to phones with a 720p screen. So yes you can. But there is a reason that every serious video service has multiple codecs, every client has a different ideal video file and by getting close to that you will provide a better experience.
- akerro 6y agoI meant webm as an example, anything else works as long as the file will be encoded once and then directly streamed without reencoding
- kevincox 6y agoMy point is that any one encode won't be sufficient. WebM is actually probably one of the better options for a single encoding. But any single choice of codec and parameters will be insufficient to provide a top-tier user experience.
- mekkkkkk 6y agoNot sure what you mean with reencoding for each client? AFAIK no major streaming does this realtime. They reencode the content once from source into a number of bitrates and formats, put the result on a CDN and then use DASH/HLS/Smooth so clients can dynamically fetch and switch between them based on a manifest. If you do not do DRM you can probably get away with only using HLS or DASH and three or so bitrates/qualities. 480p, 720p and source perhaps? That might double your storage req and the one time encode effort, but running costs are the same (if not less because people will consume less bandwidth).
- mekkkkkk 6y agoCan't edit my comment for some reason, but I just wanted to correct myself in that just-in-time encoding is a thing that exists and is being used. Only lately has it been in significant use for non-live content though. The standard practice is still what I outlined above.
- djmobley 6y agoIs YouTube even profitable? Google/Alphabet have never disclosed this.
- abdullahkhalids 6y agoInterestingly, part of the problem is that people have switched to smaller and portable devices like laptop, tablets and phones, and away from desktop computers. Desktop computers are not constrained as much by energy consumption problems, can usually have more storage at the same price point, and can persistently connect to reliable internet. In other words, and ironically, the physical deanchoring of compute devices has made it harder for virtually decentralized video sharing to take off.
- toast0 6y agoOn the other hand, wifi routers could do this. Plug in a USB external hard drive, fiddle with some software, boom. (Asus includes a remote accessible file storage; other options are possible with 3rd party firmware, etc)
- simias 6y agoTrue, and also IPv4 and mass-NATing everything by default was an other factor IMO. If you've been coding some network application over the past 3 decades you basically have to assume that most of your users are going to run it behind a NAT. That creates a world of issues for anything p2p. I wonder if the situation would've been different had something like IPv6 been adopted much earlier. Then even end users might have integrated the idea that their devices would remain accessible remotely once connected to the internet. That would have made it harder for ISPs to sell these connections where basically nothing but HTTP(S) makes it through.
- shaan7 6y agoMaybe it depends on the peers near you and when you watch. I tried to play a video on the OP's website, it played immediately at 1080p without any stutter.
- ElijahLynn 6y agoThat was my usual experience too, however, I think the article site is hosting their own. e.g. if you click from that article to a sample peertube embed, https://battlepenguin.com/tech/video/upgrading-the-ssd-on-an-msi-gs60-laptop/ https://battlepenguin.com/tech/video/upgrading-the-ssd-on-an..., it played instantly for me. Fastest I have ever seen PeerTube work, just as fast as YouTube actually. I didn't know that was possible! So it does appear that hosting your own videos allows for instant streaming on PeerTube, no buffering!
- djsumdog 6y agoAuthor here. I host on a dedicated server in Germany; 64GB of ram and a recent generation processor. It costs less than all my crappy Vultr/DigitalOcean nodes, so I moved a ton of stuff to it. You do need a decent VM or dedicated server for PeerTube, but they're not that expensive if you shop around. I pay ~€60 a month.
- bserge 6y agoWhy use PeerTube at all if you can just stream directly from server? In theory, more viewers = more bandwidth, but it doesn't seem to work that well in practice.
- zucker42 6y agoPeerTube's reasonably good browser interface and federation features are good reasons to use it.
- antepodius 6y agoThe torrent system's nice if it works, but the main draw is having a nice interface and being able to host your own stuff.
- ryan29 6y agoHey. It's really neat. Would you be willing to share any insight you have? I don't know much about PeerTube. I assume your server is along the lines of an anchor / primary peer that guarantees there's always 1 seed. Is that right? If so, is there a way to turn off the peer-to-peer capabilities and to use it like a more traditional video hosting platform? > It makes more sense for someone just starting out to host their own content, than a creator who is entrenched in the YouTube world. I've thought about that concept for (literally) at least 2 years and I've always wanted to build a how-to website that helps creators do what they can to mitigate the risks of being de-platformed, etc.. Have you thought at all about ways to use YouTube to externalize costs initially, but with a plan to eventually migrate premium users to a platform where you'd get a better business relationship? I think Linus Tech Tips has the right idea with FloatPlane where they cater to creators that are already popular and help them syphon those creators' premium users away from YouTube. Do you think there's any way a completely new creator could start out with extremely low ongoing costs? ~€60 a month is too expensive for high school kids and I think that's about the only age where you'd (possibly) have a chance to start capturing the market in terms of mindshare. Even by then, it might be too late. A lot of really young kids have YouTube channels and are already captured by Google. By the time they're in high school they've already got a half decade of "investment" into YouTube. Any thoughts on that?