View Full Version : Imagesource/reader help please..
Floatingshed
8th July 2010, 11:25
I have sequence of .bmp images that I want to convert to video. I can't get imagesource/reader to do this. I think because of the leading zeros in the file names.
They are called "hide0000.bmp" - "hide1450.bmp". Can someone please advise me? Thanks.
Gavino
8th July 2010, 11:41
Use "hide%04d.bmp" for the filename.
Floatingshed
8th July 2010, 23:31
OK, thanks. I'll try that when I get home.
Er, what does the %04d mean?
Thanks.
Gavino
8th July 2010, 23:53
4 decimal digits, with leading zeroes permitted.
The notation comes from the C/C++ sprintf (http://www.cplusplus.com/ref/cstdio/sprintf.html) function.
Note also that if the image files are not in the same folder as your script, you will need to use the full pathname, eg "C:\MyFolder\hide%04d.bmp".
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.