Go to advanced search

by dozencrows
Thu May 29, 2014 8:30 am
Forum: Camera board
Topic: Motion - MMAL camera
Replies: 472
Views: 379696

Re: Motion - MMAL camera

@ianj: GPU strain isn't the issue here - the bottleneck is the work being done on the CPU. motion-mmal only captures either video or stills, not both at the same time. Browser based streaming can be disabled if you set the port for the streaming to zero in the config file, I think. It also doesn't t...
by dozencrows
Sun May 25, 2014 10:19 am
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110513

Re: MMAL Motion - tuning & optimisations

Thank you for the log file and version info, @andies. On the whole, the logfile seems to show motion running correctly - however there is some weird corruption at 21:40:49, then the log shows a new instance of motion starting up but at an earlier time! 21:17:26. Not sure what to make of that - did i...
by dozencrows
Sat May 24, 2014 3:58 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110513

Re: MMAL Motion - tuning & optimisations

In my dropbox: https://dl.dropboxusercontent.com/u/4953669/EinfahrtMaske.pgm Many thanks! I've just tried your config file and mask file directly on my camera Pi, with the same GPU memory (128Mb) - and it is working fine for me. All I have done is to recreate your directory structure for the mask f...
by dozencrows
Tue May 20, 2014 8:24 am
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110513

Re: MMAL Motion - tuning & optimisations

Many thanks! I see you have a mask image specified in the settings; please would you supply a copy of that also?
by dozencrows
Mon May 19, 2014 8:28 am
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110513

Re: MMAL Motion - tuning & optimisations

@tgwaste - with regard to the "unknown config option" errors - that's probably because you're not running the right motion executable for the config file. Do you also have the original motion package installed from the Raspbian repositories? Regarding it not working completely - it looks like you'v...
by dozencrows
Thu May 15, 2014 12:22 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110513

Re: MMAL Motion - tuning & optimisations

@andies: The high resolution image is encoded. It reduces the CPU load as the encoding happens on the GPU instead, enabling better performance. This option is intended to be used when you want higher frame rate capture and don't need to have any text or location marker overlays on the captured image...
by dozencrows
Tue May 13, 2014 2:40 pm
Forum: Camera board
Topic: Unwanted Delay using Motion
Replies: 10
Views: 3766

Re: Unwanted Delay using Motion

That tarball from Dropbox is actually the binary from my customised Pi version of motion, together with a suitable config script - the Reddit post (not from me) instructs you to copy these files over the top of the files installed from the standard motion package. I would recommend trying the custom...
by dozencrows
Mon May 12, 2014 1:15 pm
Forum: Camera board
Topic: Unwanted Delay using Motion
Replies: 10
Views: 3766

Re: Unwanted Delay using Motion

You might want to try my alternative motion build described in this post (and linked to via another thread from that post).

http://www.raspberrypi.org/forums/viewt ... 13#p549413
by dozencrows
Mon May 12, 2014 1:12 pm
Forum: Camera board
Topic: Motion - MMAL camera
Replies: 472
Views: 379696

Re: Motion - MMAL camera

You might want to try my Pi-specific optimisations described in this thread - http://www.raspberrypi.org/forums/viewtopic.php?p=538398#p538398. motion originally does all its image processing and encoding on the CPU side, which is very expensive on the Pi even with overclocking - hence why in realit...
by dozencrows
Sun May 11, 2014 12:06 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110513

Re: MMAL Motion - tuning & optimisations

Your math looks correct to me - the bold entries coming closest to the full resolution of the camera. Actual experience may vary depending on your Pi's firmware version and on the frame rate set in motion - see http://www.raspberrypi.org/new-camera-mode-released. For most realistic use cases with mo...
by dozencrows
Sun May 11, 2014 9:00 am
Forum: Camera board
Topic: Motion 3.2.12 NOT DETECTED
Replies: 10
Views: 6218

Re: Motion 3.2.12 NOT DETECTED

The stream is in MJPEG format, which not all browsers support. E.g. Chrome doesn't, but Firefox does. See http://www.lavrsen.dk/foswiki/bin/view/ ... bcamServer
by dozencrows
Sat May 10, 2014 6:10 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110513

Re: MMAL Motion - tuning & optimisations

Actually, fixed it already anyway - if an image dimension isn't a multiple of 16 when using the mmal camera settings, it will be rounded up to the nearest 16.

So if you set 320 x 180, you'll actually get 320 x 192.

New source now in Github, and updated binary in Dropbox.
by dozencrows
Sat May 10, 2014 5:48 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110513

Re: MMAL Motion - tuning & optimisations

Yes, not all width/height combos work - this is related to the Pi camera ... There are likely others that work. If width and height are both multiples of 16, then this will work. The gray output arises because motion doesn't assume this, and calculates the image data size directly from width and he...
by dozencrows
Sat May 10, 2014 5:10 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110513

Re: MMAL Motion - tuning & optimisations

If you have an Android device, you may find the MotionWidget widget useful - it's on the Google Play store here: https://play.google.com/store/apps/details?id=uk.me.malcolmlandon.motion I've made a fork in Github to fix a couple of minor issues: https://github.com/dozencrows/MotionWidget/tree/dozenc...
by dozencrows
Sat May 10, 2014 5:04 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110513

Re: MMAL Motion - tuning & optimisations

I've posed new code to Github and a new binary to Dropbox (same links as above). This new version will use the secondary buffer for snapshots if it is enabled with option output_secondary_pictures.
by dozencrows
Sat May 10, 2014 5:02 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110513

Re: MMAL Motion - tuning & optimisations

Yes, not all width/height combos work - this is related to the Pi camera. In the README with the code, these are listed as working resolutions:

352 x 288
512 x 288
640 x 480
768 x 432
768 x 576
1024 x 576

There are likely others that work.
by dozencrows
Sat May 10, 2014 12:29 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110513

Re: MMAL Motion - tuning & optimisations

You have got output_pictures set to "on", but have no entry for output_secondary_pictures. This defaults to "off", which is very likely why you're not getting secondary buffer output.
by dozencrows
Sat May 10, 2014 9:30 am
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110513

Re: MMAL Motion - tuning & optimisations

@andies - please would you reply with the motion config file you're using on the problematic pi? Then I can give it a go and see what I get.

Please add it as an attachment rather than pasting it in, to keep this thread readable.
by dozencrows
Wed May 07, 2014 12:34 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110513

Re: MMAL Motion - tuning & optimisations

@bietiekay - I strongly suspect this is an issue with the original motion code, rather than anything I've modified for Pi support. If you're saving to one single .AVI file, then it may be that the AVI code in motion is limiting the file size (anecdotally the format has either a 2Gb or 4Gb size limit...
by dozencrows
Mon May 05, 2014 11:22 am
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110513

Re: MMAL Motion - tuning & optimisations

@billw - I've put up new source and a new build that saves the secondary buffer if it is enabled when output_pictures is "first", "best" or "center". Available from the links earlier in this thread.
by dozencrows
Mon May 05, 2014 10:04 am
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110513

Re: MMAL Motion - tuning & optimisations

@andies and @kyuzumaki - good news for you both! I think you can solve your problems without a new build... For upside down images, the option for mmalcam_control_params should be "--vflip" or "-vf". For night images, try this for mmalcam_control_params : "-ex night -mm average -ev 8 -ifx denoise" a...
by dozencrows
Sat May 03, 2014 2:50 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110513

Re: MMAL Motion - tuning & optimisations

@Sid - that's something I want to try, when it's easily available and I have time. The challenge will be to associate visual data with those motion vectors, either by parsing the H264 stream to extract clips of video with motion in them, or keep some of the original frames around for a short while a...
by dozencrows
Thu May 01, 2014 7:46 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110513

Re: MMAL Motion - tuning & optimisations

Many thanks for all the feedback, folks. @andies - I'll look into flipping this weekend. Unfortunately text printing when using the secondary buffer in JPEG format isn't supported - the image is already JPEG encoded, so there's no way to draw text on it without decompressing it first, and then encod...
by dozencrows
Thu Apr 24, 2014 12:08 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110513

Re: MMAL Motion - tuning & optimisations

Have you tried adding "-vflip" to the parameter mmalcam_control_params in the config file? That should set the Pi camera component to turn the image upside down itself. I didn't add the rotation functionality to the secondary buffer support - it won't work in all cases (e.g. when in JPEG format), so...
by dozencrows
Mon Apr 21, 2014 5:16 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110513

Re: MMAL Motion - tuning & optimisations

And here's a binary with sample config file: https://www.dropbox.com/s/jw5r1wss32tdi ... opt.tar.gz

Go to advanced search