Live data from Hacker News

Ask HN: Anyone hosting their own videos?

news.ycombinator.com

31–40 of 68 posts

Re: Ask HN: Anyone hosting their own videos?

#31

Earlier quoted context omitted.

Peertube is often very hard to load within MPV and you are exposing all of the visitors IPs to each other.

> you are exposing all of the visitors IPs to each other. For whom it may concern: This would most likely be a violation of the GDPR for users from Europe. You'll have to state this in a cookie notice if you can't change it.

That notice is already built into peertube. It was mainly developed in France.

Re: Ask HN: Anyone hosting their own videos?

#32
post #22

Do you count using a cloud provider as hosting your own? The most basic pipeline for doing it is going to look something like this: 1) Upload the original video to a storage bucket. 2) Have some compute service transcode the video file to create other renditions. 3) Store those renditions in a different storage bucket. 4) Put a CDN service in front of the transcoded renditions. Get ready for a nice bandwidth bill if…

> Get ready for a nice bandwidth bill if anyone actually watches your videos!

This 100%

I looked into it before and understandably, the badnwidth you can be using up for a relatively small amount of videos is always going to be pretty expensive. It is also not always easy to know in-advance, and do you want to suddenly get a 10x bill or have to cut-off your users when it gets expensive?

If you can afford to charge, then obviously it's different, otherwise YouTube's annoying advertising is paying for you...

Re: Ask HN: Anyone hosting their own videos?

#33

Earlier quoted context omitted.

Peertube is often very hard to load within MPV and you are exposing all of the visitors IPs to each other.

> you are exposing all of the visitors IPs to each other. For whom it may concern: This would most likely be a violation of the GDPR for users from Europe. You'll have to state this in a cookie notice if you can't change it.

PeerTube shows a banner the first time you use it.

Re: Ask HN: Anyone hosting their own videos?

#34
post #22

Do you count using a cloud provider as hosting your own? The most basic pipeline for doing it is going to look something like this: 1) Upload the original video to a storage bucket. 2) Have some compute service transcode the video file to create other renditions. 3) Store those renditions in a different storage bucket. 4) Put a CDN service in front of the transcoded renditions. Get ready for a nice bandwidth bill if…

This is how we did it at the FT. We looked at on demand HLS or DASH via our CDN as well but this didn't become a requirement during my time there.

Re: Ask HN: Anyone hosting their own videos?

#35
post #2

There's quite a few tech people using peertube as either the only or an alternative for hosting. You still need to host the original, but if people watch your stuff, maybe you'll save some bandwidth on the p2p distribution.

Installing peertube on my yunohost.org server was very easy thanks to the packaging provided. Joinpeertube.org can tell you more about the project. It is a social media project which means moderation is needed depending on how you choose to manage it.

Re: Ask HN: Anyone hosting their own videos?

#36
I host very small videos (screen captures of a CLI output, for example, and yes, I know ASCII cinema exists) on some of my web sites, and never had any major issues with them. I manually encode the video into webm and av1, and then serve the files via a CDN. I did not want to get into the complexity of serving adaptive and different bit-rates because the videos were just small ones. Handbrake can do a good job.

I'd just go with a video tag, containing the webm/av1/mp4 URLs, a poster image, and optionally subtitle tracks.

The first and most important thing is that you need to make sure your web server can serve ranged requests. Most web servers that serve static content should do fine, such as Apache and Nginx. If you have your own web server, make sure they respect Range headers and respond with the requested chunks. Most CDNs do, but servers provided by runtimes don't, such as the PHP built-in server. This is important for the browser to properly preload and seek videos embed.

I find third party video players unnecessary and added bloat. Several years ago, sure, that was when we had to fiddle with Flash players and all browser compatibility shenanigans. A standard HTML5 video player works great, it even hooks into Android media controls, bluetooth play/pause buttons, and picture-in-picture. Though I have not tried, none of the custom players can properly add subtitles/closed-captions to videos and make them work in Picture-in-Picture, apart from the standardized CC tracks. IIRC, Firefox had to bend over backwards and add custom workarounds to get Netflix CC to work in PiP. If it comes to that you need to use a custom player for consistency, I can highly vouch for Media Element JS.

Re: Ask HN: Anyone hosting their own videos?

#37
post #11

Earlier quoted context omitted.

This. Not all video hosting platforms are social networks. Vimeo (mentioned), JWPlayer, Mux, there's tons of options. You could get away by hosting an mp4 file on S3, but you lose seeking, support for bandwidth-responsive quality/resolution, support for every device under the sun, and metrics. And it may not be cheaper. I got a surprise AWS bill when someone hotlinked to test video files I was hosting so people can d…

Vimeo pivoted recentlish to big enterprise. They explicitly don't want smallish creators.

They have a "Starter" plan for $9/month and list "Small business" and "creative professionals" as their use cases. I wouldn't say they pivoted to big enterprise. They just pivoted to B2B in general and gave up on the consumer facing "indie-YouTube" side.

Re: Ask HN: Anyone hosting their own videos?

#38
post #22

Do you count using a cloud provider as hosting your own? The most basic pipeline for doing it is going to look something like this: 1) Upload the original video to a storage bucket. 2) Have some compute service transcode the video file to create other renditions. 3) Store those renditions in a different storage bucket. 4) Put a CDN service in front of the transcoded renditions. Get ready for a nice bandwidth bill if…

Using Cloudflare is one option - sample pricing[0]: Streaming a library of 500 GB of HD videos over the course of one month with approximately 72,000 minutes of viewing time to a global market. Total cost: $78.00/month [0] https://www.cloudflare.com/en-gb/products/cloudflare-stream

Cloudflare seems fairly expensive for on-demand (that is, uploaded ahead of time) video. They list their prices as $1/1000min delivered plus $5/1000min/month stored. I presume transcoding is included in those rates (since I don’t find any other line item).

Translate Bunny’s pricing https://bunny.net/stream/> to these numbers: $1/200GB delivered (assuming the volume network—the standard network is 2–12× the price, but I would not expect it to be justified) plus $5/500GB/month stored, and transcoding is included in those rates.

Bunny is cheaper to deliver below 26⅔ Mbps, and cheaper to store where the sum of all transcoded forms is below 66⅔ Mbps. This will almost always be cheaper, normally much cheaper. It depends on the content, but your 1080p60 video is almost always under 10Mbps, probably under 5Mbps, not uncommonly well under 2Mbps. Your bill with Bunny will probably be less than a third of your bill with Cloudflare, and for typically more static sorts of content (e.g. programming tutorials), probably less than a tenth.

(I am presuming the products are roughly equivalent. This may or may not be true. I have used neither.)

I should also mention that Cloudflare’s sample pricing uses grossly unrealistic rates: they translate “500 GB of HD videos” into “1,200 minutes of video content”, which means 55 5⁄9 Mbps. “HD” tends to mean 1080p these days, though it does still get used for 720p too. (Some label 1440p and 2160p/4K as HD too, but I’d say they’re beyond it.) I accuse Cloudflare of using a rate that’s around four times too high. They don’t go into detail on their “typical public cloud provider” costs so I don’t know how realistic the rest is, but given how they’ve started with something that makes them look implausibly cheap, I’m not impressed.

Re: Ask HN: Anyone hosting their own videos?

#40
I live in an area with symmetrical internet, so I host my own videos for mainly one reason (perhaps I am doing it wrong, but hey): I was uploading class videos during the pandemic. Youtube was taking so long to transcode, that by the time it was ready the class date had passed. I literally gave up trying to upload a 50min video. I am not going to beat up on youtube, but I followed the directions and it just did not seem to work.

Hosting my own is/was not too bad. The students had to wait a little longer. I did not hear too many complaints (really thought I would have heard a lot more "why can I not watch this on my youtube app on my phone").

Did not put too much effort into this post-semester, but I still do wonder what the heck other people do. I consider myself a serious veteran IT person, it is my (accidental) profession for decades. I have no idea how people upload 50+ min videos to youtube. I think I left one transcoding for 48 hours. It was not 50% done. I ensured I was using a codec youtube wanted, and even tried more. Ah well.

On the flip side, hosting on your own, you miss out on CDN reach and breadth and POPs that will cache for you. You will also dramatically miss out on speed. Then, if you have more than a few, what about indexing and search-ability? I do not like "big-corp" internet any more than the rest of us, I guess, but they have the infrastructure that we just do not have. A few videos for a class during a pandemic is one thing... but I would ask what your long term goal is in terms of the number of videos. This might change your mind as to how you want to distribute them.

Post reply on HN