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

2007-06-04 Thread Dominic Forrest


OK - apologies if I was somewhat vague in my requirements!

1)   There is a directory structure with very many (several thousand) 
directories containing a large amount of .jpg files.

2)   I have a perl script that runs periodically and using criteria 
stored in a mysql database identifies a subset of these files (based on 
a number of criteria stored within the db).

3) The files identified in 2) will be spread across a number of 
directories with not all files in any single directory necessarily included.

4)   I wish to convert these images into a video running at (say) 10 fps 
using reasonably high compression which can later be viewed from  Linux 
& Windows clients.

5)   The number of images identified in each run (probably daily) will 
range from a few dozen to a few thousand with each image in the range 
20-80k.


Hope thats clearer!


Dom



Sean Miller wrote:
> Kris Marsh wrote:
>   
>> Dump your mysql output to a file, and then use $(cat file) in place of
>> where your wildcard/files would be.
>>   
>> 
> This all sounds very over the top to me... I would appreciate it if the 
> requirement was outlined somewhat more clearly... from what I've read, 
> it seems that "find" would adequately work as a command to pipe into 
> whatever script it is that requires the files...
>
> ie.
>
> whatever.shl < `find . -name '*wildcard*' -print`
>
> or...
>
> find . -name '*wildcard*' -print | process_archive.shl
>
> ...or similar...
>
> Sean
>
>   


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


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

2007-06-04 Thread Sean Miller
Kris Marsh wrote:
> Dump your mysql output to a file, and then use $(cat file) in place of
> where your wildcard/files would be.
>   
This all sounds very over the top to me... I would appreciate it if the 
requirement was outlined somewhat more clearly... from what I've read, 
it seems that "find" would adequately work as a command to pipe into 
whatever script it is that requires the files...

ie.

whatever.shl < `find . -name '*wildcard*' -print`

or...

find . -name '*wildcard*' -print | process_archive.shl

...or similar...

Sean

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


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

2007-06-04 Thread Dominic Forrest
Dominic Forrest 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
>



That certainly passes the list to ffmpeg as I wanted - I'm just 
struggling a but with ffmpeg at the moment!


Thanks for the quick & helpful reply.


Dom

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


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

2007-06-04 Thread Kris Marsh
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/


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

2007-06-04 Thread Dominic Forrest

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/