On Mon, 2007-06-04 at 13:56 +0100, Martyn wrote: > If you've got a list of jpegs in files.lis then something like > > for file in `cat files.lis `; do echo ffmpeg -options $file ; done > > should do the trick. If the ffmpeg encoding is complex then it might > be cleaner to code a simple script that takes the filename as a > parameter and then call that script with > > for file in `cat files.lis `; do ./myscript.sh $file ; done
OK. Maybe this was actually the first idea that I thought of, but I thought it would have two flaws: 1) If ffmpeg needs all the files in one command (and I would assume, to create one video from a number of frame images, it would - although I'm not certain, and you're free to correct me), then a for loop wouldn't be what you want. 2) Following from the above: Bash generally only accepts a string of 32768 characters' length until it stops accepting arguments. If the list is "thousands of files" long, then this may exceed the acceptable length. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.kubuntu.org/UKTeam/