Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 4908 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Hello. I have a client that needs to capture people holding movie slates for a few seconds. Can Scriptmaster's videoframe capture function be modified to capture rolling video, not just a single frame?

Thanks for your help.

David

Posted

This works for stills

You need http://lti-civil.org


import java.awt.image.BufferedImage

import com.lti.civil.*

import com.lti.civil.awt.AWTImageConverter

import com.sun.image.codec.jpeg.*

factory = DefaultCaptureSystemFactorySingleton.instance()

system = factory.createCaptureSystem()

system.init()

info = system.getCaptureDeviceInfoList().get(0)

captureStream = system.openCaptureDeviceStream(info.getDeviceID())

count = 0

capturedImage = null

captureStream.setObserver({ sender, image ->

count++

if (count > 1) {

  capturedImage = image

  } //end if

} as CaptureObserver)

captureStream.setVideoFormat(captureStream.enumVideoFormats().get(0))

captureStream.start()

while(! capturedImage) {

Thread.sleep(100)

} //end while

captureStream.stop()

captureStream.dispose()

system.dispose()

bimg = AWTImageConverter.toBufferedImage(capturedImage)

return bimg

This article is really helpful,recent, and is quite in depth for video capture

http://ditra.cs.umu....FCapturing.html

This topic is 4908 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.