News for hackers. Stuff that matters.
Re:FFmpeg 7.1 release: a tons of codecs by IntelMiner on Monday September 30, 2024 @06:30AM (#41695563)
Isn't Nvenc (and its equivalents) based on using a specific ASIC on the GPU, rather than Vulkan which (as I understand it?) is just "regular" GPU compute?
Re:FFmpeg 7.1 release: a tons of codecs by kuschku on Monday September 30, 2024 @06:36AM (#41695597)
Most GPU encoders are part ASIC, part regular GPGPU compute. That's what allowed AMD to increase the quality of their encoders via a driver update, but also why you can't add easily add entirely new codecs.

That said, outside of GPUs there are both FPGA-based and pure-ASIC hardware encoders that beat not just NVENC but even software encoding in terms of quality AND performance, such as AMD's Alveo lineup. https://www.amd.com/en/products/accelerators/alveo/ma35d.htm...

Re:FFmpeg 7.1 release: a tons of codecs by magicalhippo on Monday September 30, 2024 @06:35AM (#41695594)
No, Vulkan has released a standard API for video encoding/decoding[1]. So you can use that to access the hardware rather than the proprietary APIs like nvenc.

[1]: https://www.khronos.org/assets/uploads/apis/Vulkan-Video-Dee...

Re:FFmpeg 7.1 release: a tons of codecs by dagmx on Monday September 30, 2024 @11:16AM (#41698140)
The Vulkan APi calls out to the same hardware. The benefit of using it via Vulkan is that you (in theory) don’t need to have multiple APIs for different GPU vendors.
Re:FFmpeg 7.1 release: a tons of codecs by amaranth on Monday September 30, 2024 @12:05PM (#41698744)
It's also meant to make it (somewhat) easier to apply various GPGPU filters and scalers before encode or after decode, like HDR tonemapping. The OS usually has some method to do this while keeping the data in the GPU VRAM by passing a handle from one API subsystem to another but if it never leaves Vulkan you don't have to worry about getting that right.