mysql - Saving security camera stream -


i've axis m1011 camera , want continuosly save flow of camera , divide in multiple file? register database mysql (i think information of file). how possible it? saw ffmpeg think lose frame between various connection.

one simple script this: save video every minute, fps = 1. video saved in directory in year/month/day/hour/... path created is, don't know if useful store path in database.

b=.avi; while true;     path=`date +%y/%m/%d/%k/`;     file=`date +%k:%m-%d_%m_%y`;     mkdir -p $path;     e=$file$b;     echo $e;     ffmpeg -r 1 -t "00:01:00" -f mjpeg -i  http://address/mjpg/video.mjpg?         streamprofile=lowprofile $path$e &     sleep 60;     i=`expr $i + 1`; done 

Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -