Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

decoder error #41

Closed
ywangwxd opened this issue Dec 17, 2023 · 4 comments
Closed

decoder error #41

ywangwxd opened this issue Dec 17, 2023 · 4 comments

Comments

@ywangwxd
Copy link

ywangwxd commented Dec 17, 2023

I followed the instructions,
1, compiled and installed mpp from git
2, compiled and installed libyuv from git
3, compiled and installed ffmpeg
but when I try to transcode a video, it showed error message :

[h264_rkmpp_decoder @ 0x55d029d760] Picture format is nv12. [h264_rkmpp_decoder @ 0x55d029d760] Failed to initialize MPP context (code = -1). [h264_rkmpp_decoder @ 0x55d029d760] Failed to initialize RKMPP Codec.

I tried mpp_info_test binary compiled from MPP source, it shows nothing. What is the problem?

@great9
Copy link

great9 commented Dec 20, 2023

What kernel and linux distribution are you using?
uname -a

@ywangwxd
Copy link
Author

5.10.110 #39 SMP Tue Nov 8 11:08:57 CST 2022 aarch64 GNU/Linux

I am using ubuntu, I did the compliation on the aarch64 system directly, not cross-compiling.

@hbiyik
Copy link
Owner

hbiyik commented Dec 21, 2023

could ypu try decoding with sudo, if it works you need to enable access to mppservice, rga, heaps to the logged in user, you can check udev rules below.

https://github.com/7Ji-PKGBUILDs/mpp-git/blob/master/60-mpp.rules
https://github.com/7Ji-PKGBUILDs/mpp-git/blob/master/install

@ywangwxd
Copy link
Author

Yes, it is working if I change the input to a rtsp stream or a h265 file, but not on a mp4 file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants