Weird exportimage with grab

Jun 5, 2007 at 4:35am

Weird exportimage with grab

Easter egg, or what? I was using jit.qt.grab in direct to window mode, tried the exportimage command, and got some crazy goth pic as a result. When not in direct to window mode, exportimage works as expected. Anytime I try it again in direct to window mode, the weird image is the resulting jpg.

Did I miss some discussion back in 1.0 or something? Anybody have any info on this. Just curious.

Tim

#32264
Jun 5, 2007 at 5:03am

I just tried and it worked as expected, and I wasnt dressed in my
goth costume, so no gothy pictures here (I was pretty pasty though..
hmm). You sure you just dont know how you look?

post the pic! Im curious !

On Jun 5, 2007, at 12:35 AM, Tim wrote:

>
> Easter egg, or what? I was using jit.qt.grab in direct to window
> mode, tried the exportimage command, and got some crazy goth pic as
> a result. When not in direct to window mode, exportimage works as
> expected. Anytime I try it again in direct to window mode, the
> weird image is the resulting jpg.
>
> Did I miss some discussion back in 1.0 or something? Anybody have
> any info on this. Just curious.
>
> Tim
> –
> Tim Thompson
>
> Assoc. Professor of Music
> Palm Beach Atlantic University

v a d e //

http://www.vade.info
abstrakt.vade.info

#105808
Jun 5, 2007 at 5:25pm

Well, I had deleted all the images, so I tried it again. This time I got a different image. What I figured out after some experimenting is that the image is whatever was the initial frame when the “window foo” command was sent to the grab object. After that, no matter whether the input device is closed and reopened or not, the image is always of the same frame. The only way to get a different image is to disassociate the grab object from the window and reassociate it. The same issue persists, but with a different frame.

I guess it so happened when I first posted this that the frame in the source material was really weird by itself. I can’t imagine where it came from–I forgot what I had coming in at that time–probably just TV programming. It was spooky. I wish I had kept it.

Anyway, can’t reproduce it?

Here is a basic grab setup. I am using 4.6.2 and Jitter 1.6.2. My input device was the DFG1392e.

No big deal. I’m now using gl.videoplane for output anyway.

Tim

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 26 180 62 196617 window boo;
#P newex 135 131 147 196617 jit.window boo @size 320 240;
#P newex 86 258 25 196617 iter;
#P newex 181 279 38 196617 t clear;
#P newex 315 279 38 196617 t clear;
#P message 237 324 45 196617 input $1;
#P user ubumenu 237 303 145 196617 0 1 1 0;
#X prefix_set 0 0 0;
#P newex 237 279 75 196617 prepend append;
#P newex 237 258 25 196617 iter;
#P message 86 324 58 196617 vdevice $1;
#P user ubumenu 86 303 145 196617 0 1 1 0;
#X add “DVCPRO HD (1080i50)”;
#X add “DVCPRO HD (1080i60)”;
#X add “DVCPRO HD (720p60)”;
#X add “DV Video”;
#X add “IIDC FireWire Video”;
#X add “USB Video Class Video”;
#X prefix_set 0 0
0;
#P newex 86 279 75 196617 prepend append;
#P newex 86 228 112 196617 route vdevlist inputlist;
#P message 98 179 85 196617 exportimage jpeg;
#P message 190 180 28 196617 open;
#P message 231 180 31 196617 close;
#P message 88 158 59 196617 getinputlist;
#P message 13 158 59 196617 getvdevlist;
#P toggle 1 116 15 0;
#P newex 1 135 44 196617 metro 2;
#P newex 1 206 95 196617 jit.qt.grab 320 240;
#B color 5;
#P fasten 8 1 12 0 142 248 242 248;
#P fasten 8 1 16 0 142 248 320 248;
#P connect 8 0 18 0;
#P fasten 8 0 17 0 91 252 186 252;
#P connect 14 0 15 0;
#P fasten 16 0 14 0 320 299 242 299;
#P connect 13 0 14 0;
#P connect 12 0 13 0;
#P connect 10 0 11 0;
#P fasten 17 0 10 0 186 299 91 299;
#P connect 9 0 10 0;
#P connect 18 0 9 0;
#P connect 0 1 8 0;
#P hidden fasten 7 0 0 0 103 200 6 200;
#P fasten 11 0 0 0 91 350 -2 350 -2 175 6 175;
#P fasten 15 0 0 0 242 350 -2 350 -2 175 6 175;
#P hidden fasten 3 0 0 0 18 200 6 200;
#P hidden fasten 4 0 0 0 93 200 6 200;
#P hidden fasten 6 0 0 0 195 200 6 200;
#P hidden fasten 5 0 0 0 236 200 6 200;
#P connect 1 0 0 0;
#P fasten 20 0 0 0 31 200 6 200;
#P connect 2 0 1 0;
#P window clipboard copycount 21;

#105809

You must be logged in to reply to this topic.