Skip to content
View in the app

A better way to browse. Learn more.

Learn more

a v4l2 bridge driver to rkmpp, for chromium hardware accelerated video decoding

Featured Replies

many linux distro shipped chromium with v4l2 decoder enabled. so I developed a v4l2 driver based on rockchip mpp library, to enable hardware accelerated video decoding.

the idea is, rockchip only maintaining a rockchip mpp library for video decoding, without a v4l2 driver. so we can build a v4l2 stateful driver bridging to a userspace mpp decoding service, and the service do real hardware decoding by mpp library.

this solution has 3 advantages:

  1. mpp service can do some absent video processing in userspace by leveraging vulkan. for example, currently chromium 153 can only support 8 bit output, so I use vulkan to convert 10-bit video to 8 bit.
  2. mpp service can update independently.
  3. needs not re-compile the chromium, which is a really long long time job.

this is the result (tested with rk3588 on vender kernel 6.1.115): https://github.com/abadcafe/v4l2-stateful-rkmpp

Edited by abadcafe

Interesting. It would be more interesting for me if it was compiled against the latest supported Armbian kernel instead of the vendor supplied mystery kernel.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.