Script for Screen capture/ photo

335 views
Skip to first unread message

Andrew Lee

unread,
Dec 19, 2022, 1:06:31 PM12/19/22
to QLab
Hello Qlab experts, 

I remembered seeing a post/ script where you take a live feed and screen capture a frame as a photo ? Can someone please help me out with this? I have a Live Feed in my scene and I would like to take a picture of that "moment" and show that picture on screen during the show. 

Thank you in Advance!!!

micpool

unread,
Dec 19, 2022, 1:42:52 PM12/19/22
to QLab

Kalman Tarr

unread,
Dec 19, 2022, 4:31:54 PM12/19/22
to QLab
Hi guys,
I may have an advice on how to freeze pictures.  It might be useful.

I tried to solves the job using network cues mainly.
This is the screenshot of the whole workspace.
The memo cue contains the post Wait time of the cue numbered "auto", if any.
Needed two camera cue. I show the setup in the picts. 
On self display you can watch the incoming camera picture in real time.
The syphon mirror the pict to External Display.
To be safe, I enclose a screenshot about the workspace.

Screen Shot 2022-12-19 at 22.26.44.png

Externaldisplay.pngSelfdisplay.png

I hope I'm not intrusive.

Best,
Kalman
FreezeCameraPicture.qlab4

Andrew Lee

unread,
Dec 19, 2022, 5:57:45 PM12/19/22
to ql...@googlegroups.com
As always Mic! You are always so helpful!! 

This is very overwhelming for me 😅 can I trouble you to show me how to set the workspace 🥹? 

Thank you so much !! 

--
Contact support anytime: sup...@figure53.com
Follow QLab on Twitter: https://twitter.com/QLabApp
User Group Code of Conduct: https://qlab.app/code-of-conduct/
---
You received this message because you are subscribed to a topic in the Google Groups "QLab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qlab/7q-XVRAuNZ4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/0ee76827-8598-4f4a-8c84-3fefc7402bean%40googlegroups.com.

Andrew Lee

unread,
Dec 19, 2022, 5:59:13 PM12/19/22
to ql...@googlegroups.com
Thank you for your response :) I will need sometime to go through this to process / play with what you’ve provided.. 

Thank you!

--
Contact support anytime: sup...@figure53.com
Follow QLab on Twitter: https://twitter.com/QLabApp
User Group Code of Conduct: https://qlab.app/code-of-conduct/
---
You received this message because you are subscribed to a topic in the Google Groups "QLab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qlab/7q-XVRAuNZ4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qlab+uns...@googlegroups.com.

Kalman Tarr

unread,
Dec 20, 2022, 6:47:40 AM12/20/22
to QLab
May I ask if you have successfuly downloaded the project?
If so, yes press 'command+ b' keys, a new window will appear and press  'cmd + right key' key combo twice. 
In this tab of the window you can find the 'triggers'. All of one there is a 'EDIT' button, push it. 
Assigns the appropriate 'cue' in the workspace.
The setup of video layers seen in the enclosed picts.

It is helpful?

Best

micpool

unread,
Dec 20, 2022, 8:10:44 AM12/20/22
to QLab
Here is the Framestore workspace and screen recording for QLab 5

Screenshot 2022-12-20 at 13.10.02.png

Each frame is captured to the store with this script:

--requires a pre existing video cue numbered "STILLx"  with surface set for your display
set theDisplaynumber to 2 --set to number of display or projector for frame capture
set theCaptureNumber to 3 --Frame number to store
set theFolder to "~/Desktop/screencapture/"
set thepath to path to home folder as Unicode text
do shell script ("mkdir -p " & theFolder)
set theInstruction to "screencapture -x -D" & theDisplaynumber & " "
set theInstruction to theInstruction & theFolder & (theCaptureNumber as string) & ".png "

do shell script theInstruction
tell application id "com.figure53.QLab.5" to tell front workspace
    delay 0.5
    set the file target of cue ("STILL" & (theCaptureNumber as string)) to (thepath & "Desktop:screencapture:" & (theCaptureNumber as string) & ".png")
end tell


Mic


Captures.qlab5
framestore-HD 720p.mov

Andrew Lee

unread,
Dec 20, 2022, 2:27:32 PM12/20/22
to ql...@googlegroups.com
i will give it a try.. =) Thank You!!


You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/84db89eb-f516-4b24-992e-8040f2f8684dn%40googlegroups.com.

Andrew Lee

unread,
Dec 20, 2022, 2:28:10 PM12/20/22
to ql...@googlegroups.com
Mic this is GREAT as always =) will need to upgrade to Qlab 5 now  (I only have 4 atm) =D

Thank You!!



You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qlab/59f90dad-057d-4934-9e6d-8fbb98e60d0en%40googlegroups.com.

micpool

unread,
Dec 20, 2022, 3:38:34 PM12/20/22
to QLab
On Tuesday, December 20, 2022 at 7:28:10 PM UTC als...@gmail.com wrote:
Mic this is GREAT as always =) will need to upgrade to Qlab 5 now  (I only have 4 atm) =D

While there are many great reasons to upgrade to QLab5, this script will run fine with QLab4 if you change the tell block line to change  line to 
tell application id "com.figure53.QLab.4" to tell front workspace

QLab 4 workspace attached

Mic



Captures.qlab4

Andrew Lee

unread,
Dec 20, 2022, 5:36:21 PM12/20/22
to ql...@googlegroups.com
Hi Mic, quick question on your workspace there is 2 surface. Surface 1 and Surface 2

Which should I set surface 1 / 2 ? I am using my MacBook and a projector (where the image will be displayed)

On Tue, 20 Dec 2022 at 3:22 PM, Andrew Lee <ma...@andrewleemagic.com> wrote:
Omg Mic!! 

Thank you so much.. 

--
Contact support anytime: sup...@figure53.com
Follow QLab on Twitter: https://twitter.com/QLabApp
User Group Code of Conduct: https://qlab.app/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.
--
All the best,



Mobile:     +6016 220 9593 (Manager)
___

Andrew Lee

unread,
Dec 20, 2022, 5:37:23 PM12/20/22
to ql...@googlegroups.com
Hi Mic, quick question on your workspace there is 2 surface. Surface 1 and Surface 2

Which should I set surface 1 / 2 ? I am using my MacBook and a projector (where the image will be displayed)
On Tue, 20 Dec 2022 at 3:22 PM, Andrew Lee <ma...@andrewleemagic.com> wrote:
Omg Mic!! 

Thank you so much.. 
On Tue, 20 Dec 2022 at 12:38 PM, micpool <m...@micpool.com> wrote:
--
Contact support anytime: sup...@figure53.com
Follow QLab on Twitter: https://twitter.com/QLabApp
User Group Code of Conduct: https://qlab.app/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "QLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qlab+uns...@googlegroups.com.

micpool

unread,
Dec 20, 2022, 6:11:44 PM12/20/22
to QLab
if you press cmd-shift-3 you will get screenshot images of all displays  as files on the desktop, the numbers in brackets (if no brackets that’s 1) in  the filenames, show the screen

In your case, the projector will almost definitely be display  2. The screenshots are made outside of QLab so the screenshot script uses the display  number, not the surface.

If you haven’t edited the default surfaces in QLab settings video, then your projector will almost definitely be surface 2, so you would patch the camera and the Stills video cues to that surface. 

If you were wanting to screenshot a display that the audience can’t see, you might add a 3rd display that only you, or the camera operator, can see and patch the camera to that and set theDisplayNumber in the script to 3

You would route content you wanted the audience to see, e.g the stills, to the projector.

Mic

Andrew Lee

unread,
Dec 20, 2022, 7:56:12 PM12/20/22
to ql...@googlegroups.com
Amazing!! Thank You Mic!! 



Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages