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)
+ Reply to Thread
Results 1 to 8 of 8
-
-
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")
ie.
000.tif
001.tif
002.tif
.
.
. -
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 -
Add the constant characters to the file spec.
ImageSource("E:\IMG00108%03d.tif"... -
OK, I finally got it working correctly, I have no idea what I did that caused to work. Very strange. Thanks for the help.
-
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. -
Similar Threads
-
Avisynth question
By Mr_Flintstone in forum Video ConversionReplies: 15Last Post: 15th Feb 2016, 19:58 -
Avisynth Question
By simonrule in forum EditingReplies: 26Last Post: 29th Jul 2013, 16:52 -
AVIsynth question
By Acetyl in forum RestorationReplies: 8Last Post: 30th Apr 2013, 18:41 -
Avisynth Overlay Question
By jelythefish in forum EditingReplies: 13Last Post: 8th Apr 2013, 18:56 -
Avisynth IMAGESOURCE syntax question
By duhmez in forum Video ConversionReplies: 1Last Post: 13th Dec 2012, 03:11