video steganography using python

Solutions on MaxInterview for video steganography using python by the best coders in the world

showing results for - "video steganography using python"
Blanche
04 Jul 2016
1cap1 = cv2.VideoCapture("originalfile.mp4")
2print cap1.get(cv2.cv.CV_CAP_PROP_FPS)
3cap = cv2.VideoCapture("/%0d.png")
4fourcc = cv2.cv.CV_FOURCC(*'XVID')
5out = cv2.VideoWriter('stego_video.avi', fourcc, cap1.get(cv2.cv.CV_CAP_PROP_FPS), (1280,720))
6i=0
7while True:
8    ret, frame = cap.read()
9    out.write(frame)
10    i+=1
11    if cv2.waitKey(1) & i<132:
12        i+=1
13    if cv2.waitKey(1) & i==132:
14        break
15cap.release()
16out.release()
17cv2.destroyAllWindows()
18