From: Bruce D. <bru...@gm...> - 2005-11-05 02:55:05
|
Hi Gordon, You'll need to add the parameter %f to the end of your on_xxx propertiesin motion.conf; The parameter is no longer automatically passed by default. e.g. on_movie_end /home/gordon/motion/myscript %f It's documented in snap4: Added two new conversion specifiers: %f which is filename (full path) and %= n which is filetype (sqltype) valid in on_picture_save, on_movie_start, on_movie_end and sql_query. This also means that filename is no longer appended at the end of the 3 on_xxxx commands. (Kenneth Lavrsen) -Bruce. On 11/4/05, Gordon <gc...@tr...> wrote: > > I had the convert to 3GP script working fine, but something recently > broke it. I only set it up for testing so I wasn't paying close > attention to when it stopped working. > > The only major thing I can think of was an upgrade to Motion itself. I > upgraded to 3.2.4_snap4 from the stable 3.2.3. I didn't change my conf > files when I upgraded (but I do adjust things now and then). I did not > change or upgrade ffmpeg. It's a Debian Sarge system with all security > updates/upgrades, and I did update it recently. No errors are logged to > syslog. > > To troubleshoot I simplified my setup by monitoring a single netcam > making only MPEG4 movies. I use on_movie_end to run the convert_to_3gp > script. > > Running it in interactive mode I see this error when it tries to run the > script: > > line 27, in ? > insert_avi (argv[1]) > indexError: list index out of range > > Regular movies are made just fine in a different directory. Does anyone > know what causes this error? > > - thanks in advance > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Motion-user mailing list > Mot...@li... > https://lists.sourceforge.net/lists/listinfo/motion-user > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > |