Skip to content Skip to sidebar Skip to footer

Unable To Write Video Using OpenCV In Python

I am trying to write real-time images into video file acquired by Kinect in Ubuntu. See below the sample code: #!/usr/bin/env python import roslib roslib.load_manifest('ros_package

Solution 1:

Use a codec for saving your video. Motion Jpeg almost always works!

fourcc = cv2.VideoWriter_fourcc(*'MJPG')
self.video_writer = cv2.VideoWriter(file_name, fourcc, fps, frame_size)

then the rest of the story.


Post a Comment for "Unable To Write Video Using OpenCV In Python"