Page 1 of 1

Populate an option menu with video sources

Posted: Fri Dec 20, 2013 12:30 pm
by UtahCode197
Hi,
How can I populate an option menu with external video sources. Also, if this is possible, how can I make a Quicktime Player display show the selected source?

Thanks for any help!

Re: Populate an option menu with video sources

Posted: Fri Dec 20, 2013 12:59 pm
by Klaus
Hi Rory,
RoryJMcEwan wrote:Hi,
How can I populate an option menu with external video sources.
you mean a list of video FILES (from a folder)?
Yes, this is possible -> the files
RoryJMcEwan wrote:Also, if this is possible, how can I make a Quicktime Player display show the selected source?
"display show"???
You mean the user selects a menu and you load that video file into a player object?
Yes, that is also possible :D


Best

Klaus

Re: Populate an option menu with video sources

Posted: Fri Dec 20, 2013 1:07 pm
by UtahCode197
Hi, I mean select a video source from a list of external inputs (like USB webcams).

So what I want the app to do is to have a Quicktime Display that shows which ever webcam is selected in the option menu.

Sorry for the confusion and thanks for the reply :)

Re: Populate an option menu with video sources

Posted: Fri Dec 20, 2013 1:18 pm
by Klaus
AHA! :D

Well this might be possible with the VIDEO command, check "VIDO" in the dictionary (left panel)
but in my experience this will only work on a Mac (more or less) with QuickTime satisfyingly!
I NEVER got this to work on Windows with or without QuickTime!


Best

Klaus

Re: Populate an option menu with video sources

Posted: Fri Dec 20, 2013 4:19 pm
by UtahCode197
Thanks for replying again!

I've got this, which I assume is what you meant:
revInitializeVideoGrabber parentStack,videoMethod,grabberRect

And I've filled it in with what I thought it wanted:
revInitializeVideoGrabber Main Input,videoMethod,player "Input"

It returns no errors but it doesn't work either so I'm not sure what to do. I've also tried different combinations (like putting the Player bit in the middle) but still no joy.
Sorry if I'm bothering you too much

Re: Populate an option menu with video sources

Posted: Fri Dec 20, 2013 4:30 pm
by Klaus
Hi Rory,

no, you are not bothering me too much, I just wanted to express
that video capture currently suxx in Livecode and I do not bother to
use this anymore! :D

Maybe this stack helps:
http://livecodeshare.runrev.com/stack/486/Video-Capture


Best

Klaus

Re: Populate an option menu with video sources

Posted: Fri Dec 20, 2013 5:07 pm
by UtahCode197
I see what you mean........It's pants :|
I'm trying to make an app which one can use to switch between a video and a camera, and is a software output which can be used in CamTwist or any other program that uses a live video input.
Is there a way to get a camera feed in it?
I've got the videos by using the code from the video library tutorial.

Thanks for all your help so far :) I really appreciate it :D

Re: Populate an option menu with video sources

Posted: Tue Apr 29, 2014 12:51 pm
by oliver.hardt
Has there been any solution to this issue? I am currently also struggling with the latest LiveCode version to see the video coming in via USB3.0. The revVideoGrabDialog does not work at all -- this command does not trigger display of a dialog that allows you to select an input source, as explained in the documentation.

Is there any solution to this, even a commercial one, like a third-party video library?

Olli.