Motion's timelapse feature on Arch Linux ARM

Ask questions about Arch Linux ARM. Please search before making a new topic.

Motion's timelapse feature on Arch Linux ARM

Postby raspicam » Mon Nov 19, 2012 8:49 pm

I've been trying to get the Motion's timelapse feature to work on a Raspberry Pi. Basically everything else is working except the timelapse, which is something I'd really want to use. Motion saves snapshots, motion videos, and everything else, but no timelapse. Here's an error message I receive.

1] Error opening file /serve/http/cam1/timelapse/2012/11/19-timelapse.mpg: Invalid argument
[1] ffopen_open error creating (timelapse) file [/serve/http/cam1/timelapse/2012/11/19-timelapse.mpg]: Invalid argument

To reproduce, do the following:

1) Install motion with necessary dependencies (ffmpeg-compat at least)
2) Setup your camera and test it, Motion will display the image at localhost:8081 with default settings.
3) Switch on the timelapse feature from the conf
4) Make sure that Motion has write access to a desired location on the disk
5) Observe the errors

I haven't been able to use the timelapse feature even though everything else works swimmingly and the camera performs fine. At the moment my main suspect is an incompatible ffmpeg version. This is because unlike other types of tasks, the timelapse requires encoding videos in mpeg1 format. This is because mpeg1 files can be "appended" as Motion grabs frames. Any other guesses?
Last edited by raspicam on Tue Nov 20, 2012 5:53 pm, edited 1 time in total.
raspicam
 
Posts: 2
Joined: Mon Nov 19, 2012 8:41 pm

Re: Motion's timelapse feature on Arch Linux ARM

Postby pepedog » Mon Nov 19, 2012 10:24 pm

I think it should be /srv/http/cam1/ not /serve/http/cam1/
And you should see what permissions that directory has, ie can the motion daemon write to it
Setting permission to 777 is dangerous (everyone can write to it)
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Motion's timelapse feature on Arch Linux ARM

Postby raspicam » Tue Nov 20, 2012 5:52 pm

$this->bbcode_second_pass_quote('pepedog', 'I') think it should be /srv/http/cam1/ not /serve/http/cam1/
And you should see what permissions that directory has, ie can the motion daemon write to it
Setting permission to 777 is dangerous (everyone can write to it)


These have all been taken care of. All other modes work fine in Motion: snapshots are written on the disk, motion is captured as images and videos and so on. However, just the timelapse feature doesn't work.

At this point I'll probably settle on writing the similar functionality myself with Python, but it feels stupid as the feature is there, but it just doesn't work...
raspicam
 
Posts: 2
Joined: Mon Nov 19, 2012 8:41 pm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 3 guests