VideoHelp Forum




+ Reply to Thread
Results 1 to 8 of 8
  1. I am trying to load a sequence of tiff images in Avisynth. The sequences number 0 through 148 and are the frames from a 5 second clip. However, when I load the tiffs, VD, and even AvsPmod, seems to default to creating a clip that is 1000 frames long where every clip after frame #148 is black. I have tried Trim(), but no luck. What am I doing wrong? TAA

    Code:
    ImageSource("E:\%03d.tif",fps=30000/1001,pixel_type="RGB32")
    Trim(0,148)
    Quote Quote  
  2. I've never seen Trim() fail to work when used like that.
    Quote Quote  
  3. yes trim should work, but add the start, end args to imagesource

    Code:
    ImageSource("E:\%03d.tif",start=0, end=148, fps=30000/1001,pixel_type="RGB32")
    Are the images named correctly with "placeholder digits" ?

    ie.

    000.tif
    001.tif
    002.tif
    .
    .
    .
    Quote Quote  
  4. Tried adding start and end args. Still loads bunch of blank frames until frame 1000. The images are named correctly but have a bunch of extra characters in front. Maybe that is the problem?

    e.g.

    IMG00108000.tif
    IMG00108001.tif
    IMG00108002.tif
    .
    .
    .
    IMG00108148.tif
    Quote Quote  
  5. Add the constant characters to the file spec.

    ImageSource("E:\IMG00108%03d.tif"...
    Quote Quote  
  6. OK, I finally got it working correctly, I have no idea what I did that caused to work. Very strange. Thanks for the help.
    Quote Quote  
  7. Member
    Join Date
    Aug 2013
    Location
    Central Germany
    Search PM
    Then you may have to learn more about the "sprintf format string" syntax. It does have a meaning. Example:

    % = here starts a placeholder
    0 = the numbers are left-filled with zeros
    3 = the numbers have three digits
    d = it is an integer decimal

    This describes a sequence of "000" to "999". And it does not contain the common part of "IMG00108" before the running numbers.
    Quote Quote  
  8. Originally Posted by LigH.de View Post
    Then you may have to learn more about the "sprintf format string" syntax. It does have a meaning. Example:

    % = here starts a placeholder
    0 = the numbers are left-filled with zeros
    3 = the numbers have three digits
    d = it is an integer decimal

    This describes a sequence of "000" to "999". And it does not contain the common part of "IMG00108" before the running numbers.
    I admit that I am a newbie when it comes to sprintf syntax, so thank you for your explanation. That is very helpful. I am now loading my tif sequences like a ninja and frameserving them to x264.
    Quote Quote  



Similar Threads

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