3 ms·
Encoding video in real time is expensive. You can run your blog on a 5€/month machine. You'll most likely need ten times that money for a single real time strea
by imtringued 3y ago
Encoding video in real time is expensive. You can run your blog on a 5€/month machine. You'll most likely need ten times that money for a single real time stream using nothing but software decoding, rendering and encoding. If you think, "hey I'm going to use a GPU for this" then congratulations, you've increased your cloud bill by a factor of 20.
- sylware 3y agoLastest AMD GPU does realtime encoding with AV1. It has directly an ASIC block for that. Just mmap the video engine command circular buffer, get some dma buffers, get a interrupt circular buffer, and you are good to go (I think the dma-buffer sync framwork between drivers and user space is still a WIP, and I dunno how the interrupt circular buffer is handled).