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.

Allwinner H618 Hardware-Accelerated Video Decoding & Encoding

Featured Replies

 

Hello dear comminuty,

 

I have spent the last few days trying to get Hardware-Accelerated Video Decoding Encoding to work on the H618.

 

I have tried everything but it does not work.

 

ffmpeg -input_format mjpeg -video_size 1920x1080 -i /dev/video1 -c:v cedrus264 -f rtsp rtsp://localhost:$RTSP_PORT/$MTX_PATH

my goal is to output a rtsp stream from a camera.

But I get this ERROR: 

[cedrus264 @ 0xaaaae53e5170] VE Open error.

Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

sudo ffmpeg -f v4l2 -video_size 1280x720 -i /dev/video1 -c:v cedrus264 -pix_fmt nv12 test1.mp4

ffmpeg version git-2021-10-01-afd516b Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 12 (Debian 12.2.0-14)
  configuration: --prefix=/usr --enable-nonfree --enable-gpl --enable-version3 --enable-vdpau --enable-libx264 --enable-libmp3lame --enable-libpulse --enable-libv4l2
  libavutil      57.  7.100 / 57.  7.100
  libavcodec     59.  9.101 / 59.  9.101
  libavformat    59.  5.100 / 59.  5.100
  libavdevice    59.  0.101 / 59.  0.101
  libavfilter     8. 10.100 /  8. 10.100
  libswscale      6.  1.100 /  6.  1.100
  libswresample   4.  0.100 /  4.  0.100
  libpostproc    56.  0.100 / 56.  0.100
Input #0, video4linux2,v4l2, from '/dev/video1':
  Duration: N/A, start: 2315.045127, bitrate: 147456 kb/s
  Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1280x720, 147456 kb/s, 10 fps, 10 tbr, 1000k tbn
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (cedrus264))
Press [q] to stop, [?] for help
[cedrus264 @ 0xaaaae53e5170] VE Open error.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

It was a hard way for me to get compile FFmpeg with Cedrus

I have to say that I am new to Linux. Therefore I hope that someone can give me a detailed instruction on how to finally get it running.

lsmod | grep cedrus
sunxi_cedrus           45056  0
videobuf2_dma_contig    24576  1 sunxi_cedrus
v4l2_mem2mem           36864  1 sunxi_cedrus
videobuf2_v4l2         24576  3 sunxi_cedrus,uvcvideo,v4l2_mem2mem
videobuf2_common       49152  7 sunxi_cedrus,videobuf2_vmalloc,videobuf2_dma_contig,videobuf2_v4l2,uvcvideo,v4l2_mem2mem,videobuf2_memops
videodev              204800  5 sunxi_cedrus,videobuf2_v4l2,uvcvideo,videobuf2_common,v4l2_mem2mem
mc                     53248  6 sunxi_cedrus,videodev,videobuf2_v4l2,uvcvideo,videobuf2_common,v4l2_mem2mem

otherwise I despair of this project

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.