Page 1 of 1

motion on RPi 2

Posted: Sat Feb 07, 2015 6:57 pm
by anb8
Has anyone tested motion with RPi 2? Seen any performance improvements?

I have tested motion-mmal that I used with RPi 1 but I am not seeing any performance improvement. Actually I would say that the performance and recording frame rate is worse with RPi 2 than with RPi 1...
Why is that? Do we need a new motion-mmal build for the RPi2?

Re: motion on RPi 2

Posted: Sun Feb 08, 2015 11:08 pm
by dozencrows
Thanks for trying motion-mmal on the Pi 2! I'm not surprised at lack of noticeable speed-up; however if you're seeing a lower frame rate, that's odd. Are you building motion-mmal yourself, or using the Dropbox binary?

To get a chance at faster motion, you'll need to build the motion-mmal binary itself for ARMv7 (the current binary is ARMv6 for the original Pi) - and you'll also need to get hold of (or build) ARMv7 binaries of all the libraries it depends on (e.g. libffmpeg) - some are statically linked to the motion binary, and I don't know if Raspbian on the Pi 2 has ARMv7 shared libraries as much is still used in common with Pi 1.

With the four cores, there's potential to parallelise some of the image processing steps - but that will require rewriting some parts. The ARMv7 chip in the Pi also has the NEON vector floating point unit, which could also help.

I have a Pi 2 now, I just need to find the time to get stuck back in to motion-mmal as there's now more interesting stuff to play with!

Re: motion on RPi 2

Posted: Mon Feb 09, 2015 10:24 am
by anb8
If you would get a chance to look into the motion build for RPi 2 I'd be really grateful. This is an extremely useful app and I am sure many other people would be happy for any speed improvement. This was actually one of my main reasons for getting the RPi 2 - to have motion running at more than [email protected]

Re: motion on RPi 2

Posted: Mon Feb 09, 2015 11:06 am
by dozencrows
Just to check - have you tried using the secondary buffer options from this thread http://www.raspberrypi.org/forums/viewt ... 43&t=75240?

For the time being, if you're happy using the Pi camera's video rather than stills mode and just capture JPEG image sequences (i.e. don't use movie encoding or continually stream), much higher frame rates can be achieved.

Re: motion on RPi 2

Posted: Fri Mar 27, 2015 12:54 am
by brandeau
motion is super useful for me and I bought a pi 2 thinking I would get a speedup automagically. This thread nicely explains why I didn't. I don't know how to build motion as described above and I would like to see it built to take advantage of the pi 2. Is there some way to find someone who can do this for us? I'd be happy to chip in some money for someone who would take the time to build it.

Thoughts anyone?