Re: Animation software for FC3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2005-10-15 at 18:25 -0500, Jay Moore wrote:
> I need to create a fairly simple animation... 10 or 12 bitmap files that
> are displayed in sequence. I also need to insert audio clips that are
> played as each bitmap is displayed. So the sequence would be:
> 
> display bitmap #1, play mp3 #1
> wait a few seconds
> display bitmap #2, play mp3 #2
> wait a few seconds
> etc, etc...
> 
> I've Google'd, and found audio editors and animation software, but
> nothing that allows me to create an audio-equipped animation. 
> 
> Any ideas???

Hi Jay,

Sounds like a job for a simple bash script....

-- cut here --
#!/bin/bash

DIR=/tmp/av
IMAGE_SUFFIX="jpg"
SOUND_SUFFIX="mp3"
DELAY=2

NUMBER=1

while [ -f ${DIR}/${NUMBER}.${IMAGE_SUFFIX} ]
do
   xloadimage -fullscreen ${DIR}/${NUMBER}.${IMAGE_SUFFIX} &
   IMAGE_PID=$!
   mpg123 ${DIR}/${NUMBER}.${SOUND_SUFFIX}
   sleep ${DELAY}
   kill ${IMAGE_PID}
   NUMBER=`expr ${NUMBER} + 1`
done

-- cut here --

Save the script in your homedir, as "pics_and_sound.sh"

chmod u+x pics_and_sound.sh

Put you images in the directory pointed to by DIR, and call them 1.jpg,
2.jpg etc. 

Put your mp3 in the same dir, call then 1.mp3, 2.mp3 etc.

You can use gifs or pngs instead, just change "IMAGE_SUFFIX".

Set DELAY to the time to sleep after the mp3 has played.

You need the mpg123 rpm installed.

xloadimage won't display windows bitmaps - you can convert them to a
more friendly format using the "convert" tool.

To run, 

cd
./pics_and_sound.sh

Cheers, Ben



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux