On 6/4/07, Dominic Forrest <[EMAIL PROTECTED]> wrote:
>
> 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
>
> --
> ubuntu-uk@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
> https://wiki.kubuntu.org/UKTeam/
>


Hi Dom.

You could use $(cat file). A quick example should illustrate this for you:

[EMAIL PROTECTED]:~$ echo "one" > file1
[EMAIL PROTECTED]:~$ echo "two" > file2
[EMAIL PROTECTED]:~$ echo -e "file1\nfile2" > files
[EMAIL PROTECTED]:~$ cat $(cat files)
one
two
[EMAIL PROTECTED]:~$


Dump your mysql output to a file, and then use $(cat file) in place of
where your wildcard/files would be.

Any good? :-)

Kris

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.kubuntu.org/UKTeam/

Reply via email to