[ubuntu-uk] Converting many .jpgs to mpeg4 without using

Martyn martyn.pattison at gmail.com
Mon Jun 4 13:56:33 BST 2007


>
> ------------------------------
>
> Message: 11
> Date: Mon, 04 Jun 2007 13:07:44 +0100
> From: Dominic Forrest <dominic.forrest at ntlworld.com>
> Subject: [ubuntu-uk] Converting many .jpgs to mpeg4 without using
>        wildcards
> To: British Ubuntu Talk <ubuntu-uk at lists.ubuntu.com>
> Message-ID: <46640090.2050307 at ntlworld.com>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-uk/attachments/20070604/8daf6600/attachment.htm 


More information about the ubuntu-uk mailing list