Find the answer to your Linux question:
Results 1 to 4 of 4
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2006
    Posts
    3

    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
    Location
    South- or "Mid-" Sweden
    Posts
    742
    You can use the "convert" program from ImageMagik, it should be as easy as something like:
    Code:
    convert *jpg mymovie.mpg
    there should be more options avalible, and they're probably documented in the man pages ("man convert").

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

  3. #3
    Just Joined!
    Join Date
    May 2006
    Posts
    1

    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
    http://www.stillhq.com/jpeg2mpeg/000002.html
    that helped me a lot

  4. #4
    Just Joined!
    Join Date
    Jan 2007
    Posts
    2
    I have found that if there are a lot of images to make into a movie, the command
    Code:
    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.

    Code:
    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
  •