Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Make movie of JPEG images - how?

    I have an webcam (Creative Quickcam Pro 4000) and use a linux box to upload the images to the net every minute.

    What I want is to store all the images from the last day (~1440 images) and make a movie of the images every hour. I have already made a script that saves all the images in one folder and remove all images older than 24 hours.

    How do I convert this images to a movie? I guess it exist a few guides on the topic, but I can't find any... Thanks.

  2. #2
    Linux Enthusiast scientica's Avatar
    Join Date
    Sep 2003
    South- or "Mid-" Sweden
    You can use the "convert" program from ImageMagik, it should be as easy as something like:
    convert *jpg mymovie.mpg
    there should be more options avalible, and they're probably documented in the man pages ("man convert").

    Regards Scienitca (registered user #335819 - )
    A master is nothing more than a student who knows something of which he can teach to other students.

  3. #3

    follow up on the convert tip..

    If you run into trouble with the convert program and get error messages like "can not find mpeg2encode" or something similar, then check out
    that helped me a lot

  4. $spacer_open
  5. #4
    I have found that if there are a lot of images to make into a movie, the command
    convert *.jpg movie.mpg
    Does not work well at all. Here is an alternative using mencoder. Just substitute the variables with what you are using.

    mencoder mf://$PIC_DIR/\*.jpg -mf w=$WIDTH:h=$HEIGHT:fps=$FPS:type=jpg -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -o $DEST_VIDEO

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts