You end up with jpegs 1-2500 then the same again renamed 2501-5000.
This happens on win 7 and win 8 PCs.
I'm using the command in a batch script
Code: Select all
BRC32.EXE /PATTERN:"*.jpg *.JPG" /REMOVENAME /AUTONUMBER:1:1:S:FRAME:10:4 /EXECUTE
Code: Select all
BRC32.EXE /PATTERN:"*.jpg *.JPG" /REMOVENAME /AUTONUMBER:1:1:S:FRAME:10:4 /EXECUTE
Code: Select all
::image get script
[b]set name=0001[/b]
:start
wget "http://192.168.1.97:88//cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=******&pwd=*******&" -O snapshot.jpg
ffmpeg -i snapshot.JPG -vf "drawtext="fontsize=16:fontcolor=white:shadowcolor=black:box=1:boxcolor=black@0.6:fontfile=LTYPEB.ttf:textfile=z\\:overlay.txt:x=(w-text_w)/2:y=700"" -q:v 3[b] frame%name%.jpg[/b] -y
timeout /nobreak /t 14
[b]set /a name=%name% + 1[/b]
goto start
Code: Select all
SET var=1
SET num=0000%var%
SET num=%num:~-5%
ECHO %num%
Been so busy, I haven't even tried it out.mcrossley wrote:It is pretty easy to zero pad the number, for example a 5 digit number...
Code: Select all
SET var=1 SET num=0000%var% SET num=%num:~-5% ECHO %num%