Populate an option menu with video sources

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
UtahCode197
Posts: 21
Joined: Sat Jun 22, 2013 9:36 pm

Populate an option menu with video sources

Post by UtahCode197 » Fri Dec 20, 2013 12:30 pm

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!

Klaus
Posts: 14187
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Populate an option menu with video sources

Post by Klaus » Fri Dec 20, 2013 12:59 pm

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

UtahCode197
Posts: 21
Joined: Sat Jun 22, 2013 9:36 pm

Re: Populate an option menu with video sources

Post by UtahCode197 » Fri Dec 20, 2013 1:07 pm

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 :)

Klaus
Posts: 14187
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Populate an option menu with video sources

Post by Klaus » Fri Dec 20, 2013 1:18 pm

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

UtahCode197
Posts: 21
Joined: Sat Jun 22, 2013 9:36 pm

Re: Populate an option menu with video sources

Post by UtahCode197 » Fri Dec 20, 2013 4:19 pm

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

Klaus
Posts: 14187
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Populate an option menu with video sources

Post by Klaus » Fri Dec 20, 2013 4:30 pm

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

UtahCode197
Posts: 21
Joined: Sat Jun 22, 2013 9:36 pm

Re: Populate an option menu with video sources

Post by UtahCode197 » Fri Dec 20, 2013 5:07 pm

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

oliver.hardt
Posts: 7
Joined: Fri Oct 29, 2010 2:31 am

Re: Populate an option menu with video sources

Post by oliver.hardt » Tue Apr 29, 2014 12:51 pm

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.

Post Reply