2011/5/25 Dyogo Veiga <[email protected]>:
> Good afternoon, I have a project targeting video and started to use mlt can
> position the video but I can not return to a variable one frame of video. If
> someone can help me I am grateful.
Exact syntax depends on your language, but in pseudo-code it looks like this:
Factory.init()
profile = new Profile("square_pal_wide") // or other
producer = new Producer(profile, "filename")
producer.seek(myPosition) // myPosition is a frame number
frame = producer.get_frame()
format = mlt_image_rgb24 // or other
width = 0
height = 0
image = frame.get_image(format, width, height)
// Image contains data in packed format where stride = width *
bytes_per_pixel depending on format.
// You do not destroy this image buffer; the frame object manages it.
// If you are using a garbage-collected language, smart pointers, or
scoped objects, then object destruction is automatic. Otherwise, you
need to call close functions (C) or delete (C++) your object pointers.
Easy, eh?
--
+-DRD-+
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Mlt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mlt-devel