View Full Version : ImageReader using filelist
yair
5th March 2010, 22:42
i want to make an image seqaunce using a filelist.
like to use every image in a folder(and all it subfolders) ill use
dir /b /s *.jpg > everyJpg.txt
then i want to pipe that list to
CoronaSequence("*.jpg", sort=3).BicubicResize(320,240)
can this be done? can i feed it a filelist?
btw. i use CoronaSequence as ImageReader/ImageSource as they give me Devil errors no matter what.
Wilbert
6th March 2010, 13:58
then i want to pipe that list to
CoronaSequence("*.jpg", sort=3)
I don't get it. CoronaSequence("*.jpg", sort=3) load all jpg images from the current folder and all subfolders. Isn't that what you want?
as ImageReader/ImageSource as they give me Devil errors no matter what.
Could you give a sample script which fails (and upload the pic somewhere)?
yair
6th March 2010, 14:22
hi, you are correct, *.jpg will load all subdir when in root.
that can take care of it. no need for a filelist (but knowing it can be done is a plus)
as for Devil errors. i cant reproduce, its an historical "dont go there" for me.
anyways i cant seem to understand its usage of regex.
coronSeq reads everything witha simple *.jpg using imsageReader i can only make it work with sequential numbers.
im sure its a limitation of the user...
Wilbert
6th March 2010, 14:50
that can take care of it. no need for a filelist (but knowing it can be done is a plus)
I think it can be done by using ConditionalReader. I recall someone posted such a script once, but i can't find it though.
as for Devil errors. i cant reproduce, its an historical "dont go there" for me.
anyways i cant seem to understand its usage of regex.
What's regex?
coronSeq reads everything witha simple *.jpg using imsageReader i can only make it work with sequential numbers.
im sure its a limitation of the user...
Yes, that's a limitation.
yair
6th March 2010, 14:59
regex=regualr expressions
i ment "sprintf syntax"
tnaks again for your help
yair
7th March 2010, 02:32
i got your lead about ConditionalReader.
i think i almost got it, but am getting
"ScriptClip: function did not return a video clip with the same colorspace as the source clip"
#####################
import("myvars10.txt")
BlankClip(length=10, width=720, height=576, fps=25, color=$000000).ConvertToRGB()
#ScriptClip("""subtitle(Eval("n"+string(mystringindex)))""")
ScriptClip("""ImageSource(Eval("n"+string(mystringindex)))""")
ConditionalReader("range_string10.txt", "mystringindex")
#####################
range_string10.txt>>>
Type int
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 10
myvars.txt>>>>
n0="Q:\_photos\[1] ho.jpg"
n1="Q:\_photos\200-15-01\IMG_4599.jpg"
n2="Q:\_photos\200-15-01\IMG_4601.jpg"
n3="Q:\_photos\200-15-01\IMG_4602.jpg"
n4="Q:\_photos\200-15-01\IMG_4603.jpg"
n5="Q:\_photos\200-15-01\IMG_4604.jpg"
n6="Q:\_photos\200-15-01\IMG_4605.jpg"
n7="Q:\_photos\200-15-01\IMG_4606.jpg"
n8="Q:\_photos\200-15-01\IMG_4607.jpg"
n9="Q:\_photos\200-15-01\IMG_4608.jpg"
n10="Q:\_photos\200-15-01\IMG_4609.jpg"
Dogway
7th March 2010, 04:16
Take a look here (http://forum.doom9.org/showthread.php?p=1372381#post1372381), maybe it can help.
Although recently I have been having an error, stating "cannot load plugin", I dont know what else to do.
Gavino
7th March 2010, 14:17
"ScriptClip: function did not return a video clip with the same colorspace as the source clip"
...
BlankClip(length=10, width=720, height=576, fps=25, color=$000000).ConvertToRGB()
You probably want ConvertToRGB24().
Your images must all be 720x576 too.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.