video steganografia usando python

cap1 = cv2.VideoCapture("originalfile.mp4")
print cap1.get(cv2.cv.CV_CAP_PROP_FPS)
cap = cv2.VideoCapture("/%0d.png")
fourcc = cv2.cv.CV_FOURCC(*'XVID')
out = cv2.VideoWriter('stego_video.avi', fourcc, cap1.get(cv2.cv.CV_CAP_PROP_FPS), (1280,720))
i=0
while True:
    ret, frame = cap.read()
    out.write(frame)
    i+=1
    if cv2.waitKey(1) & i<132:
        i+=1
    if cv2.waitKey(1) & i==132:
        break
cap.release()
out.release()
cv2.destroyAllWindows()
Wide-eyed Warbler