By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,885 Members | 1,499 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,885 IT Pros & Developers. It's quick & easy.

capture video from camera

P: n/a
i'm trying to capture video from camera/webcam using python.
so far i haven't found any library that would allow me to do that.

cross-platform solution related to SDL/pygame would be nice but a
simple solution to capture video under windows is ok.

Aljosa Mohorovic

Jun 6 '06 #1
Share this Question
Share on Google+
9 Replies


P: n/a
aljosa wrote:
i'm trying to capture video from camera/webcam using python.
so far i haven't found any library that would allow me to do that.

cross-platform solution related to SDL/pygame would be nice but a
simple solution to capture video under windows is ok.


first google hit for "python video capture":

http://videocapture.sourceforge.net/

for linux, see:

http://www.antonym.org/libfg

</F>

Jun 6 '06 #2

P: n/a
i searched on google and found http://videocapture.sourceforge.net/
before i posted here.
videocapture has no docs and doesn't provide additional options like
motion detection nor any info on possibility of motion detection or
howto implement (use of minimal system resources).

i posted here to find out if anybody knows a better way to capture
video.

Fredrik Lundh wrote:
aljosa wrote:
i'm trying to capture video from camera/webcam using python.
so far i haven't found any library that would allow me to do that.

cross-platform solution related to SDL/pygame would be nice but a
simple solution to capture video under windows is ok.


first google hit for "python video capture":

http://videocapture.sourceforge.net/

for linux, see:

http://www.antonym.org/libfg

</F>


Jun 6 '06 #3

P: n/a
aljosa wrote:
i posted here to find out if anybody knows a better way to capture
video.


what other requirements did you forget to mention ?

</F>

Jun 6 '06 #4

P: n/a

aljosa wrote:
i searched on google and found http://videocapture.sourceforge.net/
before i posted here.
yup.
videocapture has no docs
With the API docs in the ".zip" and the examples provided, you
should be able to handle it.I did :)
and doesn't provide additional options like
motion detection nor any info on possibility of motion detection or
howto implement (use of minimal system resources).


Sure. You may try to use some external lib such as Camellia
(http://camellia.sourceforge.net/). There are (swig-generated)
bindings for Ruby, writing a bridge to python should be
straightforward

By the way, if you want to be cross-platform, you can use pyv4l
as a replacement of videocapture for Linux. Combine this with a
pygame integration and you're done.

Cheers,

SB

Jun 6 '06 #5

P: n/a

aljosa wrote:
and doesn't provide additional options like
motion detection nor any info on possibility of motion detection or
howto implement


An example for motion detection and even pythonic eye toys :)

http://gumuz.looze.net/wordpress/ind...ion-detection/

francois

Jun 6 '06 #6

P: n/a
i had no intention to say that videocapture is bad but it's not what
i'm looking for.
concerning docs, everybody has their own view on how docs should look
like.

that said, i should have written more clearly what i'm looking for.

Jun 7 '06 #7

P: n/a
dan
aljosa wrote:
i had no intention to say that videocapture is bad but it's not what
i'm looking for.
concerning docs, everybody has their own view on how docs should look
like.

that said, i should have written more clearly what i'm looking for.


Hi aljosa,

I hope you won't be deterred from posting further questions to the
group by Fredrik's somewhat terse and unfriendly reply.

comp.lang.python is a forum generally noted for its pleasing admixture
of erudition and encouragement. Fredrik is uncommonly distinguished in
the scope and depth of his knowledge. He does himself, and the group in
general, an injustice by the intolerance of his response.

With best wishes,

Dan

Jun 8 '06 #8

P: n/a
dan wrote:
I hope you won't be deterred from posting further questions to the
group by Fredrik's somewhat terse and unfriendly reply.

comp.lang.python is a forum generally noted for its pleasing admixture
of erudition and encouragement. Fredrik is uncommonly distinguished in
the scope and depth of his knowledge. He does himself, and the group in
general, an injustice by the intolerance of his response.


People need to learn to be precise and to-the-point in their posts. If
not, its a waste of time for a lot of people.. more so for frequent
contributors like fredrik. I hope criticism like yours does not deter him!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEiOaArgn0plK5qqURAm4QAKC/iirmfmFOZLaOPuRTTUMDnwBQkACaA8Of
Cvz+VmWdD8Hh/X+etGLJMr4=
=VQpM
-----END PGP SIGNATURE-----

Jun 9 '06 #9

P: n/a
dan
K.S.Sreeram wrote:
dan wrote:
I hope you won't be deterred from posting further questions to the
group by Fredrik's somewhat terse and unfriendly reply.

comp.lang.python is a forum generally noted for its pleasing admixture
of erudition and encouragement. Fredrik is uncommonly distinguished in
the scope and depth of his knowledge. He does himself, and the group in
general, an injustice by the intolerance of his response.


People need to learn to be precise and to-the-point in their posts. If
not, its a waste of time for a lot of people.. more so for frequent
contributors like fredrik. I hope criticism like yours does not deter him!

Hi K.S,

People learn through encouragement and appropriate example, not through
criticism...

Best wishes,

Dan

Jun 9 '06 #10

This discussion thread is closed

Replies have been disabled for this discussion.