I have a shell snippet that sequentially renumbers the capture files:
Code: Select all
shouldbenum=1
find . -name "*.jpg" | sed -e 's=./\([0-9]*\).*=\1=' | sort -n | \
while read jpgnum ; do
shouldbenumzeros=`printf %03d $shouldbenum`
if [[ "$shouldbenumzeros" != "$jpgnum" ]]
then
mv ${jpgnum}-capture.jpg ${shouldbenumzeros}-capture.jpg
fi
let shouldbenum++
done
Or should I look at changing ffmpeg to ignore spaces?
What would be the best course of action?