Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the best library for video capture in Python on linux? [closed]

I want to write an application to video capture from web-cams in linux. Is there a python library to do that?

like image 669
lamirap Avatar asked Jul 01 '10 07:07

lamirap


People also ask

What is video capture in OpenCV?

Capture Video from CameraOpenCV allows a straightforward interface to capture live stream with the camera (webcam). It converts video into grayscale and display it. We need to create a VideoCapture object to capture a video. It accepts either the device index or the name of a video file.


1 Answers

You should look at Gstreamer and its Python bindings. Here http://pygstdocs.berlios.de/pygst-tutorial/webcam-viewer.html is some sample code to display video from a webcam. To record the video you would have to change the pipeline definition from autovideosink to an encoder and filesink.

like image 76
Jörn Horstmann Avatar answered Sep 28 '22 20:09

Jörn Horstmann