News: 0001493349

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

FFmpeg Merges Implicit DRM Synchronization For Vulkan

([Multimedia] 6 Hours Ago FFmpeg Vulkan Hardware Context)


Following [1]Vulkan Video H.264/H.265 video encoder support being merged into the FFmpeg library, the latest improvement for this open-source multimedia API when leveraging Vulkan is implicit DRM synchronization.

FFmpeg developer Lynne who has been leading much of the Vulkan work into FFmpeg merged this implicit DRM synchronization support for the Vulkan hardware context code.

Lynne explained in [2]the commit adding the implicit sync support:

"hwcontext_vulkan: add support for implicit DRM synchronization

More recent kernel versions allow for users to extract a sync_file handle from a DMA-BUF, which can then be imported into Vulkan as a binary semaphore.

This finally allows for synchronization between Vulkan and DMA-BUF images, such as those from screen capture software, or VAAPI, avoiding any corruption artifacts.

This is done fully asynchronously, where we use the kernel's given binary semaphores as a dependency to increment the image's usual VkSemaphores we allocate. The old imported binary semaphores are cleaned up after execution as usual.

In the future, hwcontext_drm should receive support for explicitly synchronized images as well, which would make the synchronization more robust and portable."

Synchronization between Vulkan and DMA-BUF images will be a delight for many. These latest improvements are in FFmpeg Git ahead of the project's next release.



[1] https://www.phoronix.com/news/FFmpeg-Vulkan-Encode-H.265

[2] https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/a577d313b2c14c855ab8aa69bbe3527bd7727212



cipper

MorrisS.

patrick1946

Quackdoc

Excerpts From The First Annual Nerd Bowl (#7)

JOHN SPLADDEN: In this final round, the two teams must assemble a 16-node
Beowulf cluster from scratch, install Linux on them, and then use the
system to calculate pi to 1 million digits. This is the ultimate test for
nerds... only people in the Big Leagues should attempt this... [snip]

BRYANT DUMBELL: Look at that! Instead of messing with screws, the
Portalbacks are using duct tape to attach their motherboards to the cases!
That should save some time. [snip] They've done it! The Mad Hatters have
completed the Final Round in 2 hours, 15 minutes. That's one hell of a
Beowulf cluster they produced... drool.

SPLADDEN: With that, the Mad Hatters win the Nerd Bowl 105 to 68! There's
going to be some serious beer-drinking tonight back at the Red Hat offices.

DUMBELL: Linus Torvalds has emerged from the sidelines to present his
Linus Torvalds Trophy to the winners. What a glorious sight! This has
definitely been the best Nerdbowl ever. I pity those people that have been
watching the Superbowl instead.