Go to advanced search

by dozencrows
Sat Aug 09, 2014 4:41 pm
Forum: Camera board
Topic: Motion - MMAL camera
Replies: 472
Views: 379056

Re: Motion - MMAL camera

That sounds great - certainly worth a try!
by dozencrows
Fri Aug 08, 2014 12:23 pm
Forum: Camera board
Topic: Motion - MMAL camera
Replies: 472
Views: 379056

Re: Motion - MMAL camera

I've had a look at the preview setup in raspivid, and it's done all via the MMAL API. There's a "preview" MMAL component that gets created and configured, then connected to the preview output on the camera component. This preview component looks to be responsible for getting the image on screen, wit...
by dozencrows
Sun Jul 20, 2014 12:01 pm
Forum: Camera board
Topic: Motion Stream without Saving JPEGS
Replies: 2
Views: 3821

Re: Motion Stream without Saving JPEGS

In the config file, try setting output_pictures to off. It's worth reading through the config file, as there are comments describing most of the options. Also, check out http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionGuide - though be aware that there is some divergence between mmal version of ...
by dozencrows
Tue Jul 15, 2014 12:49 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110304

Re: MMAL Motion - tuning & optimisations

For the current state of play, please read from this post onwards: http://www.raspberrypi.org/forums/viewt ... 46#p576146
by dozencrows
Sun Jul 13, 2014 9:51 pm
Forum: Camera board
Topic: Motion - MMAL camera
Replies: 472
Views: 379056

Re: Motion - MMAL camera

Many thanks, @biltong. If you're using a version of Raspbian from April this year or later, there's an issue with the Pi firmware that causes motion to hang if you have the secondary buffer jpeg quality set to any other value than zero. There should be a fix coming to the firmware in the very near f...
by dozencrows
Thu Jul 10, 2014 9:35 pm
Forum: Camera board
Topic: mmal port callbacks on JPEG component issue
Replies: 25
Views: 8821

Re: mmal port callbacks on JPEG component issue

Fantastic - thank you very much, 6by9! And thank you @lowflyer for the detective legwork!

I'm going to give it a test, but won't get the chance to do so until Sunday. So if you're happy with lowflyer's results...
by dozencrows
Wed Jul 09, 2014 3:30 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110304

Re: MMAL Motion - tuning & optimisations

The Foundation/Broadcom guys relevant to this are aware - I've got another thread going with their input.

Likely next steps are to make a simpler test case to reproduce this so they can debug it, and also give them the option to look at the motion app itself if that's required.
by dozencrows
Wed Jul 09, 2014 1:42 pm
Forum: Camera board
Topic: mmal port callbacks on JPEG component issue
Replies: 25
Views: 8821

Re: mmal port callbacks on JPEG component issue

Very many thanks, 6by9! I can confirm the encoding used throughout the MMAL component path is MMAL_ENCODING_I420. I don't have info on the variety of resolutions which cause the problem, but it definitely occurred on 1024 x 576. My camera setup code always rounds up input resolution values to multip...
by dozencrows
Tue Jul 08, 2014 6:54 pm
Forum: Camera board
Topic: mmal port callbacks on JPEG component issue
Replies: 25
Views: 8821

Re: mmal port callbacks on JPEG component issue

lowflyer has done some detective work, and isolated the appearance of the issue to a firmware update where the image encoder component was changed - see http://www.raspberrypi.org/forums/viewt ... 06#p575006
by dozencrows
Tue Jul 08, 2014 6:51 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110304

Re: MMAL Motion - tuning & optimisations

That's really great detective work - thank you for following up on it! And it is interesting... :)
by dozencrows
Thu Jul 03, 2014 6:26 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110304

Re: MMAL Motion - tuning & optimisations

... The prebuilt binary comes with a motion-mmalcam.conf file, which works without error, but it seems to be the "plain vanilla" mode of motion, because it does not include the new mmalcam options above... That's weird - just downloaded from the same link, opened the tarball and looked in the confi...
by dozencrows
Thu Jul 03, 2014 3:17 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110304

Re: MMAL Motion - tuning & optimisations

Lots of thanks - that's very helpful! And I agree with your interpretation.

Please would you post a copy of the full log to Dropbox like you did before? There may be some further clues from studying the whole.
by dozencrows
Thu Jul 03, 2014 12:29 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110304

Re: MMAL Motion - tuning & optimisations

Very many thanks for trying that out - it definitely is logging out extra info about the behaviour of the mmal code. Unfortunately it is only logging out the setup and teardown parts - it's not logging anything when the camera is actually running, or when the problem occurs :( However, looking at th...
by dozencrows
Wed Jul 02, 2014 2:46 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110304

Re: MMAL Motion - tuning & optimisations

Yes, but don't do the apt-get update and upgrade first... it isn't required, and also there may be an issue with mmal motion and very recent Raspbian or Pi firmware where the secondary buffer jpeg encoding doesn't work (see previous posts in this thread). That's still under investigation.
by dozencrows
Wed Jul 02, 2014 12:49 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110304

Re: MMAL Motion - tuning & optimisations

If you're using the binary from that article, it predates the secondary buffer work.

Try the binary from here instead: https://www.dropbox.com/s/jw5r1wss32tdi ... opt.tar.gz.
by dozencrows
Wed Jul 02, 2014 10:39 am
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110304

Re: MMAL Motion - tuning & optimisations

Yes, that's definitely the mmal version.

If your unknown config option errors relate to mmal options (e.g. secondary buffer), it is possible that you may be running an older binary that predates the secondary buffer - did you download it from the link earlier in this thread, or build it from source?
by dozencrows
Tue Jul 01, 2014 12:24 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110304

Re: MMAL Motion - tuning & optimisations

If you have the original package installed, and run motion like this: motion then it will run the original package binary - even if you have the MMAL binary in your current folder. To run a MMAL binary that's in your current folder, you need to prefix it with ./ like this: ./motion If you add -h to ...
by dozencrows
Mon Jun 30, 2014 4:01 pm
Forum: Camera board
Topic: mmal port callbacks on JPEG component issue
Replies: 25
Views: 8821

mmal port callbacks on JPEG component issue

Some users of my app (mmal fork of motion) have reported a problem when using the latest Raspbian+firmware (see http://www.raspberrypi.org/forums/viewtopic.php?p=570931#p570931 and http://www.raspberrypi.org/forums/viewtopic.php?p=567587#p567587). I'm a little stumped at the moment, so was wondering...
by dozencrows
Mon Jun 30, 2014 2:30 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110304

Re: MMAL Motion - tuning & optimisations

That's very helpful, lowflyer. I have been able to replicate it with a fresh, fully updated install of Raspbian and building motion-mmal from git on the Pi itself. It looks like the Pi camera code on the GPU stops sending secondary buffers after a few frames, then motion times out 30 seconds later w...
by dozencrows
Sun Jun 22, 2014 4:13 pm
Forum: Camera board
Topic: MMAL Motion - tuning & optimisations
Replies: 161
Views: 110304

Re: MMAL Motion - tuning & optimisations

Many thanks for the config file and all the info, Yves - I'll try this out when I get some time, but it won't be likely until next weekend. What I can say is that you have picture output, movie output and web stream output all set to secondary buffer, and the secondary buffer scale is 5 x (512 by 38...
by dozencrows
Sun Jun 22, 2014 10:44 am
Forum: Camera board
Topic: Motion - MMAL camera
Replies: 472
Views: 379056

Re: Motion - MMAL camera

Nice tutorial! Good to see lots of use cases for the Pi camera in one place. This thread and its companion http://www.raspberrypi.org/forums/viewtopic.php?f=43&t=75240 are about a fork of motion with Pi-specific functionality that can give better framerates than USB or V4L. It takes a little more ef...
by dozencrows
Fri Jun 20, 2014 9:55 am
Forum: Camera board
Topic: Motion software problem for IP web camera
Replies: 1
Views: 1236

Re: Motion software problem for IP web camera

Please would you post the contents of the motion log file for when you see the flashing camera board LED?
by dozencrows
Thu Jun 12, 2014 1:45 pm
Forum: Camera board
Topic: Camera PI : Motion
Replies: 1
Views: 983

Re: Camera PI : Motion

I suspect something has gone wrong with the download or storage of the tarball. Try deleting and getting it again and see if that helps (I've just tried it myself on a different machine, and it downloads and unpacks fine for me). Alternatively, try this version: https://www.dropbox.com/s/jw5r1wss32t...
by dozencrows
Sun Jun 08, 2014 8:51 pm
Forum: Camera board
Topic: Motion - MMAL camera
Replies: 472
Views: 379056

Re: Motion - MMAL camera

Thanks @dozencrows. Alas, I tried a number of different options setting the resolution in your motion.conf file but I can't get preview or video captures that resemble the partial field of view. If I run raspivid manually from the command line with -w and -h then the resolution is used.. MMAL motio...
by dozencrows
Sun Jun 08, 2014 10:46 am
Forum: Camera board
Topic: Motion - MMAL camera
Replies: 472
Views: 379056

Re: Motion - MMAL camera

You could try experimenting with different resolutions to see if that affects the cropping - the latest code should allow a greater range of working resolutions than listed in the out-of-date readme. As long as width and height are both a multiple of 16. You could also create a mask image to prevent...

Go to advanced search