[Closed] openbitmap video
Not sure what I’m doing wrong here but trying to use ‘openbitmap ’ to open frames from video with no luck. Works fine with any image accept video. Is there some obvious step I’m missing here or is openbitmap unable to handle video?
MaxScript help file says:
openBitMap <filename_string>
Returns a bitmap value containing the contents of the specified bitmap file. The bitmap value returned is a load-only bitmap.
The video support is not mentoined.
IF it works with video files, did you use avi or other format?
Assumed was possible after finding this: http://forums.cgsociety.org/showthread.php?f=98&t=238567&highlight=openbitmap+video plus help file mentions this:
[left]<bitmap>.numframes : Integer
[/left]
[left]The number of frames in a multi-frame file, yields 1 for a single image file.
[/left]
You may be trying to load a file compressed with a codec not supported by 3dsmax.
For example, trying to open a DivX .AVI on 64 bit 3dsmax.
Check if you can open the file using the manual ‘view image’ from the menu.
I would under all circumstances convert the video to an image sequence and use an IFL instead, a lot more memory efficient.
Have been looking into using ffmpeg to solve this. Previously have used ffprobeto get info from video. Has anyone used ffmpeg in maxscript to convert video to image sequence? So far have tried this which isn’t working.
global tempstr1 = “ffmpeg -i C:\YourFuture.mov -f -r 30 -s WxH -y image2 C:\image-%03d.jpeg”
hiddendoscommand tempstr1