Convert find>ls>sort output
Posted: 2010-04-23T09:02:27-07:00
Hi.
I am trying to convert a subset of images in a directory into a movie. I have had success using the following command to process all images in a directory.
Using a similar method, I tried to use a combination of find/ls/sort to achieve the desired result. When the next command is issued directly, it outputs the desired result.
Putting the "find" command in place of the "ls" command previously used, I receive the following:
Does anyone know why this will not work and how to fix it?
Thanks for your help,
Finn
I am trying to convert a subset of images in a directory into a movie. I have had success using the following command to process all images in a directory.
Code: Select all
$CONVERT -quality 90 -delay 10 `$LS -rt $DEST_PATH/*.jpg` $DEST_PATH/sunrise.mpg 2>&1| $TEE -a $LOG
Code: Select all
find $DEST_PATH/images/ -newer ${DEST_PATH}/newerstart ! -newer ${DEST_PATH}/newerend -exec ls {} \; | sort
[root@smt-web entire_day]# ./make_ravines_sunrise.sh
/home/data/webcams/ravines/entire_day/images/0690.jpg
/home/data/webcams/ravines/entire_day/images/0691.jpg
/home/data/webcams/ravines/entire_day/images/0692.jpg
/home/data/webcams/ravines/entire_day/images/0693.jpg
/home/data/webcams/ravines/entire_day/images/0694.jpg
...
Code: Select all
convert: unable to open image `none': No such file or directory.
convert: missing an image filename `/home/data/webcams/ravines/entire_day/sunrise.mpg'.
Thanks for your help,
Finn