mmal-motion low FPS?
Posted: Mon Dec 09, 2013 6:33 pm
Hello,
As I finally got my RPi running with wifi using wicd, I was able to install my pi as 'security cam'.
I installed mmal-motion and setted resolution to 640 x 480. I configured the FPS to 10.
Now it is recording 1 fps max and using with 98% (?!) Cpu while there is motion, while motion uses only 19% while it is not recording.
Ofcourse CPU raises when it has to record movement and new pixels, but I think this is ridiculous as the webcam could record at 30fps (found this data somewhere online)?
What can I do to increase the FPS while maintaining the resolution?
I tried increasing GPU RAM in raspi-config but that didn't seem to help..
Also:
I setted pre-buffer to 0, but it seems to change it back automatically?:
last thing, I disabled the http stream, but it is still going to run!
I'm sure I edited the correct config files, as these also changed my resolution.
Yours.
HeroS
ps. I'm on raspberry pi model B with raspbian!
As I finally got my RPi running with wifi using wicd, I was able to install my pi as 'security cam'.
I installed mmal-motion and setted resolution to 640 x 480. I configured the FPS to 10.
Now it is recording 1 fps max and using with 98% (?!) Cpu while there is motion, while motion uses only 19% while it is not recording.
Ofcourse CPU raises when it has to record movement and new pixels, but I think this is ridiculous as the webcam could record at 30fps (found this data somewhere online)?
What can I do to increase the FPS while maintaining the resolution?
I tried increasing GPU RAM in raspi-config but that didn't seem to help..
Also:
I setted pre-buffer to 0, but it seems to change it back automatically?:
Code: Select all
[0] [NTC] [STR] [Dec 09 19:15:39] httpd_run: motion-httpd testing : IPV4 addr: 127.0.0.1 port: 8080
[0] [NTC] [STR] [Dec 09 19:15:39] httpd_run: motion-httpd Bound : IPV4 addr: 127.0.0.1 port: 8080
[0] [NTC] [STR] [Dec 09 19:15:39] httpd_run: motion-httpd/mmaltest running, accepting connections
[0] [NTC] [STR] [Dec 09 19:15:39] httpd_run: motion-httpd: waiting for data on 127.0.0.1 port TCP 8080
[1] [NTC] [ALL] [Dec 09 19:15:39] motion_init: Thread 1 started , motion detection Enabled
[1] [ALR] [VID] [Dec 09 19:15:39] mmalcam_start: MMAL Camera thread starting... for camera (vc.ril.camera) of 640 x 480 at 10 fps
[1] [ALR] [VID] [Dec 09 19:15:39] mmalcam_start: MMAL Camera using video capture
[1] [NTC] [VID] [Dec 09 19:15:39] MMAL camera component created
[1] [NTC] [ALL] [Dec 09 19:15:39] image_ring_resize: Resizing pre_capture buffer to 1 items
[1] [NTC] [ALL] [Dec 09 19:15:39] image_ring_resize: Resizing pre_capture buffer to 2 items
last thing, I disabled the http stream, but it is still going to run!
I'm sure I edited the correct config files, as these also changed my resolution.
Yours.
HeroS
ps. I'm on raspberry pi model B with raspbian!