Take a movie of a location and a movie shot in front of a green screen and use chromakey to blend the two movies together.

What will be an ideal response?

```
import os
def combineTwoVideos(directory, videoDirectoryOne, videoDirectoryTwo):
frames = []
#Grab all the frames of the first video
for frameFile in os.listdir(videoDirectoryOne):
if frameFile.endswidth(".jpg"):
frames.append(makePicture(videoDirectoryOne+"//"+frameFile))

num = 0
for frameFile in os.listdir(videoDirectoryTwo):
num = num + 1
printNow("Frame: "+str(num))
if frameFile.endswith(".jpg"):
frame=makePicture(videoDirectoryTwo+"//"+frameFile)
for p in getPixels(frame):
if distance(getColor(p),green) <= 100:
setColor(p,getColor(getPixel(frames[num],getX(p),getY(p))))
writeFrame(num,directory ,frame)
```

Computer Science & Information Technology

You might also like to view...

Identify and describe several common problems at Layer 3 of a network

What will be an ideal response?

Computer Science & Information Technology

You get called to check on a projector that is only displaying "No video signal". What is the first thing to check?

A. Adjust the laptop's screen brightness B. Replace the projector's bulb C. Verify the VGA cable is connected D. Ensure secondary display is enabled

Computer Science & Information Technology