-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RK3399 H.264 Encode Failure #124
Comments
Does decode work fine for you? I'm getting s similar error with rk3399 h264 decoding. |
Sorry, didn't test the decoder. |
Could you please update mpp to latest version and test again? |
@HermanChen I get this inside Docker, but not outside. Both running Debian Stretch, RK3399. The versions of mpp are clearly different though. In Docker I installed with:
On the host system these packages are installed via: https://github.com/rockchip-linux/rk-rootfs-build/tree/master/packages/arm64 Within the container (latest develop):
with latest release branch:
outside the container:
In the container:
I don't seem to have the utilities on the host Linux system. |
mpp required some kernel device to run the encoding / decoding process. |
@HermanChen Possibly, but I don't know exactly what the missing dependency is. On the host system, those packages are installed like this: https://github.com/rockchip-linux/rk-rootfs-build/blob/0cddc6e041d13d7ad91463a3b152952cc4ddcff3/mk-rootfs-stretch.sh#L107 I've replicated that inside my container, and it works:
If i then clone this repo and build the develop branch it also works. I would guess it's the vpu driver? For reference:
and then ensure to run the container as @ram95014 have a look in https://github.com/rockchip-linux/rk-rootfs-build in the arm64 packages and try installing this https://github.com/rockchip-linux/rk-rootfs-build/blob/master/packages/arm64/video/mpp/librockchip-vpu0_20191031-1_arm64.deb |
It definitely doesn't work if I build from source, actually (on the host system). I get the same error, but the older package provided by rockchip works. I think there's possibly a regression somewhere. All I've done is:
So it's definitely linking to the newly built libraries.
|
mpp_device: mpp_device_send_reg ioctl VPU_IOC_SET_REG failed ret -1 errno 14 Bad address |
Thanks! Here's the output from dmesg:
Kernel info:
Has a few extra modules enabled, but nothing much. If it helps I can dump my config. |
I am running "Ubuntu 18.04.1 LTS" with "Linux linux 4.4.154-59-rockchip-g5e70f14 #4 SMP Fri Dec 14 20:55:41 CST 2018 aarch64 aarch64 aarch64 GNU/Linux".
On a simple h.264 encode test with a set of nv12 frame, I get the following error:
with this command:
The text was updated successfully, but these errors were encountered: