Media device driver: cedrus
Destination format: NV12 YUV
Scaling video from 854x480 to 1024x575+0+12
Processing frame 1/25
Loaded 40286 bytes of video slice data
Decoded video frame successfuly!
Frame decode time: 2560 us
Displayed video frame successfuly!
Frame display time: 13636 us
Processing frame 2/25
Loaded 7193 bytes of video slice data
Decoded video frame successfuly!
Frame decode time: 1434 us
Displayed video frame successfuly!
Frame display time: 8286 us
Processing frame 3/25
Loaded 26746 bytes of video slice data
Decoded video frame successfuly!
Frame decode time: 1936 us
Displayed video frame successfuly!
Frame display time: 1092 us
...
Cpu usage is quite low(4 cores <5%), checked with lsof and /dev/media0 & /dev/video0 are all occupied by v4l2-request-test.
Seems frame decoding is working ok, but the big_buck_bunny video did not show up, something must be wrong here...
ffmpeg https://github.com/Kwiboo/FFmpeg.git branch FFmpeg-4l2-request-hwaccel-4.3
`--enable-v4l2-request --enable-libdrm --enable-libudev` added in configure,
And finally running `ffmpeg -loglevel debug -hwaccel drm -i ~/jellyfish-10-mbps-hd-h264.mkv -pix_fmt bgra -f fbdev /dev/fb0` without x11, green artifacts met.
One of the four cores is 100% utilized, others are free. Frame rate is super low (<5fps).
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.
Question
buptsb
Hey guys.
I have been trying to utilize H5 vpu decoding for 10+ hours... Still no go.
Here is the checklist:
Using mainline kernel 5.8.9 from Armbian/build current.
`uname -a` output:
All kernel configs needed on Sunxi-Cedrus homepage were added, cma set to 256M.
libva-v4l2-request
Using https://github.com/Sash0k/libva-v4l2-request master.
Compiled and make installed.
`vainfo` output:
`v4l2-ctl --list-formats` output:
`./v4l2-request-test -f 25 -l` output:
Cpu usage is quite low(4 cores <5%), checked with lsof and /dev/media0 & /dev/video0 are all occupied by v4l2-request-test.
Seems frame decoding is working ok, but the big_buck_bunny video did not show up, something must be wrong here...
ffmpeg
https://github.com/Kwiboo/FFmpeg.git branch FFmpeg-4l2-request-hwaccel-4.3
`--enable-v4l2-request --enable-libdrm --enable-libudev` added in configure,
`ffmpeg -decoders | grep 264` output:
And finally running `ffmpeg -loglevel debug -hwaccel drm -i ~/jellyfish-10-mbps-hd-h264.mkv -pix_fmt bgra -f fbdev /dev/fb0` without x11, green artifacts met.
One of the four cores is 100% utilized, others are free. Frame rate is super low (<5fps).
Changing hwaccel from `drm` to `vaapi` (and what's the difference between these two?), met another kind of artifacts.
So, any kind of help are welcomed, thanks!
buptsb
Edited by buptsbLink to comment
Share on other sites
3 answers to this question
Recommended Posts
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.