Hi people. I'm trying to get a single frame from a file, and put it in a=20
QPixmap for example. Reading piave source code, I found a function called =
veml_snapShot(), but didn't understand how to do that. Any idea?
L=FAcio Fl=E1vio Corr=EAa
"Like a child who's run away And won't be coming back
Time keeps passing by As night turns into day"=20
On Wednesday 20 October 2004 14:49, L=FAcio Fl=E1vio Corr=EAa wrote:
> Hi people. I'm trying to get a single frame from a file, and put it in=
> QPixmap for example. Reading piave source code, I found a function call=
> veml_snapShot(), but didn't understand how to do that. Any idea?
you can ask piave to save a single frame to a file (at the same time scal=
it to a smaller size if requested). The intention of this command was to=
load these pictures into kdenlive and display them in the timeline, i.e. =
have a few frames of the clip instead of only the name. I actually=20
implemented this half way, but I couldn't figure out what to do when the =
'cut's a clip. On this action, kdenlive would need to ask piave for coup=
of new frames. That didn't work, so I didn't commit it.
To test it, just send a command like the following from kdenlive to a pia=
instance after setting a scenelist (may contain effects and everything):
<snapShot time=3D"0" />
the defaults (see kdenserver.cc)
<snapShot width=3D"40" height=3D"30" filename=3D"/tmp/piave-snapshot.bm=
40x30 is already pretty good for the timeline. You would need to open th=
specified filename with QPixmap/Image.Load() (I don't know Qt well). =20
Only .bmp is currently supported. The VEML command returns a reply with=20
Get latest updates about Open Source Projects, Conferences and News.