disguise developers

Designer Plugins

Plugins for Disguise Designer software.

Video Input Samples

This guide demonstrates how to work with video input resources using the Disguise Python API.

Working with Video Clips

TaskPython
Get all resources of type VideoClipall_clips = resourceManager.allResources(VideoClip)
Iterate through a list of clipsfor clip in all_clips:
Check if a video clip is a live inputclip.isVideoIn
Get the name of a clip’s video input sourceclip.Video_Input.localVideoIn.name
Get the resolution of a clip’s video inputclip.Video_Input.localVideoIn.videoInFormat.resolution
Get the framerate of a clip’s video inputclip.Video_Input.localVideoIn.videoInFormat.framerate
Get the pixel format of a video inputclip.Video_Input.localVideoIn.videoInFormat.pixelFormat
Get the hardware ID of a video inputclip.Video_Input.localVideoIn.hardwareId
Set the video input for a clipclip.Video_Input.localVideoIn = video_in_device
Set the format (resolution, interlaced, pixel format) for a logical video inputclip.Video_Input.localVideoIn.setFormat(Vec2(1920, 1080), False, "YUV422")
Change the pixel format of a video inputclip.Video_Input.localVideoIn.pixelFormat = "RGB24"
Change the resolution of a video inputclip.Video_Input.localVideoIn.resolution = Vec2(1280, 720)
Set the framerate of a video input formatclip.Video_Input.localVideoIn.videoInFormat.framerate = 29.97
Get the list of all input channelsinput_channels = VideoInSystem.inputChannels
Find a video input by hardware IDvideo_in = VideoInSystem.findVideoIn(hardwareId)
Get all logical video input deviceslogical_devices = VideoInDeviceMap.getLogicalDevices()
Get the list of available capture groupsavailable = VideoInSystem.captureGroupsAvailable
Get the list of auto-mapped channelsauto_mapped = VideoInSystem.autoMappedChannels
Get the list of hardware IDs for a devicehardware_ids = VideoInSystem.getHardwareIds(hardwareId)
Create a teamed video input hardware IDteamed_id = VideoInSystem.makeTeamedVideoInHardwareId([id1, id2])
Create a multiview video input hardware IDmultiview_id = VideoInSystem.makeMultiviewVideoInHardwareId(sourceHardware, regionOfInterest)
Update the crop rectangle for a logical video inputclip.Video_Input.localVideoIn.cropRectangle = Rect(0, 0, 640, 480)
Update the ACES transform parameters for a video inputclip.Video_Input.localVideoIn.acesTransform = AcesInputTransformParameters(type, space, curve)
Get a preview frame from a logical video inputpreview = clip.Video_Input.localVideoIn.getPreviewFrame(Int2(320, 180))