Closed danergo closed 1 year ago
don't know much about it, but guessing you can check it with strace tool.
the mpp will try to access a few device nodes under /dev/, and check compatible under /proc/device-tree, so could be a permission issue or kernel driver issue.
Thank you for your quick reply!
I ran ffmpeg with sudo, so permission might not be an issue, and I have all required dri, MPP etc in /dev.
Will check with strace later today.
Any idea (if I don't wish to deepdive into these) how could I use ffmpeg with rockchip hw acceleration easily?
Thank you!
On Mon, 17 Apr 2023, 12:59 Jeffy, @.***> wrote:
don't know much about it, but guessing you can check it with strace tool.
the mpp will try to access a few device nodes under /dev/, and check compatible under /proc/device-tree, so could be a permission issue or kernel driver issue.
— Reply to this email directly, view it on GitHub https://github.com/JeffyCN/rockchip_mirrors/issues/25#issuecomment-1510962386, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACZKPOASJGMXMNOXTH5YQE3XBUA5TANCNFSM6AAAAAAXA3GDTE . You are receiving this because you authored the thread.Message ID: @.***>
i don't use ffmpeg much, i would prefer gstreamer.
for ffmpeg, maybe you can check: https://github.com/JeffyCN/FFmpeg/issues/18
I wish to use Emby (it's a media server), which relies on FFMPEG, so unfortunately I don't have other choice.
Will try yours, and let you know. Thank you very much!
Okay, I tried compiling yours, and it segfaults :(
My mpp might be wrong, can you please point me to the correct mpp repo which I need to build?
the mpp should match the kernel driver, so i don't know which version you need...
the mpp maintainer's repo: https://github.com/HermanChen/mpp
You can check mpp logs from syslog by journalctl -f
.
I encountered this issue when runnning as root on armbian because armbian has a kernel which has enabled CONFIG_ION=y
and then mpp will try to use /dev/ion
because the process just has the permission to access it. Running as normal user can avoid it.
On rk3568 , /dev/ion
can break MPP, just delete it, or disable it on kernel config.
DMA_HEAP has better performance than ION, it's a perfer solution. If DMA_HEAP not supported on your kernel (like 4.19), use DRM instead.
If I remove /Dev/ion, it works. Thank you.
I compiled these repos: librga (from rockchip_mirrors), mpp (this repo), ffmpeg-rk on a NanoPI R5C locally. Then I also did "sudo make install" for all projects.
Now, when I try running this ffmpeg I got:
Can you help me understand which point is missing?