From: Joerg W. <mo...@al...> - 2014-01-04 11:21:24
|
Hello tosiara, thank you for providing this detailed information about the problem you had observed. I'll try to reproduce again with the same settings. Mine are indeed different in some points. Let me quickly explain, why this detection rate limit was implemented at all: When motion started, most people were using it at rates of 2 or 3 fps as a security cam application only. When time passed by, more powerful cams with higher resolution and more powerful PCs became available and people were increasing resolution and framerate up to realtime 25 or 30 fps to enjoy good quality videos. On one hand, this was a cool thing, but on the other hand it was a problem for motion itself. Increasing the framerate decreased the detection accuracy of slow moving objects and the CPU load went up to 100%. So I decided to refine the detection algo a bit and limit it to 3 fps internally. That way, detection is working very reliable, no matter what actual framerate the user has selected. There are still some unanswered questions about how to treat events per picture (like on_picture_save). Should they be fired at a rate of 3 fps only or with every captured frame? Also the smartmask feature still lacks some tuning for higher framerates. Unfortunately there was very little feedback at the time when I implemented this rate limit, but for my setup, it was working quite well so far. There may be a serious bug though. I'll look into it now and come back with my findings soon. The suggested patch is definitely not the right answer to the problem, even though it might work for you. Brgds Joerg -- tosiara wrote: Joerg, How did you check that you have 15fps? Is it only mediainfo output or have you tried watching video files frame-by-frame? If I set motion to use 15fps - mediainfo reports "15fps", but when I play AVI files - they are too fast. When I go through the frames I clearly see only 3 of them per second and there are only "00", "05" and "10" frame numbers captured (motion outputs these numbers near date time in the right bottom corner) See my sample video: http://yadi.sk/d/uYxOuZXjFPmQu - 142KB (you can download it or watch online) And changes I made to default config were: http://pastebin.com/9W0SQUy6 On Fri, Jan 3, 2014 at 3:09 PM, Joerg WEBER <mo...@al...>wrote: > Hello tosira, > > > I absolutely cannot reproduce this 3-fps problem with the lastest svn > code. If I set 15fps, my videos are 15 fps. The internal detection however > is reduced to 3fps. > > > > Brgds Joerg. > > > > -- > > > > tosiara wrote: Looks like this bug was introduced in this commit (or > related to it): > > https://github.com/sackmotion/motion/commit/a8f0a5bdb7b5d6cd3b8285b4c34f1 > b8a873682a4 > > I tried to set "*cnt->process_thisframe = 1;*" at line 1192 of motion.c > and now I get full 30 fps as specified in the config. Will try to see if > there is an easy fix... > > > On Mon, Dec 30, 2013 at 3:08 PM, John <jo...@to...> wrote: > > >> On 12/30/13 06:30, tosiara wrote: >> >> >>> Hi, >>> >>> >>> >>> I have built trunk version from git - >>> https://github.com/sackmotion/motion and no matter what settings and >>> what computer I use - I always get 3fps avi files >>> >>> Can someone confirm - is it only for me or you also experience the >>> same? >> >> My camera is currently not functioning but I recall having this same >> problem. Others have posted as well. >> >> >> >> ----------------------------------------------------------------------- >> -- >> ----- >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into >> your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of >> AppDynamics >> Pro! >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clkt > r >> k _______________________________________________ Motion-user mailing >> list Mot...@li... >> https://lists.sourceforge.net/lists/listinfo/motion-user >> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome >> >> >> > > ------------------------------------------------------------------------- > ----- > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into > your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > AppDynamics > Pro! > > > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clkt > rk_______________________________________________ Motion-user mailing list > Mot...@li... > https://lists.sourceforge.net/lists/listinfo/motion-user > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > > > > > > > ------------------------------------------------------------------------- > ----- > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into > your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of > AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktr > k _______________________________________________ > Motion-user mailing list > Mot...@li... > https://lists.sourceforge.net/lists/listinfo/motion-user > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > > ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk_______________________________________________ Motion-user mailing list Mot...@li... https://lists.sourceforge.net/lists/listinfo/motion-user http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome |