Page 1 of 2

get the picture from camera Desktop

Posted: Tue Nov 27, 2012 12:54 pm
by jmburnod
Hi All,
I searched a way to get the picture of camera desktop and i didn't find anything in the forum
Is it possible or not ?
Best regards
Jean-Marc

Re: get the picture from camera Desktop

Posted: Tue Nov 27, 2012 2:21 pm
by bn
Hi Jean-Marc,

look in Help Menu -> Example Stacks and Resources -> Resources -> Sample Projects -> Video Capture.rev

/Applications/LiveCode 5.5.3.app/Contents/Tools/Resources/Sample Projects/Video Capture.rev

Kind regards
Bernd

Re: get the picture from camera Desktop

Posted: Tue Nov 27, 2012 2:27 pm
by Klaus
Bonjour mes amies,

1. the example and the underlying technique is CRAP! 8)
Simply because this is only working (somehow) on the Mac, I NEVER got it to work on WIndows, neither with VfW nor with QuickTime!
Maybe the new video capture mechanism (OS X only! See the "Release Notes") is better (well, everything is better than this :D ), but I did not try it out.

2. I am afraid this will only work with VIDEO cameras (DV, Webcams etc.) and not with a photo camera.
I think this is what Jean-Marc is asking for.


Best

Klaus

Re: get the picture from camera Desktop

Posted: Tue Nov 27, 2012 2:42 pm
by bn
Hi Klaus,
the example and the underlying technique is CRAP!...
Simply because this is only working (somehow) on the Mac
I agree that there is ample room for improvement...

I thought Jean-Marc wanted to take a snapshot from the built-in camera on a Mac desktop computer. That does work from the preview of the example.

What does CRAP stand for? :)

Kind regards
Bernd

Re: get the picture from camera Desktop

Posted: Tue Nov 27, 2012 2:52 pm
by jmburnod
Hi Friends,
Thanks one more for help
the example and the underlying technique is CRAP!
I think so
Image
Maybe the new video capture mechanism (OS X only! See the "Release Notes") is better (well, everything is better than this ), but I did not try it out.
Ok I'll study and test it and i'm coming back.

Would you have a look here ?:
http://forums.runrev.com/phpBB2/viewtop ... 400#p64603
I think the topic changed and that will be better to create a new topic "ProgressbarDuringDownloadDesktop". Right ?

Kind regards
Jean-Marc

Re: get the picture from camera Desktop

Posted: Tue Nov 27, 2012 3:15 pm
by Klaus
Hi Bernd,
bn wrote:What does CRAP stand for? :)
See Jean-Marcs screenshot, which explains a LOT :D
I would translate it euphemistically with "Murks" into german 8)


Best

Klaus

Re: get the picture from camera Desktop

Posted: Tue Nov 27, 2012 3:32 pm
by bn
Hi Friends,

I think Jean-Marc's screenshot is the least of the problems.
The preview window is a "fake" window, it floats above everything. Just like RevBrowser.

But I do manage to get snapshots from the internal camera.

<joke>Although the snapshots do not clean up the room I am in. I would call that CRAP. I have to use Photoshop to take care of that mess. :) </joke>

Kind regards
Bernd

Re: get the picture from camera Desktop

Posted: Tue Nov 27, 2012 6:53 pm
by jmburnod
Hi Friends,
I looked revCapture library. I didn't find anything about it in the dictionary but the release notes says:
Mac – revCapture video capture library (4.6.1 – experimental)
I'm giving up this way
I just need a snapshot and the videoCapture does this part of the job
Kind regards

Re: get the picture from camera Desktop

Posted: Sun Feb 22, 2015 10:33 am
by richmond62
So, here I am with Livecode 7.0.1 on Mac 10.8 and when I go here: Help Menu -> Example Stacks and Resources

I get directed to the RunRev website via Firefox . . . rubbish.

So I dug down inside the Livecode app package to find "Video Capture.rev" file and copied it to my desktop.

In the "video setting" section of the stack I can see my "lovely face" via my cheap-and-nasty webcam attached to
my Mac 10.8.

But the picture does NOT show up when I click the "Start Preview" button, BUT the "Grab Image" works . . .

So tried a button with this:

on mouseUp
revInitializeVideoGrabber the short name of this stack, "QT", "10,10,310,310"
revPreviewVideo
end mouseUp

as per the Documentation and got ABSOLUTELY NOTHING.

So tried: revSetVideoGrabberRect 10,310,10,600

and the IDE threw a bluey [ revSetVideoGrabberRect 10,310,10,600 }

Re: get the picture from camera Desktop

Posted: Sun Feb 22, 2015 10:45 am
by richmond62
Downloaded Devin Asay's "VideoGrabberTest.rev" ] http://livecode.byu.edu/video/videoGrabber.php ] and got very
smilar results to before: No preview.

Re: get the picture from camera Desktop

Posted: Sun Feb 22, 2015 11:23 am
by Klaus
Hi Richmond,

LC now uses the AVFoundation for multimedia playback on the Mac now and NOT QuickTime anymore.

That means that -> "the dontuseqt" is set to TRUE per default in LC >=6.5x (?) and thus QT is not loaded
automatically anymore. Set it to FALSE in your pre-/openstack script and try again!

Or is it ONLY the preview that does not work and the rest does? :shock:


Best

Klaus

Re: get the picture from camera Desktop

Posted: Sun Feb 22, 2015 12:41 pm
by richmond62
Does that mean I should also expect that to work with Linux?

Re: get the picture from camera Desktop

Posted: Sun Feb 22, 2015 5:14 pm
by Klaus
richmond62 wrote:Does that mean I should also expect that to work with Linux?
No.

Re: get the picture from camera Desktop

Posted: Sun Feb 22, 2015 5:23 pm
by Martin Koob
Hi Richmond

As I understand it with more recent versions of Mac OS X QuickTime is deprecated. The player is now AVfoundation based. revVideoGrabber is QuickTime based but is now somehow wrapped to allow it to work with AVFoundation but the problem is that not all the revVideoGrabber features are working.

There is a bug where the preview does not show up with revVideoGrabber.

http://quality.runrev.com/show_bug.cgi?id=14339

Try switching to another application and then switch back to your stack running revVideoGrabber.

I found this workaround makes the preview appear but is not an actual fix.

Martin

Re: get the picture from camera Desktop

Posted: Sun Feb 22, 2015 7:08 pm
by richmond62
Um . . and the documentation is outdated . . . just for a change.