-
Notifications
You must be signed in to change notification settings - Fork 0
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
ffmpeg-mpp
: high CPU usage when used with mpv
#8
Comments
ffmpeg-mpp
: high CPU usage when used with mpv
@hbiyik @skyseedtbgmailcom |
try those ones out those should print out whats happening |
ffmpeg.log |
i spotted several problems: it seems that your ffmpeg-mpp version is old. can you provide below command out put, you should get below versions, if not, do a
also current mpv in archlinux-arm repo has a build bug, it does not handle drm_prime output properly. It is fixed when the package is rebuild ie:
now you should be able to
you can actually measure the cpu load with:
and here are my measurements:
mpv with soft plane: %60/8 = %8 cpuload
ffplay with softplane %60/8 = %8 cpuload
division by 8 comes from 8 cpu cores, the measurement is %800 when cpu is fully load. so i bases the percantage according to 1 cpu core and we have 8. |
@7Ji libv4l-mpp is using mpp logging facilities that why you see debug entries there, ffmpeg is using another logging interface. |
We could provide also a mpv package as an alternative in that case. Should we?
@skyseedtbgmailcom How did you get that package from? In any sense we wouldn't support an outdated package. Please only use either the PKGBUILD here or binary releases from my repo. |
That would be great. Since you build mpv on target, this will work. Something like |
No it would only be |
i dont think it is necessary to provide mpv in this reppo, they will rebuild it someday and it will be fixed, or may just need to ask archlinux-arm to rebuild. Also softplanes still work, and it is good enoguh for normal use cases. |
I have finished pacman -Syu. As you say,now the question mpv can't use drm prime.When I type --hwdec=rkmpp for the mpv.If will print that: [vo/gpu/drmprime] mapping DRM dmabuf failed Now,mpv onley with soft plane:The cpu usage is the same as you about 60% for 1080p15fps video. ps -C mpv -o %cpu,%mem,cmd Than I try to copy mpv from armbian.It can run drm prime in archlinux.But the cpu usage also 60% in archlinux. |
my pacman mirrorlist is: I have been run pacman -Syu. |
your cpu usage is normal, same as mine, armbian should also give the same. |
@kyak @skyseedtbgmailcom I've added This uses the exact same PKGBUILD from Arch (x86) and does not have any difference besides being built against the latest ALARM dependencies. As such it does not have a unique To install it after the builder uploading it, run |
quote @skyseedtbgmailcom :
Close as the |
ping @hbiyik :
My device is Orangepi5,I has used this image
https://github.com/7Ji/orangepi5-archlinuxarm/releases/download/nightly/ArchLinuxARM-aarch64-OrangePi5-20231127_022252-rkloader-5.img.gz
I installed libmali-valhall-g610,mesa-panfork-git ,librga-multi,mpp-git,ffmpeg4.4-mpp,ffmpeg-mpp,libv4l-rkmpp-git ,dri2to3-git,mali-valhall-g610-firmware,libmali-valhall-g610-{dummy,gbm,wayland-gbm,x11-gbm,x11-wayland-gbm},ffmpeg-mpp,ffmpeg4.4-mpp,libv4l-rkmpp-git,v4l-utils-mpp
question:
I used mpv to play 1080p15fps h264 video in archlinux .The CPU usage is two times higher than hardware decoding in armbian.
this is mpv debug in archlinux:
echo 7 | sudo tee /sys/module/rk_vcodec/parameters/mpp_dev_debug
dmesg -w
[ 1348.429954] irq_status=00000107
[ 1348.430022] irq_status=00000107
[ 1348.628529] irq_status=00000107
[ 1348.628929] irq_status=00000107
How to solve this question?
The text was updated successfully, but these errors were encountered: