473,382 Members | 1,563 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

capture video from camera

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
9 13341
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
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
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

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

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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Kanaiya | last post by:
hello i want to use DirectX.Net in c# i am done it. and capture video but i want to take images from it how to do it. i am not found it please help me. bye. -- With regards, Gangani Kanaiya.
1
by: kantrishi | last post by:
Can any body give me details how i would capture video stream through video camera and save it in my database/computer in windows media player format or in real plyaer. I would like to make...
0
by: Tsunami | last post by:
Hi to all: I have a big problem and I write to ask for help. Sorry if this message does not arrive to the apropriate group. I have selected them paying attention but I am not sure to do it well....
0
by: Josef Citron | last post by:
TO; ANDREW LANGER SUBJECT: Your inquiry for Olympus 8mm Movie VX-81 video camera. I have one, and would like to discuss a sale. J Citron Posted Via Usenet.com Premium Usenet Newsgroup...
2
debasisdas
by: debasisdas | last post by:
This program checks if webcam is available, if available then capture video and displays in picture box. Add this code to the general module (.BAS file)...
0
by: chrisstorm | last post by:
hi, I know there are many examples and codes out there, I spent plenty of time searching around but still haven`t found what I am looking for (great - sounds like a song from U2). I have to...
1
by: premMS143 | last post by:
Hi everyone, I want to develop a vb application which captures video from different location. Description: My friend is having a PC with web camera. Now I've to create a application in...
1
by: tvnaidu | last post by:
I have digital video camera connected to PC, how I will know what kind of packets it is?. I can see live using http access to camera. I installed wireshark, I can see TCP and HTTP packets when I can...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.