News for hackers. Stuff that matters.
Re:“My Google account got suspended because of NewPipe” by k__ on Monday October 14, 2019 @09:54AM (#21248263)
What are the financial and technical implications of this?
Re:“My Google account got suspended because of NewPipe” by nothrabannosir on Monday October 14, 2019 @10:17AM (#21248507)
One nasty implication is that adaptive bandwidth streaming as YouTube and Vimeo provide is tricky to get right. It’s definitely beyond “any other static file.”

It’s a nice feature to allow clients to stream the max bitrate they can handle without buffering. Without this, you sacrifice either quality of those with good connections, or the complete experience of those with poor ones. I ended up struggling with ffmpeg and JPlayer which is never a good day.

Additionally, you need to make sure you use the right codec, something supported on FF, Chrome, and Linux/Mac/Windows/Android/iOS. Due to codec power struggles, this is not self evident.

Hosting video is harder than it seems :(

Re:“My Google account got suspended because of NewPipe” by aaronax on Monday October 14, 2019 @10:23AM (#21248579)
On Digital Ocean's S3-compatible service for example, $5/month gets you 250GB storage and 1TB egress. $0.02/GB additional storage and $0.01/GB additional egress.

So if you have 5GB of videos that ALL get watched 10,000 times you will be out $500, so maybe problematic. Or calculated another way, 2.2mbps is good for 720p and comes out to 1GB/hour, so your cost is basically $0.01 per hour of video streamed (plus $5/month).

Re:“My Google account got suspended because of NewPipe” by notyourday on Monday October 14, 2019 @05:56PM (#21253304)
That's the case of premature optimization.

You are not going to get even one video watched 10k times, not to mention all of those videos. 10K video views is pretty darn close to head rather than the tail.

If you did, you would be making a million a year like @BrunchBoys on IG and hiring people to build an independent platform so when Youtube/Google/FB shut you down you would still have a way to deliver your awesome videos and make money.

P.S. You can always proxy EC2 traffic through the Lightsail to have a cheap delivery.

Re:“My Google account got suspended because of NewPipe” by pas on Tuesday October 15, 2019 @04:39AM (#21256622)
Or, you might get a random HN/Reddit (Slashdot, haha) hug of love, and that's -500 USD for you, and no +1 000 000 at the end of the year, because it was a one time thing.
Re:“My Google account got suspended because of NewPipe” by notyourday on Tuesday October 15, 2019 @03:40PM (#21262795)
I heart a lot of these magic hugs of love and I can tell you excluding teen boy bands with a gaggle of screaming teenage girls using their phones to live stream from concerts or pirate pay per view boxing matches I have never seen anything close to it.

10K views of a video that's more than a few minutes long is a big deal. Having a hundred of those means a producer is either a celebrity or a real business specializing in video content.

Re:“My Google account got suspended because of NewPipe” by Dylan16807 on Tuesday October 15, 2019 @02:22PM (#21261852)
You might get 10k people to start watching a video. They're not each going to watch five hours.
Re:“My Google account got suspended because of NewPipe” by mongol on Monday October 14, 2019 @12:51PM (#21250242)
How does this change with a CDN on front? Are those prices similar, more expensive or less?
Re:“My Google account got suspended because of NewPipe” by k__ on Monday October 14, 2019 @01:14PM (#21250476)
CloudFront is $0.085 per GB out, S3 is almost the same.

But as far as I know, CF has more free traffic than S3.

Re:“My Google account got suspended because of NewPipe” by CodesInChaos on Monday October 14, 2019 @12:06PM (#21249755)
The financial implications depend a lot on your provider. AWS has usurious prices at 90 USD/TB, with Google Cloud and Azure being similarly expensive.

While traditional hosters often include traffic with their offerings or charge a much lower amount. For example Hetzner (Big traditional German hoster) costs 1 EUR/TB and traffic is inclusive with most bigger/dedicated offers.

Re:“My Google account got suspended because of NewPipe” by a1369209993 on Monday October 14, 2019 @10:40PM (#21255120)
> usurious

Nitpick: you mean either "extortionate" or something to do with ogliopolies, cartels, and price fixing; usury is when the perpetrator charges interest on a non-defaultable loan.

Re:“My Google account got suspended because of NewPipe” by pas on Tuesday October 15, 2019 @04:45AM (#21256650)
I think in this case this word was used for simple dramatic emphasis, and somehow usury seems like a more white-collar thing than extortion, so maybe felt like the better "analogy"?
Re:“My Google account got suspended because of NewPipe” by Santosh83 on Monday October 14, 2019 @10:02AM (#21248361)
Technically its pretty easy with the video tag and HTML5. Financially it will probably not be an issue unless their videos become very popular and at that point they could always move elsewhere or pay for more bandwidth. But discoverability is an issue. People search for videos on Youtube, but no one will know about your personal domain.
Re:“My Google account got suspended because of NewPipe” by londons_explore on Monday October 14, 2019 @10:22AM (#21248568)
Technically, your users will get a sub-par experience.

Those on 3g will have to wait ages for the video to buffer. Those on an old device won't be able to play it at all if you used new codecs. Users won't be able to select playback quality, and on a slow connection, they'll get endless buffering.

You'll have to come up with your own systems for counting how many people viewed the video and which bits they bailed out on. You'll have to reinvent caption translations and go to extra effort to get captions working at all.

Self hosted videos have mostly died for the above reasons.

Re:“My Google account got suspended because of NewPipe” by milankragujevic on Monday October 14, 2019 @05:21PM (#21253036)
I managed to do adaptive streaming as a 14 year old (in 2014) and it worked for 10 000 people. It didnt cost me that much, given I made profit of 80$ off of adsense before being banned and almost sued but thats a different thing.

The point is with HLS or DASH and CloudFlare you can provide the exact same experience to all your users. You can easily automate the process, which I've done. All other problems are already solved by player software like Clappr, JWPlayer, VideoJS, etc. They all use HLS.js and Dash.js in the background...

Re:“My Google account got suspended because of NewPipe” by Santosh83 on Monday October 14, 2019 @11:14AM (#21249151)
Adaptive streaming doesn't seem to be a difficult problem to solve. Most cloud providers offer video streaming services that can transparently sit in front of your domain or you can serve something like HLS or MPEG-DASH files through an appropriate js player. I must admit though I have no personal experience with this and am sure any home-rolled solution will be vastly inferior to Youtube et al, but it is possible and may satisfy the use cases of many people who don't want to put all their eggs into one basket.
Re:“My Google account got suspended because of NewPipe” by acdha on Monday October 14, 2019 @01:24PM (#21250589)
> Those on 3g will have to wait ages for the video to buffer. Those on an old device won't be able to play it at all if you used new codecs.

This advice is pretty stale: 3G is rather old by now – 4G came out in 2009 – and unless you’re still supporting IE8 HTML5 makes it easy to let the browser select from multiple sources (subtitles have similarly had wide support for at least half a decade). Properly hinted video will start playing pretty quickly — certainly not massively slower than someone with 3G on an old device is going to experience everywhere else, especially since that old device isn’t going to pick the 4K version anyway.

Re:“My Google account got suspended because of NewPipe” by inetknght on Monday October 14, 2019 @02:46PM (#21251426)
> This advice is pretty stale: 3G is rather old by now – 4G came out in 2009

When traveling to places with 4G or LTE coverage I'm often downgraded to 3G or edge. My parents' home has mostly 2G/edge connectivity, with some spotty 3G coverage on the second floor. They're "only" on the outskirts of a greater metropolitan area.

Just because some tech is old doesn't mean it's not very much still relevant.

Re:“My Google account got suspended because of NewPipe” by acdha on Monday October 14, 2019 @04:00PM (#21252190)
You can’t look at this without considering the context: yes, there are areas with marginal coverage (I also have relatives in that situation) but if you’re in one of them you are either not watching video over cellular because the experience is unpleasant or you’re used to it being slow and an extra second to start is a drop in the bucket. The number of people who are on very slow connections who are also highly latency sensitive just isn’t a significant percentage of users for most sites, and most sites have many areas for performance improvements before they need to tackle that problem.
Re:“My Google account got suspended because of NewPipe” by rapfaria on Monday October 14, 2019 @04:16PM (#21252372)
I actually force my cellphone to 3G since I can watch everything in 1080p with it and I never lose connection like I do with 4G
Re:“My Google account got suspended because of NewPipe” by vbezhenar on Monday October 14, 2019 @01:07PM (#21250402)
You can provide links for different qualities and let user decide which one is better. Subtitles are supported by HTML video tag, you don't need to invent anything.
Re:“My Google account got suspended because of NewPipe” by k__ on Monday October 14, 2019 @10:16AM (#21248493)
I see... I think dev.to, the blogging platform I use, supports video-uploads too.

Otherwise, I'll take a look into S3/CloudFront.

Didn't even think that far, lol. Thanks for the info!

Re:“My Google account got suspended because of NewPipe” by gog on Monday October 14, 2019 @10:01AM (#21248343)
That of course depends on how popular your videos becomes, but for the 99% videos I would say none since you already pay for hosting your web site.
Re:“My Google account got suspended because of NewPipe” by askz on Tuesday October 15, 2019 @09:44AM (#21258250)
You could host them on some peertube instance

https://joinpeertube.org/en/#register