Motion - Support Question 2008x 12x 09x 202803

Motion time based traffic

Question

I am using Motion for a few years now, but recently moved my server to a hosting area. This resulted in bandwith problems, so I thought making time-based recording would be a solution. In the FAQ I found the Crontab solution and after edditing the crontab, that should work (I can see log entry's with the commands). At this point I still have bandwith issues. It seems pausing the detection doesn't pause the stream. To be sure I didn't do anything wrong, I manually executed the commands to pause and start, these also indicate that it does what it should do.

So, at this point I am wondering if the pause command does: a. pause motion detection b. pause the stream

If it pauses the motion detection, is there a way to pause the stream?

I have a Linksys wvc54g on mjpeg

user:/var/log # /usr/bin/lwp-request http://localhost:8080/0/detection/pause
<html><head></head>
<body>
Thread 0 Detection paused
<a href=/0/detection><- back</a>
</body>
</html>

Environment

Motion version: 3.2.8
ffmpeg version: none
Libraries: none
Server OS: Opensuse 10.3

-- AuxAux - 09 Dec 2008

Answer

What about set webcam_port to 0 ?

-- AngelCarpintero - 10 Dec 2008

Reply

It is set to 0. are you sure this setting has something to do with it. I thought this was some output port, and the 8080 mentioned in my post is some kind of receive port.

-- AuxAux - 10 Dec 2008

Answer

Output :

webcam_port : stream port ... pause stream out , no stream will be send .

Input : pause detection just stops motion algorithm to process images , you delay get images from OUTSIDE ( i guess you are using a netcam from outside your host , you didn't tell so i thought was a USB or cctv attached to that machine ) :

http://www.lavrsen.dk/twiki/bin/view/Motion/ConfigOptionMinimumFrameTime

Set to 7200 seconds ?! 36000 seconds ? ... i think is what you want.

-- AngelCarpintero - 11 Dec 2008

Reply

Well.. Interesting option, I think I didn't formulate my question well. So I will try to clear some things up.

The camera (netcam indeed) in pointing to the outside. Since it's dark between 18:00 and 7:00 it doesn't make sense to find motion, it takes 10 kb/sec during this time-frame. (does take more during the day, dunno why)

On my server (on a hosting site), I have 100 gb per month.The camera takes exactly 3 gb a day. That would be just enough to get me through the month. Well that is if I don't do anything else with the server....

So basicaly I just don't want motion to run between 18:00 and 7:00. The option used with the crontab looked like a solution for this, but now I think it still keeps the line open, but does not do motion detected on the images.

-- AuxAux - 11 Dec 2008


Now your questions is neat as glass , so you have an obvious option, use crontab to stop motion at 18:00 and start at 7:00.

-- AngelCarpintero - 12 Dec 2008

End Post

Correct, I added these lines to the crontab to achieve this

0 7 * * * /etc/init.d/motion start > /dev/null
0 18 * * * /etc/init.d/motion stop > /dev/null

Might be added to the FAQ to clear up the difference between turn motion detection off (as allready mentioned in the FAQ) and motion off (to reduce bandwith usage)

Thanks for your help
Topic revision: r7 - 14 Dec 2008, AuxAux
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.