VideoHelp Forum




+ Reply to Thread
Results 1 to 10 of 10
  1. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    I have 30 JPG images taken from the same view point at different times. The images are named IMAGE-001.JPG, IMAGE-002.JPG, IMAGE-003.JPG,,, IMAGE-030.JPG
    How can I join these images to create an AVI file? I have VirtualDubMod and AVISYNTH, but do not know the script or command to join them. Or do I need to use something else?
    Thank you.
    Quote Quote  
  2. Banned
    Join Date
    Jun 2007
    Location
    UNREACHABLE
    Search Comp PM
    http://avisynth.org.ru/docs/english/

    And there should be a copy of the AVS documentation
    sleeping somewhere on your hard drive.
    Quote Quote  
  3. VirtualDubMod can open them directly. File -> Open Video File, then select the first image. It will automatically append seqencially numbered images.
    Quote Quote  
  4. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Midzuki, Do you know the AVISynth script to load a range of images into one continuos file?
    Jagabo, VirtualMod only loads two images and then stops. I appreciate the suggestion. Is there something else I should try?
    NOTE: All the JPG images are the exact same dimension (48x60 pixels) and are the only thing in the directory (Windows-XP).
    Quote Quote  
  5. That's weird, VirtualDubMod works for me as jagabo suggested

    Avidemux can load images too, but you have to manually append them. If you have 30 it's not that bad i guess. You might want to change the frame rate from 30 to something else.
    Quote Quote  
  6. Originally Posted by forensic
    VirtualMod only loads two images and then stops. I appreciate the suggestion. Is there something else I should try?
    NOTE: All the JPG images are the exact same dimension (48x60 pixels) and are the only thing in the directory (Windows-XP).
    Then there is something wrong. Is the third file numbered sequentially? Does it have the same number of digits? Try starting with the fourth image. Does it load all the rest? I've used VirtualDubMod like this many times before.

    AviSynth's image reading functions are ImageReader() and ImageSource(). See the documentation for their useage details. In your case it will be something like:

    ImageSource("C:\Path to files\IMAGE-%03d.JPG", 1, 30, 23.9076)

    The %03d means the file names will be 3 digit (the 3) decimal (the d) numbers with leading zeros (the 0).

    If VirtualDubMod had a problem with the sequence AviSynth probably will too.
    Quote Quote  
  7. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Thank you for your help.

    ImageSource("C:\TEST\Untitled-%03d.jpg", 100, 103, 23.9076)

    What ever number I have as the first image ("Untitled-100.jpg" in this example), AVIsynth loads that first image twice and no other images. What could be wrong?
    Quote Quote  
  8. Originally Posted by forensic
    ImageSource("C:\TEST\Untitled-%03d.jpg", 100, 103, 23.9076)

    What ever number I have as the first image ("Untitled-100.jpg" in this example), AVIsynth loads that first image twice and no other images. What could be wrong?
    That should load:

    C:\TEST\Untitled-100.jpg
    C:\TEST\Untitled-101.jpg
    C:\TEST\Untitled-102.jpg
    C:\TEST\Untitled-103.jpg

    Each frame should appear once, and the frame rate should be 23.976 fps. Try adding info=true to the command to see the filenames (stamped onto each frame). The documentation states that black frames are added if a file isn't found. I verified this and also found that a black frame was substituted if a frame of another size was found.

    ImageSource("C:\TEST\Untitled-%03d.jpg", 100, 103, 23.9076, info=true)

    What are you using to view the results? If you aren't already, use VirtualDubMod so you can step through the images frame by frame.
    Quote Quote  
  9. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Problem solved.

    I forgot the classic Windows commandment "When wierd things happen...reboot"

    Thank you
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!