Camera cue loop

128 views
Skip to first unread message

Sebastian Kann

unread,
Oct 1, 2021, 12:31:36 PM10/1/21
to QLab
I want to program a camera cue that records from a camera feed for one minute and then plays that one-minute video in an infinite loop. Possible?

I know I can loop video cues, but for this show we need to record the video live.

Thoughts?
Message has been deleted

micpool

unread,
Oct 2, 2021, 5:30:43 AM10/2/21
to QLab
Sorry there was a fundamental flaw in my previous post please ignore and use this version instead!

Use QT Player to record the video and import into QLab using these scripts.


Screen Shot 2021-10-02 at 10.20.11.png


--STANDBY

try
set oldFile to POSIX path of ((path to desktop folder as text) & "myvideo.mov")
do shell script "rm " & quoted form of oldFile
end try

tell application "QuickTime Player"
activate
new movie recording
end tell
delay 0.5
tell application "QLab4.6" to activate


--RECORD

tell application "QuickTime Player" to start front document

--STOP

tell application "QuickTime Player"
stop the front document
set thefile to (path to desktop as string) & "myvideo.mov"
export document 1 in (file thefile) using settings preset "1080p"
close window "Export Progress"
close document 1 saving no
delay 5
tell application id "com.figure53.QLab.4" to tell front workspace
set the file target of cue "LOOP" to thefile
delay 1
set the start time of cue "LOOP" to 0
set the end time of cue "LOOP" to 99999
set the infinite loop of cue "LOOP" to true
end tell
end tell

LOOP is a video cue, set up with your surface patch, playback speed, audio levels etc. It's loop and start and end times are set in the STOP script above.

Workspace and demo video attached

Mic
Live Loop.mov
record and loop.qlab4.zip

micpool

unread,
Oct 2, 2021, 4:42:53 PM10/2/21
to QLab
If you are using this for anything more than loops of a couple of seconds, you will need to hold off loading the file exported from QuickTime Player until  it is fully saved.

The STOP script would change to

tell application "QuickTime Player"
stop the front document
set thefile to (path to desktop as string) & "myvideo.mov"
export document 1 in (file thefile) using settings preset "1080p"
tell application "Finder"
repeat while (file thefile exists) is false
delay 1
end repeat
end tell
delay 1
close window "Export Progress"
close document 1 saving no
delay 2
tell application id "com.figure53.QLab.4" to tell front workspace
set the file target of cue "LOOP" to thefile
delay 1
set the start time of cue "LOOP" to 0
set the end time of cue "LOOP" to 99999
set the infinite loop of cue "LOOP" to true
end tell
end tell

micpool

unread,
Oct 4, 2021, 6:55:12 PM10/4/21
to QLab
If you have 10 -30 GB + of spare RAM knocking about on your computer, you can do seamless live to recorded video by Syphoning your video feed into an OSC controlled external framestore app like this one. This gives you instant replay, reverse random play  and freeze functionality.
Mic
On Friday, October 1, 2021 at 5:31:36 PM UTC+1 sebast...@gmail.com wrote:
Framestore.mov
Reply all
Reply to author
Forward
0 new messages