Open kevkid opened 6 years ago
I have blacklisted h264_omx
encoder in motion software because of a lock up issue on Raspberry Pi. See https://github.com/ccrisan/motioneye/issues/930
You'll need to comment out h264_omx
from the blacklist and recompile motion software.
Note that motion + h264_omx encoder combination hasn't been tested before, so don't be surprised if it causes weird problems on your system.
@kevkid how did you manage to install it from PPA https://launchpad.net/ubuntu/+source/motion ?
@TopperBG I installed it from the deb file located: https://launchpad.net/ubuntu/+archive/primary/+files/motion_4.1.1-1.1build1_armhf.deb
It is under the cosmic cuttlefish branch.
Can you tell me how to install the motion_4.1.1-1.1build1_armhf.deb by doing the dpkg -i then followed by a apt-get install -f? Do you have to recompile only the motion software or the ffmpeg also? Do you recompile the motion software with the pip install motion command?
@xu4user did you try dpkg -i
?
No, that is what I was asking. What are the procedures for doing this... so it would be dpkg -i motion_4.1.1-1.1build1_armhf.deb, then follow that by a apt-get install -f... correct? After that, then I comment out the h264_omx line in the motioneye.conf file and then do a pip2 install motioneye?? Is this correct?
For XU4 hardware video encoding, you need to use h264_v4l2m2m
encoder. Make sure your ffmpeg supports h264_v4l2m2m, then change movie_codec
parameter in the camera-1.conf
file to select the h264_v4l2m2m
encoder to this: movie_codec mp4:h264_v4l2m2m
.
I am using Ubuntu 16.04 but got latest Bionic sources and upgraded packages that way:
Here is what I tried
[x] Updating to latest motion eye (0.39.2)
[x] updating to latest motion (4.1.1) using: https://launchpad.net/ubuntu/+source/motion where now I finally see H.264/OMX
[x] Selecting H.264/OMX
I still get high cpu utilization (according to top the motion process is at 110%+) and when I try to look at gpu utilization I get:
Could I be missing something?
I have 2 cameras which are in fast network mode they are raspberry pi zeros. It is being recorded at 1024x768@20fps. Image quality is at 5% and it is detecting motion.