sequential numbering works/doesn't work - will pay for help
Posted: 2009-10-13T22:28:19-07:00
Following is the code which is in a bat file on Windows
imconvert PA1_*.jpg +repage -scene 001 PA1_%%03d.jpg
imconvert PA1_*.jpg null: D:\AxisFTPLocal\Preset1\MASK_1.png -layers Composite D:\AxisFTPLocal\Preset1\Mask\PA1_.jpg
cd D:\AxisFTPLocal\Preset1\Mask
FORFILES -pD:\AxisFTPLocal\Preset1\Mask -m*.avi -c"CMD /C DEL @FILE"
imconvert PA1_*.jpg +repage -scene 001 PA1_%%03d.jpg
1) there are 40 jpgs
2) the first line works fine
3) the second line is a mask that works fine and creates 40 new jpgs
4) third line change directory
5) fourth line purges old AVI
6) fifth line is the exact same command as the first line only being run in a different directory. When this line runs it creates exactly double the amount of original files, 80. Upon inspection it runs through the source jpgs twice from start to finish and cranks out 80. This is problematic since it doubles the size of the AVI and is the same clip twice.
Any ideas?
Thanks,
Greg
imconvert PA1_*.jpg +repage -scene 001 PA1_%%03d.jpg
imconvert PA1_*.jpg null: D:\AxisFTPLocal\Preset1\MASK_1.png -layers Composite D:\AxisFTPLocal\Preset1\Mask\PA1_.jpg
cd D:\AxisFTPLocal\Preset1\Mask
FORFILES -pD:\AxisFTPLocal\Preset1\Mask -m*.avi -c"CMD /C DEL @FILE"
imconvert PA1_*.jpg +repage -scene 001 PA1_%%03d.jpg
1) there are 40 jpgs
2) the first line works fine
3) the second line is a mask that works fine and creates 40 new jpgs
4) third line change directory
5) fourth line purges old AVI
6) fifth line is the exact same command as the first line only being run in a different directory. When this line runs it creates exactly double the amount of original files, 80. Upon inspection it runs through the source jpgs twice from start to finish and cranks out 80. This is problematic since it doubles the size of the AVI and is the same clip twice.
Any ideas?
Thanks,
Greg