Log in

View Full Version : ImageSource


Mounir
23rd August 2009, 02:57
I'm in trouble with a .BMP sequence => it won't load.

1) The sequence goes like this:
MySequence0000.bmp
MySequence0001.bmp
[....]
MySequence7870.bmp

2) My current script:

ImageSource("C:\MySequence000%d.bmp", 0, 7870, 29.970, use_DevIL = true)
ConverttoYUY2(matrix="Rec601")

3) Result:
All i get is a black frame throughout the 7870 frames

The bmp's are 24 bits in color depth


Thansk for your inputs

poisondeathray
23rd August 2009, 03:02
I think the wildcard syntax is incorrect

ImageSource("C:\MySequence%4d.bmp",0, 7870, 29.970, use_DevIL = true)

kemuri-_9
23rd August 2009, 03:20
ImageSource/Reader use the C printf style for formatting strings.
since all of the pictures are zero-padded to be 4 digits, this would be


ImageSource("C:\MySequence%04d.bmp", 0, 7870, 29.970, use_DevIL = true)

ImageSource("C:\MySequence%4d.bmp",0, 7870, 29.970, use_DevIL = true)
^ would be used if they were padded with spaces instead of 0s

poisondeathray
23rd August 2009, 03:27
thx for the correction kemuri!

Mounir
23rd August 2009, 03:48
Thanks a lot kemuri-_9 you just saved me, i note preciously your infos for latter use