Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

x264 HW-encoding on Orange Pi Zero 2W

Featured Replies

Just to add if I try skipping forward it trips up and goes back to software decoding. Tried adjusting CMA buffers (128mb) but this just leads to the system crashing.

 

[lavf] queuing seek to 243.633333
[lavf] execute seek (to 243.633333 flags 4)
[lavf] seek done
[file] stream level seek from 32352085 to 32875635
[vd] Pixel formats supported by decoder: vdpau vaapi drm_prime yuv420p
[vd] Codec profile: Main (0x4d)
[vd] Requesting pixfmt 'drm_prime' from decoder.
[ffmpeg/video] h264: v4l2_request_try_format: pixelformat 842094158 not supported for type 1
[ffmpeg/video] h264: v4l2_request_buffer_alloc: create buffers failed for type 1, Cannot allocate memory (12)
[ffmpeg/video] h264: Failed setup for format drm_prime: hwaccel initialisation returned error.
[vd] Pixel formats supported by decoder: vdpau vaapi yuv420p yuv420p
[vd] Codec profile: Main (0x4d)
[vd] Requesting pixfmt 'yuv420p' from decoder.
[statusline] (Paused) V: 00:04:03 / 01:24:45 (5%)
[osd/libass] libass API version: 0x1701000
[osd/libass] libass source: tarball: 0.17.1
[vd] Falling back to software decoding.
[vd] Detected 2 logical cores.

 

Edited by Ryzer

Right will give it another go. Turns out adjusting the CMA is not straightforward in the case of the A10 or A20. The Video Engine can only access the first 256mb of memory, which is addressed via a DMA pool in the respective dtsi files. Anything higher than the default 96mb causes it become dissociated from the DMA pool. i suspect that's what lead to my earlier crashes.

Hi!

 

@jwalds did yo mange to make hw decoding work with cedrus?

(Note: you initially wrote cedar_ve, that's a different driver)

 

I'm fighting with a nanopi duo2.

If it works at your end I'd like to know your setup

kernel version

armbianEnv.txt

whatelse has been installed, how

could you please provide your dts / dto ?

 

  T.

 

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...

Account

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.