News for hackers. Stuff that matters.
Re:YouTube is now building its own video-transcoding chips by 8K832d7tNmiQ on Tuesday May 04, 2021 @03:56AM (#27035008)
The real news here is that They still use GPU to transcode their videos whilst other service such as search engine already use TPU for almost a decade now.

I thought they've already use custom chip for transcoding for decades.

Re:YouTube is now building its own video-transcoding chips by rland on Tuesday May 04, 2021 @04:26AM (#27035210)
GPUs have specialized hardware for video transcoding, no? So this actually makes sense. The product was already made (although, perhaps not up to Youtube's standard) by GPU manufacturers.
Re:YouTube is now building its own video-transcoding chips by numlock86 on Tuesday May 04, 2021 @06:37AM (#27036001)
The specialized hardware in GPUs is targeted at encoding content on the fly. While you could use this to encode a video for later playback it has a couple of drawbacks when it comes to size and quality, namely h264, keyframes, static frame allocations, no multipass encoding, etc. ... This is why video production software that supports GPU encoding usually marks this option as "create a preview, fast!". It's fast but that's it. If you want a good quality/size ratio you would use something like VP9 for example. Because of missing specialized hardware and internals of the codec itself currently this is very slow. Add multipass encoding, something like 4k at 60 frames, adaptive codec bitrates and suddenly encoding a second takes a over two minutes ... the result is the need for specialized hardware.
Re:YouTube is now building its own video-transcoding chips by rland on Wednesday May 05, 2021 @07:38PM (#27057319)
That is interesting, I didn't know that. I thought that doing computation on the GPU sped up encoding for even the high quality presets.
Re:YouTube is now building its own video-transcoding chips by jng on Tuesday May 04, 2021 @04:50AM (#27035372)
Is there any solid information about Google using TPU for the search engine, or is this an assumption you're making?
Re:YouTube is now building its own video-transcoding chips by alarmingfox on Tuesday May 04, 2021 @04:55AM (#27035401)
This[0] Google blog from 2017 states they were using TPU for RankBrain which is what powers the search engine

[0] - https://cloud.google.com/blog/products/ai-machine-learning/g...

Re:YouTube is now building its own video-transcoding chips by londons_explore on Tuesday May 04, 2021 @05:44AM (#27035641)
They had to get special permission from the US government to export TPU's abroad to use in their datacenters. The TPU's fell under ITAR regulations (like many machine learning chips). The US government granted permission, but put some restriction like 'they must always be supervised by an american citizen', which I imagine leads to some very well paid foreign security guard positions for someone with the correct passport...

Read all that on some random government document portal, but can't seem to find it now...

Re:YouTube is now building its own video-transcoding chips by JohnJamesRambo on Tuesday May 04, 2021 @05:13AM (#27035488)
All that power to show me recipes that hemhaw around and spend ten paragraphs to use all the right SEO words.

I feel like the Google results were better 20 years ago, what did they use back then before TPUs?

Re:YouTube is now building its own video-transcoding chips by KeplerBoy on Tuesday May 04, 2021 @05:32AM (#27035572)
The web just got worse in a lot of ways, because everything needs to generate money.
Re:YouTube is now building its own video-transcoding chips by mda on Tuesday May 04, 2021 @07:00AM (#27036172)
I think search results 20 years ago were laughably worse than today.
Re:YouTube is now building its own video-transcoding chips by baybal2 on Tuesday May 04, 2021 @05:13AM (#27035490)
They were actually transcoding on CPUs before, not GPUs
Re:YouTube is now building its own video-transcoding chips by boomlinde on Tuesday May 04, 2021 @06:29AM (#27035942)
Are TPUs particularly useful for this kind of workload, compared to specialized encoders/decoders available on GPUs?
Re:YouTube is now building its own video-transcoding chips by madeofpalk on Tuesday May 04, 2021 @06:51AM (#27036118)
Yeah I was surprised that it's taken them this long to build custom hardware for encoding videos.
Re:YouTube is now building its own video-transcoding chips by anonymoushn on Tuesday May 04, 2021 @04:52AM (#27035391)
Right, at a competing video site we had vendors trying to sell us specialized encoding hardware most of a decade ago.
Re:YouTube is now building its own video-transcoding chips by kungito on Tuesday May 04, 2021 @04:55AM (#27035403)
i think they do more general purpose things like downsampling, copyright detection etc which doesn't have globally available custom asics. i think gpus don't do encoding/decoding themselves, they have separate asics built in which do the standardised encodings