News for hackers. Stuff that matters.
Re:How Facebook encodes videos by BlueTemplar on Monday April 26, 2021 @09:00PM (#26950426)
How come ? This looks like to be easily parallelised, so GPUs should wipe the floor with CPUs ?
Re:How Facebook encodes videos by astrange on Tuesday April 27, 2021 @01:50AM (#26952473)
Video encoding isn't GPU-parallelizable. It's a good fit for either CPU+SIMD or custom ASICs. It's just a kind of compression, which means it's based on unpredictable if-statements, which is just what GPUs don't do.

You can mass parallelize it by encoding different clips on different CPUs, this is more optimal because it has less communication overhead.

Re:How Facebook encodes videos by Wowfunhappy on Monday April 26, 2021 @09:20PM (#26950613)
No idea, maybe it will change some day. But right now, if you want the best quality at the smallest filesize, nothing seems to come close to the best software encoders. Maybe x264 and x265 are just really good.
Re:How Facebook encodes videos by astrange on Tuesday April 27, 2021 @01:49AM (#26952462)
They're unusually good because 1. encoding research wasn't done on a business schedule 2. isn't done according to objective metrics (the main ones used, SSIM/PSNR, suck and you have to use human raters) 3. more varied and weirder testcases (some pirated movies, some video game screen recording, more anime).

There's a lot of other free video encoding tools, like avisynth plugins, that are just better than all professional tools. I'm not sure why this is, maybe customers aren't sophisticated enough.

Re:How Facebook encodes videos by BlueTemplar on Tuesday April 27, 2021 @04:15AM (#26953360)
What about AV1 ?