[ubuntu-uk] Converting many .jpgs to mpeg4 without using
dominic.forrest at ntlworld.com
Wed Jun 6 08:57:25 BST 2007
Toby Smithe wrote:
> On Tue, 2007-06-05 at 08:19 +0100, Martyn wrote:
>> When your perl script runs have it make a working directory and then
>> symlink (ln -s) every file that matches the criteria into the working
>> directory. Then at the end of the run you'll have a directory with all
>> the matching files in it, and you can use ffmpeg on it with a wildcard
>> for the input files. When you've created the movie simply delete the
>> symlinks. I've used a similar method in the past and it worked for me.
>> By symlinking the files instead of copying them you avoid using up
>> disk space and the operation should me much quicker.
> Hi! I would advocate this, as I just read this thread, and this was the
> first method that popped into my head. I can't think of an alternative,
> either and it's nice and simple. I'm sure any modern file-system could
> cope with this kind of large operation.
Thanks to all I now have this working in two different ways:
1) Using the symlink method as suggested.
2) I have to convert the files to YUV before running them through
ffmpeg & jpeg2yuv accepts a text file as input which contains a list of
the images to be converted - thus solving the problem! The output from
this is simply piped to ffmpeg. This removes the requirement for the
symlinking (or whatever the real word is!) in 1) and seems more efficient.
More information about the ubuntu-uk