How record just with one file, instead lots by 10 min?

Support and queries relating to all previous versions of ZoneMinder
Locked
DRAGSTER_TUNER
Posts: 39
Joined: Fri Apr 17, 2009 1:42 am

How record just with one file, instead lots by 10 min?

Post by DRAGSTER_TUNER »

In record function, ZM creates on directory even 10 minutes...

How make it creates just one constant?
________
Sh125
Last edited by DRAGSTER_TUNER on Sat Feb 12, 2011 2:55 pm, edited 1 time in total.
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

Post by coke »

Were it possible, wouldn't it be kinda painful to review? I'd say deeply painful.
DRAGSTER_TUNER
Posts: 39
Joined: Fri Apr 17, 2009 1:42 am

Post by DRAGSTER_TUNER »

Not at all, because ill convert it to video file with ffmpeg...

painfull is do what im doing:

make it with each folder!

:shock:

have some way to make just one folder with all results?
________
Teen Videos
Last edited by DRAGSTER_TUNER on Sat Feb 12, 2011 2:55 pm, edited 1 time in total.
mgob
Posts: 8
Joined: Tue Mar 18, 2008 7:47 pm

Post by mgob »

I do the same thing, I just increased the length per section. This is adjustable via the `Misc` tab on your monitor settings and is configurable per monitor. :)
DRAGSTER_TUNER
Posts: 39
Joined: Fri Apr 17, 2009 1:42 am

Post by DRAGSTER_TUNER »

Thanks, this tip solve my problem!

How the ffmpeg does not accepts the sign "-" in the name of the jpeg file (zoneminder creates a name called xxx-capture.jpeg, where xxx is a number) to make a movie, i take a script from internet and change a little, to rename the file and made the movie ready after:

#!/bin/bash

criterio=$1
antigo=$2
novo=$3

if [ $# -lt 3 ] ; then
echo "modo de usar: renomeia [criterio] [texto_a_ser_substituido] [texto_substituto]"
exit 0
fi

for arq in *$criterio*
do
mv "$arq" "$(echo $arq | sed "s/$antigo/$novo/")"
done

ffmpeg -f image2 -i %03d.jpg video.mpg

Create a script with these lines, give to the script file a name and put it in /usr/bin and /usr/local/bin and give to it permisssion to execute.

Then, just execute the script in the folder of the jpegs!

:wink:
________
Mary jane
Locked