On Wed, 2007-10-10 at 17:59 -0700, Kurt Granroth wrote: > Craig White wrote: > > My script breaks if the file names have spaces... > > > > #!/bin/sh > > # > > BASE="/home/storage/users/craig/Desktop/dw" > > IN="in" > > OUT="out" > > for f in *.flv; do ffmpeg -i $f `basename $f.mp4 .flv`; done > > mv *flv $BASE/$IN > > mv *mp4 $BASE/$OUT > > > > How can I fix this? > > > > Double quotes are your friend! > > Hmm... I'd do it this way: > > for f in *.flv; > do > ffmpeg -i "$f" "${f%.flv}.mp4"; > done ---- clearly this is working...thanks If you haven't figured it out...this transforms youtube .flv (flash video) into mpeg4 files which are happy on my iPod. Thanks Craig --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss