------------------------------

Message: 11
Date: Mon, 04 Jun 2007 13:07:44 +0100
From: Dominic Forrest <[EMAIL PROTECTED]>
Subject: [ubuntu-uk] Converting many .jpgs to mpeg4 without using
       wildcards
To: British Ubuntu Talk <ubuntu-uk@lists.ubuntu.com>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed


Hi,
   I need to regularly convert a few hundred/thousand .jpgs to a mpeg4
(or other) video.  These files are selected as the result of a mysql
query from perl and sit within a number of directories along with many
more images which will not form part of the video - hence I cannot use
wildcards with ffmpeg (or any other tool).  I can easily list all the
filenames in order to a file but am unable to find a way to use this
file (which currently has the full path to one jpg on each line) as
input to ffmpeg.

Currently the only way I have found to do this is to copy all the files
(or create links) to a new directory which then allows me to use
wildcards - however this seems horribly inefficient!

Any thoughts or solutions welcomed!


Dom


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
-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.kubuntu.org/UKTeam/

Reply via email to