Motion - Feature Request 2008x 09x 03x 091538

Feature Request: Create symlink to last motion.avi movie

Description

- We have a very usefull lastsnap.jpg simlink, but what about lastmovie.avi simlink ???... - In a web page we can post a link with last picture (static jpg snapshot taken at every 30 min. for example) and a link with last movie (dynamic avi motion generated movie with ffmpeg), not with live stream like here : http://www.lavrsen.dk/webcam/cam1/movecam.php

-- FlorinAnton - 03 Sep 2008

Follow up

You can do this without adding any change in motion code , in motion.conf :

on_movie_end /tmp/create_video_link.sh %f

create_video_link.sh
 
#!/bin/bash
VIDEO=$1
echo "Last video $VIDEO"
rm -rf /tmp/last_video.avi
ln -s $VIDEO /tmp/last_video.avi

chmod +x /tmp/create_video_link.sh

-- AngelCarpintero - 07 Sep 2008

Comments

Topic revision: r2 - 07 Sep 2008, AngelCarpintero
Copyright © 1999-2017 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.